/* ---- Admin Topbar Redesign ---- */
.admin-topbar {
    background: #fff;
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0A2540;
    margin: 0;
}

.view-site-btn {
    padding: 6px 12px;
    border: 1.5px solid #4A6CF7;
    border-radius: 8px;
    color: #4A6CF7;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.view-site-btn:hover {
    background: #4A6CF7;
    color: #fff;
}

.topbar-center {
    flex: 1;
    max-width: 400px;
    margin: 0 30px;
}

.search-box {
    background: #F5F7FA;
    border: 1px solid #E0E6ED;
    border-radius: 12px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.search-box i {
    color: #94A3B8;
    font-size: 0.9rem;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 0.9rem;
    color: #1E293B;
}

.search-badge {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748B;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.widget-btn {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    position: relative;
    transition: all 0.2s ease;
}

.widget-btn:hover {
    background: #F1F5F9;
}

.widget-btn i {
    font-size: 1rem;
}

.widget-btn.blue {
    color: #2563EB;
}

.widget-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #fff;
    border: 2px solid #fff;
}

.widget-badge.red { background: #EF4444; }

.time-widget {
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    color: #2563EB;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 10px;
}

/* User Profile & Dropdown */
.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    border-radius: 50px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
}

.topbar-user:hover { 
    background: #F1F5F9;
    border-color: #CBD5E1;
}

.topbar-user.active {
    background: #fff;
    border-color: #2563EB;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.topbar-user .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.topbar-user .user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1E293B;
}

.topbar-user i.fa-chevron-down {
    font-size: 0.75rem;
    color: #64748B;
    transition: transform 0.2s ease;
}

.topbar-user.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 260px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #E2E8F0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.topbar-user.active .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
}

.dropdown-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
    line-height: 1.2;
}

.dropdown-info p {
    font-size: 0.85rem;
    color: #64748B;
    margin: 4px 0 0 0;
}

.dropdown-body {
    padding: 10px;
}

.dropdown-body a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #475569;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.dropdown-body a:hover {
    background: #F1F5F9;
    color: #2563EB;
}

.dropdown-body a i {
    font-size: 1.1rem;
    color: #2563EB;
    width: 24px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 10px 15px;
}

.logout-link {
    color: #EF4444 !important;
}

.logout-link:hover {
    background: #FEF2F2 !important;
}

.logout-link i {
    color: #EF4444 !important;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(90deg, #2563EB 0%, #7C3AED 100%);
    border-radius: 24px;
    padding: 40px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.welcome-banner::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.banner-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.banner-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.banner-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(4px);
}

/* Stat Grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-icon.icon-blue { background: #EFF6FF; color: #2563EB; }
.stat-icon.icon-green { background: #ECFDF5; color: #10B981; }
.stat-icon.icon-yellow { background: #FFFBEB; color: #F59E0B; }
.stat-icon.icon-red { background: #FEF2F2; color: #EF4444; }

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0;
    line-height: 1.2;
}

.stat-info p {
    font-size: 0.9rem;
    color: #64748B;
    margin: 4px 0 0 0;
    font-weight: 500;
}

/* =========================================
   Vyom Green Solar Solution - Admin Panel Styles
   ========================================= */

*, *::before, *::after {
    box-sizing: border-box;
}

/* ---- Admin Base ---- */
.admin-body {
    background: #F0F2F5;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
}

/* ---- Admin Login ---- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #0A2540 0%, #1A3A5C 50%, #0A2540 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 800px;
    height: 800px;
    background: rgba(255, 193, 7, 0.05);
    border-radius: 50%;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.login-card .login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-card .login-logo .logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFC107, #FFA000);
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #0A2540;
    margin-bottom: 15px;
}

.login-card .login-logo .logo-icon.has-image {
    width: min(420px, 86%);
    height: auto;
    min-height: 90px;
    background: transparent;
    border-radius: 0;
    margin: 0 auto 10px;
}

.login-card .login-logo .logo-icon.has-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.login-card h2 {
    text-align: center;
    color: #0A2540;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.login-card .login-subtitle {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.login-form .form-group {
    margin-bottom: 20px;
    position: relative;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
}

.login-form .form-group input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #F5F7FA;
}

.login-form .form-group input:focus {
    outline: none;
    border-color: #FFC107;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.1);
}

.login-form .form-group .input-icon {
    position: absolute;
    left: 14px;
    top: 38px;
    color: #999;
    font-size: 0.9rem;
}

.login-form .password-toggle {
    position: absolute;
    right: 14px;
    top: 38px;
    cursor: pointer;
    color: #999;
    font-size: 0.9rem;
    background: none;
    border: none;
    padding: 5px;
}

.login-form .password-toggle:hover { color: #FFC107; }

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FFC107, #FFA000);
    color: #0A2540;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.login-error {
    background: #FFEBEE;
    color: #C62828;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    display: none;
    align-items: center;
    gap: 8px;
    border-left: 4px solid #F44336;
}

.login-error.show { display: flex; }

/* ---- Admin Layout ---- */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0A2540 0%, #1A2B3C 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header .s-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FFC107, #FFA000);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #0A2540;
    flex-shrink: 0;
}

.sidebar-header.has-brand-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.sidebar-header.has-brand-logo .s-logo {
    width: 100%;
    height: auto;
    min-height: 56px;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.sidebar-header.has-brand-logo .s-logo img {
    width: 100%;
    max-width: 210px;
    height: auto;
    object-fit: contain;
    display: block;
}

.sidebar-header.has-brand-logo .s-text {
    display: none;
}

.sidebar-header .s-text {
    line-height: 1.2;
}

.sidebar-header .s-text h3 {
    font-size: 0.85rem;
    color: white;
    margin: 0;
}

.sidebar-header .s-text span {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
}

.sidebar-nav {
    padding: 15px 0;
}

.sidebar-nav .nav-label {
    padding: 8px 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    margin-top: 10px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 193, 7, 0.1);
    color: #FFC107;
    border-left-color: #FFC107;
}

.sidebar-nav a .badge {
    margin-left: auto;
    background: #F44336;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Admin Main Content */
.admin-main {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Bar */
/* Admin Tables */
.admin-table-wrapper {
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #E0E0E0;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-table-header h3 {
    font-size: 1.1rem;
    color: #0A2540;
    margin: 0;
}

.admin-table-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-search {
    padding: 8px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    min-width: 200px;
    transition: all 0.3s ease;
}

.admin-search:focus {
    outline: none;
    border-color: #FFC107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.admin-btn-primary {
    background: linear-gradient(135deg, #FFC107, #FFA000);
    color: #0A2540;
}

.admin-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.admin-btn-secondary {
    background: #0A2540;
    color: white;
}

.admin-btn-success {
    background: #4CAF50;
    color: white;
}

.admin-btn-danger {
    background: #F44336;
    color: white;
}

.admin-btn-sm {
    padding: 5px 12px;
    font-size: 0.8rem;
}

.admin-btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: #F5F7FA;
    padding: 12px 20px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #E0E0E0;
}

.admin-table td {
    padding: 12px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid #F0F0F0;
    vertical-align: middle;
}

.admin-table tr:hover { background: #FAFAFA; }

.admin-table .thumb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e6edf8;
}

.admin-table .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-active { background: #E8F5E9; color: #2E7D32; }
.status-inactive { background: #FFEBEE; color: #C62828; }
.status-new { background: #E3F2FD; color: #1565C0; }
.status-read { background: #F5F7FA; color: #666; }
.status-replied { background: #E8F5E9; color: #2E7D32; }

.admin-table .actions {
    display: flex;
    gap: 6px;
}

/* Admin Form (Modal/Page) */
.admin-form-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.admin-form-header {
    padding: 20px 25px;
    border-bottom: 1px solid #E0E0E0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-form-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #0A2540;
}

.admin-form-body {
    padding: 25px;
}

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

.admin-form-body .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
}

.admin-form-body .form-group input,
.admin-form-body .form-group textarea,
.admin-form-body .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.admin-form-body .form-group input:focus,
.admin-form-body .form-group textarea:focus,
.admin-form-body .form-group select:focus {
    outline: none;
    border-color: #FFC107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.admin-form-body textarea {
    min-height: 100px;
    resize: vertical;
}

.admin-form-body .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-form-footer {
    padding: 15px 25px;
    border-top: 1px solid #E0E0E0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* File Upload */
.file-upload {
    border: 2px dashed #E0E0E0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: #FFC107;
    background: rgba(255, 193, 7, 0.03);
}

.file-upload i {
    font-size: 2rem;
    color: #CCC;
    margin-bottom: 10px;
}

.file-upload p {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

.file-upload .file-info {
    font-size: 0.75rem;
    color: #BBB;
    margin-top: 5px;
}

.file-preview {
    margin-top: 10px;
}

.file-preview img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #dce8fb;
    box-shadow: 0 8px 20px rgba(10, 37, 64, 0.12);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.toggle-switch input { display: none; }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #CCC;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: #4CAF50;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* Modal */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(10, 37, 64, 0.35), rgba(10, 37, 64, 0.65));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-modal.active { display: flex; }

.admin-modal-content {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
    border-radius: 18px;
    width: 100%;
    max-width: min(860px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border: 1px solid rgba(224, 232, 246, 0.95);
    box-shadow: 0 24px 70px rgba(8, 22, 42, 0.24);
    animation: popIn 0.25s ease-out;
}

.admin-modal-content::-webkit-scrollbar {
    width: 10px;
}

.admin-modal-content::-webkit-scrollbar-thumb {
    background: #c7d6ee;
    border-radius: 999px;
    border: 2px solid #f7faff;
}

.admin-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #E8EEF8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFCFF 100%);
}

.admin-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #0A2540;
}

.admin-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F5F7FA;
    border: none;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.admin-modal-close:hover { background: #FFEBEE; color: #F44336; }

.admin-modal-body {
    padding: 25px;
    background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(248,251,255,0.7) 100%);
}

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

.admin-modal-body .form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 0.86rem;
    letter-spacing: 0.2px;
    color: #1b3554;
}

.admin-modal-body .form-group input,
.admin-modal-body .form-group textarea,
.admin-modal-body .form-group select {
    width: 100%;
    min-height: 42px;
    padding: 10px 13px;
    border: 1px solid #d9e4f5;
    border-radius: 10px;
    background: #f9fbff;
    color: #1f2f47;
    font-size: 0.92rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.35;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.admin-modal-body .form-group select {
    appearance: auto;
    -webkit-appearance: menulist;
}

.admin-modal-body .form-group textarea {
    min-height: 96px;
    resize: vertical;
}

.admin-modal-body .form-group input::placeholder,
.admin-modal-body .form-group textarea::placeholder {
    color: #95a4bd;
}

.admin-modal-body .form-group input:focus,
.admin-modal-body .form-group textarea:focus,
.admin-modal-body .form-group select:focus {
    outline: none;
    background: #ffffff;
    border-color: #8fb3ef;
    box-shadow: 0 0 0 4px rgba(43, 112, 224, 0.12);
    transform: translateY(-1px);
}

.admin-modal-body .form-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 14px !important;
    align-items: end;
}

.admin-modal-body .toggle-switch {
    margin-top: 6px;
}

.admin-modal-body .file-upload {
    border: 2px dashed #d8e3f5;
    border-radius: 14px;
    padding: 30px 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f2f7ff 100%);
}

.admin-modal-body .file-upload:hover {
    border-color: #87ace9;
    background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
}

.admin-modal-body .file-upload i {
    color: #8ca4c8;
}

.admin-modal-body .file-preview img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #d7e4f8;
    box-shadow: 0 10px 24px rgba(11, 36, 66, 0.16);
}

.admin-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #E8EEF8;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
}

.admin-modal-footer .admin-btn {
    min-width: 132px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    min-height: 42px;
}

.admin-modal-body .admin-btn {
    border-radius: 10px;
}

.admin-inline-upload {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #d9e4f5;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.admin-inline-upload-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-upload-note {
    font-size: 0.8rem;
    color: #6d809f;
}

.admin-upload-preview {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-upload-preview img {
    width: 84px;
    height: 84px;
    border-radius: 10px;
    border: 1px solid #d9e4f5;
    object-fit: cover;
    background: #fff;
}

.admin-upload-preview-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Charts Container */
.chart-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.chart-card h3 {
    font-size: 1rem;
    color: #0A2540;
    margin-bottom: 20px;
}

.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.quick-action {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.quick-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.quick-action i {
    font-size: 1.5rem;
    color: #FFC107;
    margin-bottom: 8px;
}

.quick-action p {
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
    color: #333;
}

/* Recent Activity */
.activity-list {
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.activity-list h3 {
    padding: 20px 25px;
    border-bottom: 1px solid #E0E0E0;
    font-size: 1rem;
    margin: 0;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    border-bottom: 1px solid #F0F0F0;
    transition: all 0.3s ease;
}

.activity-item:hover { background: #FAFAFA; }

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Audit Logs */
.audit-list-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e7edf8;
    box-shadow: 0 10px 24px rgba(10, 37, 64, 0.08);
    overflow: hidden;
}

.audit-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #edf2fb;
}

.audit-list-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #0A2540;
}

.audit-list-header span {
    font-size: 0.85rem;
    color: #7f8ca6;
}

.audit-list {
    padding: 14px 18px 20px;
}

.audit-item {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.audit-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 18px;
    border: 2px solid #ffbf00;
}

.audit-body {
    border: 1px solid #ebeff8;
    border-radius: 12px;
    background: #fff;
    padding: 12px 14px;
}

.audit-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.audit-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-right: 6px;
}

.audit-chip.a-created, .audit-item.a-created .audit-dot { color: #0f8b6d; border-color: #0f8b6d; background: #dff8f0; }
.audit-chip.a-updated, .audit-item.a-updated .audit-dot { color: #9a7a00; border-color: #d2a300; background: #fff7da; }
.audit-chip.a-deleted, .audit-item.a-deleted .audit-dot { color: #b22727; border-color: #d94b4b; background: #ffe8e8; }

.audit-time {
    color: #8d98ad;
    font-size: 0.76rem;
}

.audit-desc {
    margin: 0 0 6px;
    color: #35435e;
    font-size: 0.88rem;
}

.audit-meta {
    color: #8d98ad;
    font-size: 0.76rem;
}

.activity-icon.green { background: #E8F5E9; color: #4CAF50; }
.activity-icon.blue { background: #E3F2FD; color: #2196F3; }
.activity-icon.orange { background: #FFF3E0; color: #FF9800; }
.activity-icon.red { background: #FFEBEE; color: #F44336; }

.activity-details h4 {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.activity-details p {
    font-size: 0.8rem;
    color: #999;
    margin: 2px 0 0;
}

.activity-time {
    margin-left: auto;
    font-size: 0.75rem;
    color: #BBB;
    white-space: nowrap;
}

/* Settings Page */
.settings-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 2px solid #E0E0E0;
    padding-bottom: 0;
}

.settings-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.settings-tab:hover { color: #333; }

.settings-tab.active {
    color: #0A2540;
    border-bottom-color: #FFC107;
}

.settings-panel {
    display: none;
}

.settings-panel.active { display: block; }

/* Pagination */
.admin-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 20px;
}

.admin-pagination button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    background: white;
    color: #666;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-pagination button:hover,
.admin-pagination button.active {
    background: #FFC107;
    color: #0A2540;
    border-color: #FFC107;
}

/* Contact View Modal */
.contact-view {
    padding: 20px;
}

.contact-view .field-group {
    margin-bottom: 15px;
}

.contact-view .field-label {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.contact-view .field-value {
    font-size: 0.95rem;
    color: #333;
}

/* Admin Toast */
.admin-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transform: translateX(120%);
    transition: all 0.4s ease;
    max-width: 350px;
}

.admin-toast.show { transform: translateX(0); }
.admin-toast.success { border-left: 4px solid #4CAF50; }
.admin-toast.error { border-left: 4px solid #F44336; }
.admin-toast.warning { border-left: 4px solid #FF9800; }

/* Responsive Admin */
@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-main { margin-left: 0; }
    
    .sidebar-toggle { display: block; }
    
    .charts-row { grid-template-columns: 1fr; }
    
    .admin-form-body .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .admin-content { padding: 15px; }
    
    .dash-cards { grid-template-columns: 1fr; }
    
    .admin-table-header { flex-direction: column; align-items: stretch; }
    
    .admin-table { font-size: 0.85rem; }
    
    .admin-table th, .admin-table td { padding: 10px 12px; }
    
    .login-card { padding: 30px 25px; }

    .admin-modal {
        padding: 10px;
    }

    .admin-modal-content {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 14px;
    }

    .admin-modal-header,
    .admin-modal-body,
    .admin-modal-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .admin-modal-footer {
        flex-direction: column;
    }

    .admin-modal-footer .admin-btn {
        width: 100%;
    }
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
