* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.wrapper {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 260px;
    min-height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    z-index: 100;
    transition: all 0.3s ease;
    background: #0a2540;
}

.sidebar-header {
    background: #0a2540;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
}

.sidebar-header .bg-primary {
    background: #FF7A00 !important;
}

.sidebar-nav .nav-link {
    color: #b8c5d6;
    padding: 12px 20px;
    border-radius: 0;
    margin-bottom: 2px;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sidebar-nav .nav-link.active {
    background: rgba(255, 122, 0, 0.15);
    color: #FF7A00;
    font-weight: 600;
    border-left-color: #FF7A00;
}

.sidebar-nav .nav-link.collapsed {
    color: #b8c5d6;
}

.sidebar-nav .collapse .nav-link {
    padding-left: 45px;
    font-size: 13px;
}

.sidebar-nav .collapse .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #FF7A00;
}

.sidebar-nav .collapse .nav-link.active {
    background: rgba(255, 122, 0, 0.15);
    color: #FF7A00;
    font-weight: 600;
}

.main-content {
    flex: 1;
    min-height: 100vh;
}

.header {
    position: sticky;
    top: 0;
    z-index: 99;
    height: 70px;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}

.content {
    min-height: calc(100vh - 140px);
    background: #f5f7fa;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    background: #fff;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0 !important;
    padding: 15px 20px;
    font-weight: 600;
}

.btn {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: #FF7A00;
    border-color: #FF7A00;
    color: #fff;
}

.btn-primary:hover {
    background-color: #e66d00;
    border-color: #e66d00;
    color: #fff;
}

.btn-outline-primary {
    color: #FF7A00;
    border-color: #FF7A00;
}

.btn-outline-primary:hover {
    background-color: #FF7A00;
    color: #fff;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table td {
    vertical-align: middle;
    font-size: 14px;
}

.badge {
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #0a2540;
}

.stat-card .stat-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.form-control:focus,
.form-select:focus {
    border-color: #FF7A00;
    box-shadow: 0 0 0 0.2rem rgba(255, 122, 0, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #495057;
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #ced4da;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-overlay .spinner-border {
    width: 48px;
    height: 48px;
}

.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 8px 15px;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.pagination {
    margin-bottom: 0;
    gap: 4px;
}

.pagination .page-link {
    color: #FF7A00;
    border-color: #dee2e6;
    border-radius: 6px !important;
    margin: 0;
    font-weight: 500;
    padding: 8px 14px;
}

.pagination .page-link:hover {
    background-color: #FFF3E6;
    color: #FF7A00;
    border-color: #FF7A00;
}

.pagination .page-item.active .page-link {
    background-color: #FF7A00;
    border-color: #FF7A00;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        height: 100vh;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        flex: 1;
        margin-left: 0;
    }

    .content {
        padding: 15px !important;
    }

    .stat-card .stat-value {
        font-size: 22px;
    }

    .d-none-mobile {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .stat-card {
        padding: 15px;
    }

    .card {
        margin-bottom: 15px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

.text-primary {
    color: #FF7A00 !important;
}

.text-orange {
    color: #FF7A00 !important;
}

.bg-primary-light {
    background-color: #FFF3E6;
}

.bg-orange-light {
    background-color: #FFF3E6;
}

.border-primary {
    border-color: #FF7A00 !important;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.rounded {
    border-radius: 8px !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.transition {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1) !important;
}

.max-height-300 {
    max-height: 300px;
}

.invoice-table td {
    padding: 8px 12px;
}

.invoice-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.print-btn {
    margin-bottom: 15px;
}

@media print {
    .no-print {
        display: none !important;
    }

    .content {
        padding: 0 !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

.navbar-brand {
    color: #FF7A00 !important;
    font-weight: 700;
}

.sidebar .nav-link {
    color: #b8c5d6;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #FF7A00;
}

.sidebar .nav-link i {
    color: inherit;
}
