:root {
    --primary-orange: #ff9900;
    --primary-orange-light: #ffb340;
    --primary-orange-dark: #e58a00;
    --secondary-blue: #0066CC;
    --secondary-blue-light: #3385ff;
    --secondary-blue-dark: #0052a3;
    --accent-orange: #ffcc99;
    --success-color: #10b981;
    --info-color: #06b6d4;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-700);
    line-height: 1.6;
}

#sidebar-wrapper {
    min-height: 100vh;
    width: 280px;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.sidebar-heading {
    background: rgba(255, 153, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

.sidebar-heading h5 {
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.list-group-flush .list-group-item {
    background: transparent;
    border: none;
    color: var(--gray-300);
    padding: 0.875rem 1.5rem;
    transition: all 0.2s ease;
    border-radius: 0;
    font-weight: 500;
    font-size: 0.9rem;
}

.list-group-item:hover {
    background: rgba(255, 153, 0, 0.1);
    color: var(--primary-orange-light);
    transform: translateX(4px);
}

.list-group-item.active {
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-blue));
    color: white;
    border-left: 4px solid var(--primary-orange-dark);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.list-group-item i {
    width: 20px;
    margin-right: 0.75rem;
}

#page-content-wrapper {
    width: 100%;
    background-color: var(--gray-50);
}

.navbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 1.125rem;
}

#sidebarToggle {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

#sidebarToggle:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

.dropdown-toggle {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary-orange);
}

.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-body {
    padding: 1.5rem;
}

.card-header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
    border-radius: 16px 16px 0 0 !important;
}

.card-header h5 {
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-blue) 100%);
    color: white;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(1.5);
}

.stats-card-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #34d399 100%);
}

.stats-card-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #38bdf8 100%);
}

.stats-card-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #fbbf24 100%);
}

.stats-card h6 {
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.stats-card h2 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0;
}

.stats-card i {
    opacity: 0.3;
    font-size: 2.5rem;
}

/* Notifications */
.notification-item {
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s ease;
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item h6 {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.notification-item small {
    color: var(--gray-500);
    font-weight: 500;
}

.badge {
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-blue) 100%) !important;
}

.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #34d399 100%) !important;
}

.bg-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #fbbf24 100%) !important;
}

/* Chart container */
.chart-container {
    height: 300px;
    padding: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar-wrapper {
        margin-left: -280px;
    }

    #sidebar-wrapper.active {
        margin-left: 0;
    }

    #sidebarToggle {
        display: block;
    }

    .container-fluid {
        padding: 1rem;
    }

    .stats-card {
        margin-bottom: 1rem;
    }
}

/* Smooth transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange);
}

/* Language switcher styles */
#languageDropdown {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

#languageDropdown:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

.clickable-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.clickable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#dataTable-container {
    margin-top: 20px;
}

.filter-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.notification-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: slideIn 0.5s ease-out;
}

.notification-content {
    background: #fff;
    border-left: 4px solid #4CAF50;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    max-width: 300px;
}

.notification-message {
    flex: 1;
    margin-right: 10px;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #777;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}