/* Flutter Admin Panel - Modern Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #181c2f 0%, #232946 100%);
    min-height: 100vh;
    font-family: 'Poppins', 'Vazirmatn', sans-serif;
    color: #f3f6fd;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout */
.admin-layout {
    min-height: 100vh;
    background: transparent;
}

/* Top Navigation */
.top-navigation {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
    height: 70px;
}

/* Brand/Logo */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #f8fafc;
}

.nav-logo {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo-fallback {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-fallback i {
    font-size: 32px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Desktop Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.nav-link i {
    font-size: 16px;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: none;
    border: none;
    color: #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-dropdown-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.nav-dropdown-toggle.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.nav-dropdown-toggle i:last-child {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-dropdown-toggle.active i:last-child {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-dropdown-menu.dropdown-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-link:hover {
    background: #f8fafc;
    color: #3b82f6;
}

.dropdown-link.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.dropdown-link.active:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: white;
}

.dropdown-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* User Menu */
.nav-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.user-name {
    font-weight: 600;
    color: #f8fafc;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: #94a3b8;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.btn-logout:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.mobile-menu-toggle.active {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.mobile-nav-menu.mobile-nav-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-nav-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.mobile-nav-link.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.mobile-nav-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Remove old sidebar styles - now using top navigation */

/* Main Content */
.main-content {
    min-height: calc(100vh - 70px);
    background: #232946;
    padding: 0;
}

/* Page Header */
.page-header {
    background: #262b40;
    padding: 2rem;
    border-bottom: 1px solid #2e3350;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #f3f6fd;
    margin: 0;
    background: linear-gradient(135deg, #f3f6fd, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Content */
.content-wrapper {
    padding: 35px;
    background: #232946;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    color: white;
    padding: 40px;
    border-radius: 24px;
    margin-bottom: 35px;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.welcome-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.welcome-subtitle {
    font-size: 18px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.quick-actions .btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.quick-actions .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Stats Cards */
.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stats-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stats-card:hover::before {
    transform: scaleX(1);
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stats-card .d-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stats-card h4 {
    font-size: 36px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-card p {
    font-size: 16px;
    color: #64748b;
    font-weight: 500;
    margin: 0 0 15px 0;
}

/* Progress Indicator */
.progress-indicator {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.stats-card i {
    font-size: 48px;
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stats-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Cards */
.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h5 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header h5::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    right: 12px;
    color: #64748b;
    font-size: 14px;
}

.search-input {
    padding: 10px 40px 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    width: 250px;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.card-body {
    padding: 30px;
}

/* Chart Container */
.chart-container {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder {
    text-align: center;
    color: #64748b;
}

.chart-placeholder i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.chart-placeholder p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.chart-placeholder small {
    font-size: 14px;
    opacity: 0.7;
}

/* Task List */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.task-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.task-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
}

.task-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #3b82f6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-checkbox input[type="checkbox"]:checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

.task-checkbox label {
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-checkbox input[type="checkbox"]:checked + label {
    text-decoration: line-through;
    color: #64748b;
}

.task-priority {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-priority.high {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.task-priority.medium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.task-priority.low {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

/* Tables */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

.table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: #1e293b;
    font-weight: 600;
    padding: 18px 20px;
    border: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 20px;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    color: #475569;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

.table-striped tbody tr:nth-child(odd) {
    background: rgba(248, 250, 252, 0.5);
}

/* User Info Display */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.username {
    font-weight: 600;
    color: #1e293b;
}

.email-link, .phone-link {
    color: #3b82f6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.email-link:hover, .phone-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.date-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Badges */
.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.badge-secondary {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.btn-outline-danger {
    background: transparent;
    color: #ef4444;
    border: 2px solid #ef4444;
    box-shadow: none;
}

.btn-outline-danger:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Forms */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    color: #1e293b;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.form-text {
    margin-top: 8px;
    font-size: 14px;
    color: #64748b;
}

/* Utilities */
.mb-4 {
    margin-bottom: 25px;
}

.text-muted {
    color: #64748b !important;
}

.text-white {
    color: white !important;
}

/* Removed drawer functionality - sidebar is always visible */

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .content-wrapper {
        padding: 25px;
    }
    
    .row {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 4px;
    }
    
    .nav-link {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link i {
        font-size: 18px;
    }
    
    .nav-dropdown-toggle span {
        display: none;
    }
    
    .content-wrapper {
        padding: 20px;
    }
    
    .table-responsive {
        font-size: 0.9rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
    }
    
    .row {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .card[style*="grid-column: span 2"] {
        grid-column: span 1;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .search-input {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Mobile navigation behavior */
    .nav-container {
        padding: 0 1rem;
        height: 60px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-user .user-info {
        display: none;
    }
    
    .nav-user .btn-logout span {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Body scroll lock when mobile menu is open */
    body.mobile-nav-open {
        overflow: hidden;
    }
    
    .main-content {
        min-height: calc(100vh - 60px);
    }
    
    .page-header {
        padding: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .content-wrapper {
        padding: 20px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .row {
        grid-template-columns: 1fr;
    }
    
    .stats-card {
        padding: 25px;
    }
    
    .stats-card h4 {
        font-size: 28px;
    }
    
    .welcome-title {
        font-size: 28px;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .card-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-group .btn {
        margin: 0;
        width: 100%;
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
        height: 55px;
    }
    
    .nav-brand {
        font-size: 20px;
    }
    
    .nav-logo {
        height: 32px;
        max-width: 100px;
    }
    
    .main-content {
        min-height: calc(100vh - 55px);
    }
    
    .page-header {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    .card-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .table th,
    .table td {
        padding: 12px 8px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }
    
    .table {
        min-width: 500px;
    }
    
    .task-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        justify-content: center;
    }
    
    .content-wrapper {
        padding: 10px;
    }
    
    .stats-card {
        padding: 15px;
    }
    
    .stats-card h4 {
        font-size: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 15px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .nav-container {
        padding: 0 0.5rem;
        height: 50px;
    }
    
    .nav-brand {
        font-size: 18px;
    }
    
    .nav-logo {
        height: 28px;
        max-width: 80px;
    }
    
    .main-content {
        min-height: calc(100vh - 50px);
    }
    
    .page-header {
        padding: 0.75rem;
    }
    
    .page-title {
        font-size: 1.1rem;
    }
    
    .table {
        min-width: 400px;
    }
    
    .table th,
    .table td {
        padding: 8px 6px;
        font-size: 11px;
    }
    
    .btn-sm {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .nav-container {
        height: 55px;
    }
    
    .main-content {
        min-height: calc(100vh - 55px);
    }
    
    .content-wrapper {
        padding: 15px;
    }
    
    .page-header {
        padding: 1rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
} 

/* Removed old drawer layout - sidebar is always visible */

/* --- Improved Dark Card Style and Readability --- */
.card, .stats-card, .welcome-section, .content-wrapper {
    background: #262b40 !important;
    color: #f3f6fd !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25) !important;
    border: 1px solid #2e3350 !important;
}

.card-header, .card-body, .table, .table th, .table td {
    background: transparent !important;
    color: #f3f6fd !important;
}

.table th, .table td {
    color: #e0e6f7 !important;
}

.text-muted, .table .text-muted, .form-text, .form-group label {
    color: #bfc7e3 !important;
}

input::placeholder, .search-input::placeholder {
    color: #bfc7e3 !important;
    opacity: 1;
}

.btn, .badge {
    color: #f3f6fd !important;
    border: none !important;
}

.table-striped tbody tr:nth-child(odd) {
    background: #23263a !important;
}

.table tbody tr:hover {
    background: #232946 !important;
} 

/* --- Top Nav Bar Dark --- */
.top-nav {
    background: #232946 !important;
    color: #f3f6fd !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    border-bottom: 1px solid #2e3350;
}

.top-nav h2, .top-nav .user-menu span {
    color: #f3f6fd !important;
}

/* --- Card/Stats Icons --- */
.stats-card i, .card .card-icon, .welcome-section i {
    background: rgba(59,130,246,0.10) !important;
    border-radius: 16px !important;
    padding: 18px !important;
    color: #3b82f6 !important;
    font-size: 48px !important;
    opacity: 1 !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Remove any light icon backgrounds */
.stats-card i[style], .card .card-icon[style], .welcome-section i[style] {
    background: rgba(59,130,246,0.10) !important;
    color: #3b82f6 !important;
} 

/* --- High-Contrast Headers and Icons --- */
.card-header h5, .card-header h5::before, .stats-card p, .stats-card h4, .welcome-title, .welcome-subtitle, .section-title, .table th, .top-nav h2 {
    color: #fff !important;
    opacity: 1 !important;
}

/* --- User Menu and Admin Box --- */
.user-menu {
    background: #232946 !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.10) !important;
}

.user-menu span {
    color: #fff !important;
}

/* Remove any light gradients from user menu/admin box */
.user-menu, .user-menu .btn {
    background: #232946 !important;
    color: #fff !important;
    border: none !important;
}

/* --- Fix any remaining light backgrounds --- */
.card, .stats-card, .welcome-section, .content-wrapper, .card-header, .card-body, .table, .table th, .table td, .task-item, .btn, .badge, .btn-group .btn {
    background: #232946 !important;
    color: #fff !important;
    border: 1px solid #2e3350 !important;
}

/* --- Section Titles --- */
.section-title, .card-header h5 {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff !important;
} 

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1e293b;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #334155;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #334155;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 12px 12px 0 0;
}

.modal-header h5 {
    margin: 0;
    color: #f8fafc;
    font-weight: 600;
    font-size: 1.1rem;
}

.close {
    color: #94a3b8;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #f1f5f9;
}

.modal-body {
    padding: 24px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    color: #f1f5f9;
    font-weight: 500;
    font-size: 0.9rem;
}

.modal-body input[type="text"],
.modal-body input[type="number"],
.modal-body input[type="email"],
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #475569;
    border-radius: 8px;
    background-color: #334155;
    color: #f8fafc;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #475569;
}

.modal-body input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.form-control-static {
    padding: 8px 0;
    color: #f1f5f9;
    font-size: 14px;
    line-height: 1.5;
}

/* Hierarchical Categories */
.parent-category {
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
}

.child-category {
    background-color: rgba(34, 197, 94, 0.05);
    border-left: 4px solid #22c55e;
}

.parent-category td:first-child {
    font-weight: 600;
    color: #3b82f6;
}

.child-category td:first-child {
    color: #22c55e;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header,
    .modal-body {
        padding: 16px;
    }
}

/* Details content styling */
.ad-details,
.user-details,
.notification-details,
.feedback-details {
    color: #f1f5f9;
}

.ad-details p,
.user-details p,
.notification-details p,
.feedback-details p {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #334155;
}

.ad-details p:last-child,
.user-details p:last-child,
.notification-details p:last-child,
.feedback-details p:last-child {
    border-bottom: none;
}

.ad-details strong,
.user-details strong,
.notification-details strong,
.feedback-details strong {
    color: #3b82f6;
    font-weight: 600;
    margin-right: 8px;
}

.ad-details span,
.user-details span,
.notification-details span,
.feedback-details span {
    color: #f8fafc;
    font-weight: 400;
}

/* Required field indicators */
.required {
    color: #ef4444;
    font-weight: bold;
    margin-left: 4px;
}

/* Form validation styles */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.form-control.is-invalid:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #ef4444;
    font-weight: 500;
}

/* Form validation animation */
.form-control.is-invalid {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

/* Submit button loading state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced notification styles for form errors */
.notification-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    color: #991b1b;
}

.notification-error .notification-content i {
    color: #dc2626;
}

.notification-error .notification-content strong {
    color: #991b1b;
    font-weight: 600;
}

/* Basic notification styles */
.notification {
    position: fixed;
    top: 20px;
    left: 20px;
    right: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateX(-400px);
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.notification-content i {
    font-size: 18px;
}

.notification-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
        max-width: none;
    }
    
    .notification.show {
        transform: translateY(0);
    }
} 