/* ================================
   GLOBAL STYLES - Clean & Modern
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8fafc;
    color: #334155;
    line-height: 1.6;
    font-weight: 400;
}

/* ================================
   DARK SIDEBAR - Professional
   ================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: #0f172a;
    z-index: 1000;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid #1e293b;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #475569 #1e293b;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #1e293b;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.sidebar.hidden {
    transform: translateX(-100%);
}

/* Sidebar Brand */
.sidebar-brand {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid #1e293b;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.brand-text h5 {
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.025em;
}

.brand-text small {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 400;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 1rem;
}

.nav-link {
    color: #94a3b8 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
    margin: 0.125rem 0 !important;
    text-decoration: none !important;
    border: none !important;
    background: transparent !important;
    font-weight: 500;
    font-size: 0.875rem;
}

.nav-link:hover {
    color: white !important;
    background: #1e293b !important;
}

.nav-link.active {
    color: white !important;
    background: #3b82f6 !important;
    font-weight: 600;
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.nav-text {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.nav-divider {
    height: 1px;
    background: #1e293b;
    margin: 1rem 0;
}

/* ================================
   MAIN CONTENT - Clean White
   ================================ */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
}

.main-content.expanded {
    margin-left: 0;
}

/* ================================
   TOP NAVBAR - Minimal
   ================================ */
.top-navbar {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.mobile-toggle,
#sidebarToggle {
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    padding: 0.5rem !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.mobile-toggle:hover,
#sidebarToggle:hover {
    background: #f1f5f9 !important;
    color: #334155 !important;
}

.navbar-brand h4 {
    color: #0f172a;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
    letter-spacing: -0.025em;
}

/* User Dropdown */
.nav-link.dropdown-toggle {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 0.5rem 0.75rem !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.nav-link.dropdown-toggle:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

.dropdown-menu {
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    border-radius: 8px !important;
    padding: 0.5rem !important;
    margin-top: 0.25rem !important;
}

.dropdown-item {
    padding: 0.5rem 0.75rem !important;
    border-radius: 6px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    transition: all 0.2s ease !important;
}

.dropdown-item:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

.dropdown-item.text-danger:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

/* ================================
   CARDS - Clean Design
   ================================ */
.card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-body {
    padding: 1.5rem;
}

/* ================================
   STAT CARDS - Modern & Clean
   ================================ */
.stat-card-modern {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.stat-card-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.stat-card-modern.bg-gradient-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: white;
}

.stat-card-modern.bg-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
}

.stat-card-modern.bg-gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: white;
}

.stat-card-modern.bg-gradient-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border: none;
    color: white;
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.8;
}

/* ================================
   BUTTONS - Tailwind Style
   ================================ */
.btn {
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    line-height: 1.25rem;
}

.btn-primary {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border-color: #3b82f6;
    color: #3b82f6;
}

.btn-outline-primary:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.btn-success {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
    color: white;
}

.btn-warning {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
    color: white;
}

.btn-info {
    background: #06b6d4;
    border-color: #06b6d4;
    color: white;
}

.btn-info:hover {
    background: #0891b2;
    border-color: #0891b2;
    color: white;
}

.btn-danger {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}

/* ================================
   QUICK ACTION CARDS
   ================================ */
.quick-action-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.2s ease;
}

.quick-action-card:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
}

.quick-action-card:hover .bg-light {
    background: #f8fafc !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* ================================
   ACTIVITY ITEMS
   ================================ */
.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

/* ================================
   WELCOME SECTION
   ================================ */
.welcome-section {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.welcome-section h1 {
    color: #0f172a;
    font-weight: 800;
    font-size: 1.875rem;
    line-height: 2.25rem;
    letter-spacing: -0.025em;
}

.welcome-section .lead {
    color: #64748b;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 400;
}

/* ================================
   FORMS & INPUTS
   ================================ */
.form-control {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.625rem 0.75rem;
    transition: all 0.2s ease;
    background: white;
    font-size: 0.875rem;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

/* ================================
   TABLES
   ================================ */
.table {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.table thead th {
    background: #f8fafc;
    border: none;
    font-weight: 600;
    color: #374151;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tbody td {
    border: none;
    border-top: 1px solid #f1f5f9;
    padding: 0.75rem 1rem;
    vertical-align: middle;
    font-size: 0.875rem;
}

.table tbody tr:hover {
    background: #f8fafc;
}

/* ================================
   ALERTS & TOASTS
   ================================ */
.alert {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.toast {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ================================
   MOBILE RESPONSIVE
   ================================ */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        z-index: 1050;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-content.expanded {
        margin-left: 0;
    }
    
    .welcome-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .welcome-section h1 {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    .stat-card-modern {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .brand-text h5 {
        font-size: 1rem;
    }
    
    .nav-text {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .welcome-section {
        padding: 1rem;
    }
    
    .quick-action-icon {
        width: 36px;
        height: 36px;
    }
    
    .navbar-brand h4 {
        font-size: 1.125rem;
    }
}

/* ================================
   MOBILE OVERLAY
   ================================ */
@media (max-width: 991.98px) {
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.7);
        backdrop-filter: blur(4px);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* Prevent body scroll when sidebar is open */
    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }
}

/* ================================
   LOGIN PAGE
   ================================ */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 400px;
    width: 100%;
}

.login-brand h2 {
    color: #0f172a;
    font-weight: 800;
    font-size: 1.875rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* ================================
   UTILITIES
   ================================ */
.text-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-elegant {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.4s ease forwards;
}

/* ================================
   SCROLLBAR STYLING
   ================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
} 