/* Admin Panel Styles */

/* Login Page Styles */
.admin-login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.admin-login-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="adminPattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23adminPattern)"/></svg>');
    opacity: 0.3;
}

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideInUp 0.6s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.admin-logo {
    color: #667eea;
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-text {
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.logo-location {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 400;
    color: #764ba2;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: #6b7280;
    font-size: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.form-group input {
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #6b7280;
}

.remember-me input {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: #667eea;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #764ba2;
}

.login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.login-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;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: none;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.login-footer p {
    color: #9ca3af;
    font-size: 0.85rem;
}

/* Admin Dashboard Styles */
.admin-dashboard {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: grid;
    grid-template-columns: 280px 1fr;
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.admin-sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 0;
    position: fixed;
    height: 100vh;
    width: 280px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo-sidebar {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.admin-logo-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="sidebarPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23sidebarPattern)"/></svg>');
    opacity: 0.3;
}

.admin-logo-sidebar .logo-text {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 0.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

.admin-logo-sidebar .logo-location {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.admin-nav {
    padding: 1.5rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 0;
    margin: 0.25rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateX(8px);
    border-left-color: #667eea;
}

.nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border-left-color: #f093fb;
    transform: translateX(8px);
}

.nav-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    opacity: 0.9;
}

.nav-item span {
    font-weight: 500;
    font-size: 0.95rem;
}

.admin-main {
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
    background: transparent;
    width: calc(100vw - 280px) !important;
    max-width: none !important;
    box-sizing: border-box;
}

.admin-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.admin-title {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin: 0;
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.user-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #1e293b;
    font-weight: 600;
}

.user-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.logout-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100% !important;
    max-width: none !important;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.dashboard-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.25px;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.card-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 15px;
}

.card-icon.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.card-icon.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.card-icon.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.card-value {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.card-change {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.card-change.positive {
    color: #10b981;
}

.card-change.negative {
    color: #ef4444;
}

.card-change i {
    font-size: 0.8rem;
}

/* Tables */
.admin-table {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.admin-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.table-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
}

.table-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.table-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(241, 245, 249, 0.8);
    color: #475569;
    border: 1px solid rgba(203, 213, 225, 0.5);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: rgba(226, 232, 240, 0.8);
    transform: translateY(-1px);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1.25rem 2rem;
    text-align: left;
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
}

.table th {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
    font-weight: 700;
    color: #475569;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    position: relative;
}

.table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.table td {
    color: #64748b;
    font-weight: 500;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: scale(1.01);
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-badge.active {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.inactive {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge.completed {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Forms */
.admin-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Additional Dashboard Enhancements */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.quick-action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    font-size: 0.95rem;
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.quick-action-btn.secondary {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quick-action-btn.secondary:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.system-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.system-status-item:last-child {
    border-bottom: none;
}

.system-status-label {
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #667eea;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #764ba2;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.open {
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-dashboard {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 2000;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
        padding: 1rem;
        width: 100%;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .admin-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 1rem 1.5rem;
    }
    
    .header-left {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border: none;
        border-radius: 10px;
        padding: 0.75rem;
        font-size: 1.2rem;
        color: #1f2937;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        cursor: pointer;
    }
    
    /* Sidebar Mobile Behavior */
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .admin-sidebar.sidebar-open {
        left: 0;
    }
    
    /* Sidebar Overlay */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .admin-sidebar.sidebar-open + .sidebar-overlay {
        display: block;
    }
    
    /* Main Content Mobile */
    .admin-main {
        margin-left: 0;
        padding: 1rem;
        padding-top: 4rem; /* Space for mobile menu button */
    }
    
    /* Header Mobile */
    .admin-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .header-left {
        justify-content: center;
        text-align: center;
    }
    
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    /* Dashboard Grid Mobile */
    .dashboard-content {
        max-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Cards Mobile */
    .dashboard-card,
    .content-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
        border-radius: 15px;
    }
    
    .card-value,
    .stat-number {
        font-size: 2rem;
    }
    
    .card-title,
    .stat-label {
        font-size: 0.9rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 1.25rem;
    }
    
    .card-header h3 {
        font-size: 1.1rem;
    }
    
    .card-icon,
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    /* Action Grid Mobile */
    .action-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .action-item {
        padding: 1rem;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .action-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .action-content h4 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
    
    .action-content p {
        font-size: 0.8rem;
    }
    
    /* Activity List Mobile */
    .activity-list {
        gap: 0.75rem;
    }
    
    .activity-item {
        padding: 0.75rem;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .activity-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .activity-title {
        font-size: 0.9rem;
    }
    
    .activity-time {
        font-size: 0.75rem;
    }
    
    /* Status Items Mobile */
    .status-item {
        padding: 0.5rem 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .status-label {
        font-size: 0.85rem;
    }
    
    .status-value {
        font-size: 0.9rem;
    }
    
    /* Help Links Mobile */
    .help-links {
        gap: 0.5rem;
    }
    
    .help-link {
        padding: 0.75rem;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .help-link i {
        font-size: 1rem;
    }
    
    .help-link span {
        font-size: 0.9rem;
    }
    
    /* Forms Mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    /* Tables Mobile */
    .table-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .table {
        font-size: 0.8rem;
        min-width: 600px;
    }
    
    .table th:first-child,
    .table td:first-child {
        position: sticky;
        left: 0;
        background: inherit;
        z-index: 1;
    }
    
    .admin-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 10px;
    }
    
    /* Quick Actions Mobile */
    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .quick-action-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
    
    /* User Info Mobile */
    .admin-user {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .user-info {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .user-details {
        text-align: center;
    }
    
    .user-name {
        font-size: 0.9rem;
    }
    
    .user-role {
        font-size: 0.8rem;
    }
    
    .logout-btn {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
        width: 100%;
    }
    
    /* Role Badge Mobile */
    .user-role-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 15px;
    }
    
    /* Buttons Mobile */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile Devices */
    .admin-main {
        padding: 0.5rem;
        padding-top: 3.5rem; /* Space for mobile menu button */
    }
    
    /* Mobile Menu Button */
    .mobile-menu-toggle {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.5rem;
        font-size: 1rem;
    }
    
    /* Sidebar for Small Screens */
    .admin-sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    /* Header Extra Small */
    .admin-header {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    .page-subtitle {
        font-size: 0.8rem;
    }
    
    /* Stats Grid Extra Small */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Cards Extra Small */
    .dashboard-card,
    .content-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
    
    .card-header h3 {
        font-size: 1rem;
    }
    
    .card-value {
        font-size: 1.75rem;
    }
    
    .card-title {
        font-size: 0.85rem;
    }
    
    /* Action Items Extra Small */
    .action-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .action-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .action-content h4 {
        font-size: 0.9rem;
    }
    
    .action-content p {
        font-size: 0.75rem;
    }
    
    /* Activity Items Extra Small */
    .activity-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .activity-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .activity-title {
        font-size: 0.85rem;
    }
    
    .activity-time {
        font-size: 0.7rem;
    }
    
    /* Status Items Extra Small */
    .status-item {
        padding: 0.4rem 0;
        gap: 0.4rem;
    }
    
    .status-label {
        font-size: 0.8rem;
    }
    
    .status-value {
        font-size: 0.85rem;
    }
    
    /* Help Links Extra Small */
    .help-link {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .help-link i {
        font-size: 0.9rem;
    }
    
    .help-link span {
        font-size: 0.85rem;
    }
    
    /* Forms Extra Small */
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.6rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    /* Tables Extra Small */
    .table-header {
        padding: 0.75rem;
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .table-actions {
        justify-content: center;
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .table th,
    .table td {
        padding: 0.4rem 0.3rem;
        font-size: 0.75rem;
    }
    
    .table {
        font-size: 0.75rem;
        min-width: 500px;
    }
    
    /* Quick Actions Extra Small */
    .quick-action-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        width: 100%;
    }
    
    /* User Info Extra Small */
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .user-name {
        font-size: 0.85rem;
    }
    
    .user-role {
        font-size: 0.75rem;
    }
    
    .logout-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        width: 100%;
    }
    
    /* Role Badge Extra Small */
    .user-role-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 12px;
    }
    
    /* Buttons Extra Small */
    .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    .btn-sm {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Status Badges Extra Small */
    .status-badge {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
        border-radius: 8px;
    }
    
    /* Content Grid Extra Small */
    .content-grid {
        gap: 0.75rem;
    }
    
    /* Card Content Extra Small */
    .card-content {
        padding: 1rem;
    }
}

/* Additional Mobile Enhancements */
@media (max-width: 768px) {
    /* Touch-friendly interactions */
    .nav-link,
    .action-item,
    .help-link,
    .btn,
    .quick-action-btn {
        min-height: 44px; /* iOS recommended touch target size */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better touch scrolling */
    .admin-sidebar,
    .admin-main {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    /* Prevent zoom on input focus */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Better mobile table scrolling */
    .admin-table {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .admin-table::-webkit-scrollbar {
        height: 6px;
    }
    
    .admin-table::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 3px;
    }
    
    .admin-table::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 3px;
    }
    
    /* Mobile-specific animations */
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.sidebar-open {
        transform: translateX(0);
    }
    
    /* Better mobile spacing */
    .dashboard-content > * + * {
        margin-top: 1rem;
    }
    
    /* Mobile-optimized cards */
    .dashboard-card,
    .content-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    /* Mobile menu button animation */
    .mobile-menu-toggle {
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        transform: scale(1.05);
    }
    
    /* Better mobile text readability */
    .page-title,
    .card-header h3 {
        line-height: 1.3;
    }
    
    .page-subtitle,
    .card-title,
    .stat-label {
        line-height: 1.4;
    }
    
    /* Mobile-optimized icons */
    .card-icon,
    .stat-icon,
    .action-icon,
    .activity-icon {
        flex-shrink: 0;
    }
    
    /* Better mobile button states */
    .btn:active,
    .quick-action-btn:active,
    .action-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Mobile-optimized forms */
    .form-group {
        position: relative;
    }
    
    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
        border-color: #667eea;
    }
    
    /* Mobile table improvements */
    .table-container {
        position: relative;
        overflow: hidden;
        border-radius: 10px;
    }
    
    .table-container::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.8), transparent);
        pointer-events: none;
    }
    
    /* Mobile status indicators */
    .status-value.verified {
        color: #059669;
        font-weight: 600;
    }
    
    .status-value.pending {
        color: #f59e0b;
        font-weight: 600;
    }
    
    .status-value.rejected {
        color: #ef4444;
        font-weight: 600;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .admin-main {
        padding-top: 3rem;
    }
    
    .mobile-menu-toggle {
        top: 0.5rem;
        left: 0.5rem;
        padding: 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-up {
    animation: slideInUp 0.6s ease-out;
}

/* User Dashboard Specific Styles */
.user-role-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.action-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.action-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.action-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-item:last-child {
    border-bottom: none;
}

.status-label {
    color: #6b7280;
    font-weight: 500;
}

.status-value {
    color: #1f2937;
    font-weight: 600;
}

.status-value.verified {
    color: #059669;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.help-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.help-link:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
    text-decoration: none;
    color: #1f2937;
}

.help-link i {
    color: #667eea;
    font-size: 1.1rem;
}
