/* Admin Dashboard Specific Styles */
body.admin-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f8fafc;
    overflow: hidden; /* Prevent double scrollbars */
}

#admin-dashboard {
    height: 100vh;
    display: none; /* Controlled by JS after login */
    overflow: hidden;
    background: #f8fafc;
    position: relative;
    display: flex; /* Added flex to allow sidebar and main to sit side-by-side */
}

.admin-sidebar {
    width: 280px;
    background: #0f172a;
    color: white;
    display: flex !important;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative !important;
    z-index: 100;
    overflow: hidden;
}

/* Sidebar Collapsed State (All Devices) */
.sidebar-collapsed .admin-sidebar {
    width: 0;
    border-right: none;
}

.menu-toggle {
    display: none !important; /* Hidden on desktop */
    background: transparent;
    border: none;
    color: #0f172a;
    cursor: pointer;
    padding: 8px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.menu-toggle:hover {
    background-color: #f1f5f9;
}

.admin-main {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    position: relative;
    background: #f8fafc;
    padding: 15px;
    transition: padding 0.3s ease;
}

@media (max-width: 992px) {
    .admin-sidebar {
        position: fixed !important;
        left: -280px;
        top: 0;
        height: 100vh !important;
        width: 280px !important;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    /* Sidebar Active State on Mobile/Tablet */
    .admin-sidebar.active {
        left: 0;
    }

    /* Override collapsed state on mobile/tablet to avoid width:0 */
    .sidebar-collapsed .admin-sidebar {
        width: 280px;
        left: -280px;
    }

    .sidebar-collapsed .admin-sidebar.active {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        backdrop-filter: blur(2px);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .admin-main {
        padding: 20px !important;
    }
    
    .dashboard-tables {
        grid-template-columns: 1fr;
    }

    .admin-split-layout {
        flex-direction: column;
        height: auto;
    }
}

/* Specific Phone Optimizations */
@media (max-width: 576px) {
    .admin-main > header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-bottom: 10px;
        border-bottom: 1px solid #f1f5f9;
        margin-top: 15px;
    }

    #admin-page-title {
        font-size: 1.25rem !important;
    }

    .admin-main > header > div:last-child {
        display: none; /* Hide profile on small phones */
    }

    .admin-stat-card .stat-value {
        font-size: 1.5rem;
    }
    
    /* Control Button Wrappers */
    .admin-panel-box > div:first-child {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    #actions-dropdown-container, 
    #import-btn, 
    #export-btn, 
    #add-new-btn,
    #instant-audit-container {
        width: 100% !important;
    }
}

.admin-nav-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-nav-item i {
    width: 18px;
    height: 18px;
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.admin-nav-item.active {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-right: 3px solid #3b82f6;
}

.admin-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.admin-tab-content.active {
    display: block;
}

   /* History Card Styles */
.notif-history-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center; 
    gap: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    position: relative;
    border: 1px solid #f1f5f9;
}

.history-card-icon {
    width: 60px;
    height: 90px;
    border-radius: 18px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.history-card-icon .check-badge {
    width: 24px;
    height: 24px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-card-content {
    flex: 1;
}

.history-card-content h4 {
    margin: 0 0 6px 0;
    font-size: 1.15rem;
    color: #0f172a;
    font-weight: 800;
}

.history-card-content p {
    margin: 0 0 12px 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
}

.history-card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: #94a3b8;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item.sent {
    color: #94a3b8;
}

.meta-item i {
    width: 14px;
    height: 14px;
}

.meta-bullet {
    width: 4px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 50%;
}

.history-delete-btn {
    position: absolute;
    top: 24px;
    right: 28px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.1s;
}

.history-delete-btn:hover {
    color: #ef4444;
}

.admin-stat-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.admin-stat-card h3 {
    margin: 0 0 8px 0;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-stat-card .stat-value {
    margin: 0;
    color: #0f172a;
    font-size: 2.2rem;
    font-weight: 800;
}

.stat-icon-bg {
    position: absolute;
    right: -10px;
    bottom: -10px;
    opacity: 0.05;
    transform: rotate(-15deg);
}

.stat-icon-bg i {
    width: 80px;
    height: 80px;
}

.admin-panel-box {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.admin-panel-box h3 {
    margin-top: 0;
    color: #1e293b;
    font-size: 1.1rem;
}

/* Admin Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
    table-layout: fixed; /* Changed back to fixed for better control */
}

.admin-table th {
    background: #f8fafc;
    padding: 12px 15px;
    color: #475569;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-table td {
    padding: 12px 15px;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Specific Column Widths for Client Audits */
.admin-table th:nth-child(1), .admin-table td:nth-child(1) { width: 40px; } /* Checkbox */
.admin-table th:nth-child(2), .admin-table td:nth-child(2) { width: 180px; } /* Name */
.admin-table th:nth-child(3), .admin-table td:nth-child(3) { width: 250px; } /* Website URL */
.admin-table th:nth-child(4), .admin-table td:nth-child(4) { width: 120px; } /* Phone */
.admin-table th:nth-child(5), .admin-table td:nth-child(5) { width: 70px; } /* Rating */
.admin-table th:nth-child(6), .admin-table td:nth-child(6) { width: 70px; } /* Health */
.admin-table th:nth-child(7), .admin-table td:nth-child(7) { width: 60px; } /* Status dot */
.admin-table th:nth-child(8), .admin-table td:nth-child(8) { width: 110px; } /* Audit Status tag */
.admin-table th:last-child, .admin-table td:last-child { width: 180px; text-align: right; } /* Actions */

.url-cell {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.url-cell:hover {
    text-decoration: underline;
}

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

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Form Styles for CRUD */
.admin-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-input-group label {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}

.admin-input-group input,
.admin-input-group textarea,
.admin-input-group select {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
}

.admin-input-group input:focus,
.admin-input-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.delete-btn {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.delete-btn:hover {
    background: #ef4444;
    color: white;
}

/* Status Indicator Dots */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

/* Tooltip implementation */
.tooltip-host {
    position: relative;
    cursor: default;
}

.tooltip-host::after {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 100;
}

.tooltip-host:hover::after {
    opacity: 1;
}

/* Actions Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    min-width: 180px;
    z-index: 50;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
    animation: fadeInDown 0.15s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu li.action-item,
.dropdown-menu li label {
    padding: 10px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    transition: background-color 0.2s;
}

.dropdown-menu li.action-item:hover,
.dropdown-menu li label:hover {
    background-color: #f8fafc;
}

.dropdown-menu li.divider {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}

/* WhatsApp Panel Visibility Control */
#tab-generic-data .whatsapp-panel {
    display: none !important;
}

#tab-generic-data.show-whatsapp .whatsapp-panel {
    display: flex !important;
    min-width: 350px; /* Ensure at least 1/4 of common screen width */
    max-width: 450px; /* Don't let it get overly wide */
}

/* Enforce 3:1 Ratio on Desktop */
@media (min-width: 993px) {
    .admin-split-layout > .admin-panel-box:first-child {
        flex: 3 !important;
        min-width: 0; /* Allow shrinking */
    }
    .admin-split-layout > .whatsapp-panel {
        flex: 1 !important;
        min-width: 350px !important;
    }
}

/* Responsive Dashboard Styles */
.dashboard-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-split-layout {
    display: flex;
    gap: 20px;
    height: calc(100vh - 180px);
    /* Fill remaining height */
    min-height: 500px;
    align-items: stretch;
}

/* Ensure children handle their own height */
.admin-split-layout>div {
    display: flex;
    flex-direction: column;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    #admin-dashboard {
        flex-direction: column !important;
        overflow-y: auto !important;
    }

    .admin-sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        height: 100vh !important;
        width: 280px !important;
        z-index: 1000;
        transition: left 0.3s ease;
        border-right: 1px solid #1e293b !important;
        border-bottom: none !important;
    }

    .admin-sidebar.active {
        left: 0;
    }

    .admin-nav ul {
        flex-direction: column !important;
        overflow-x: hidden;
        padding-bottom: 0;
    }

    .admin-nav-item {
        white-space: normal;
    }

    .menu-toggle {
        display: flex !important;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .dashboard-tables {
        grid-template-columns: 1fr;
    }

    /* Force all hardcoded tab grids to stack nicely on mobile */
    .admin-tab-content [style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .admin-split-layout {
        flex-direction: column;
        height: auto;
    }

    .admin-main {
        padding: 15px !important;
        flex: 1;
        min-width: 0;
    }

    .grid-3 {
        display: grid;
        grid-template-columns: 1fr;
    }

    /* Make sure whatsapp panel takes full width underneath on small screens */
    #tab-generic-data.show-whatsapp .admin-panel-box:first-child {
        flex: unset !important;
        margin-bottom: 20px;
        width: 100%;
    }

    /* Fixed spacing for header controls on mobile */
    .admin-tab-content .admin-panel-box>div:first-child {
        flex-direction: column;
        align-items: stretch !important;
        gap: 15px !important;
    }

    #actions-dropdown-container, 
    #import-btn, 
    #export-btn, 
    #add-new-btn {
        width: 100%;
    }

    #actions-btn, 
    #import-btn, 
    #export-btn, 
    #add-new-btn {
        width: 100%;
        justify-content: center;
    }

    .admin-panel-box > div:first-child > div:last-child {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
}

/* Mobile specifically (Phones ~ 400px width) */
@media (max-width: 576px) {
    .admin-main>header {
        flex-direction: row !important; /* Keep icon and title in row */
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px;
        margin-bottom: 20px;
    }

    #admin-page-title {
        font-size: 1.4rem !important;
    }

    .admin-main > header > div:last-child {
        display: none; /* Hide user display info on very small screens to save space */
    }

    /* Wrap right-side table controls */
    .admin-panel-box>div:first-child>div {
        justify-content: flex-start !important;
        width: 100%;
    }

    #audit-search-container {
        width: 100%;
    }

    #audit-search {
        width: 100% !important;
    }

    /* Stack Instant Audit Form inputs */
    #instant-audit-container {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
        gap: 10px !important;
        padding: 15px !important;
    }

    #instant-audit-container input {
        width: 100% !important;
    }

    #instant-audit-btn {
        width: 100%;
        justify-content: center;
    }

    .admin-stat-card .stat-value {
        font-size: 1.8rem;
    }
}

/* Payment Gateway Card Styles */
.gateway-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.gateway-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.gateway-card.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 1px #3b82f6;
}

.gateway-card.selected::after {
    content: 'Active';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #3b82f6;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}

/* Branding Styles */
.branding-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}

.branding-upload-area:hover {
    border-color: #3b82f6;
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.branding-upload-area:active {
    transform: translateY(0);
}

/* SEO Management Suite Styles */
.seo-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.seo-tool-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.seo-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #3b82f6;
}

.seo-tool-icon-bg {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.seo-tool-card:hover .seo-tool-icon-bg {
    background: #3b82f6;
    color: white;
}

.seo-tool-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    transition: color 0.3s ease;
}

.seo-tool-card:hover h4 {
    color: #3b82f6;
}

.seo-tool-card p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    margin-top: auto;
}

.tool-score-indicator {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
}

.desktop-only {
    display: block;
}

@media (max-width: 992px) {
    .seo-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .seo-tools-grid {
        grid-template-columns: 1fr;
    }
    .desktop-only {
        display: none;
    }
    #tab-seo > div > div:first-child + div {
        grid-template-columns: 1fr !important;
    }
}
/* Page SEO Editor Styles */
.seo-editor-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    margin-top: 24px;
    align-items: start;
}

.seo-page-sidebar {
    background: white;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    padding: 20px;
    position: sticky;
    top: 24px;
}

.seo-page-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.seo-page-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.seo-page-item:hover {
    background: #f8fafc;
}

.seo-page-item.active {
    background: #f0f7ff;
    border-color: #3b82f6;
}

.seo-page-item .page-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.seo-page-item.active .page-name {
    color: #3b82f6;
}

.seo-page-item .page-path {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 2px;
}

.seo-main-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.seo-editor-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.seo-score-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.seo-score-display {
    display: flex;
    align-items: center;
    gap: 20px;
}

.seo-score-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
}

.seo-score-val {
    color: #3b82f6;
}

.seo-score-max {
    color: #94a3b8;
    font-size: 1.5rem;
}

.seo-score-bar-container {
    width: 200px;
    height: 12px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.seo-score-bar-fill {
    height: 100%;
    background: #10b981;
    transition: width 0.5s ease;
}

.seo-ai-analyst-box {
    background: #fdfaff;
    border: 1px solid #f3e8ff;
    border-radius: 12px;
    padding: 20px;
}

.seo-input-group {
    margin-bottom: 24px;
}

.seo-input-group label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.seo-input-group input,
.seo-input-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
}

.seo-input-group input:focus,
.seo-input-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.05);
}

.seo-meta-preview {
    background: white;
    border: 1px solid #dfe1e5;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    max-width: 600px;
}

.seo-preview-title {
    color: #1a0dab;
    font-size: 20px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seo-preview-url {
    color: #006621;
    font-size: 14px;
    margin-bottom: 4px;
}

.seo-preview-desc {
    color: #545454;
    font-size: 14px;
    line-height: 1.58;
}

@media (max-width: 992px) {
    .seo-editor-layout {
        grid-template-columns: 1fr;
    }
    
    .seo-page-sidebar {
        position: static;
    }
}

/* --- SEO Health Dashboard --- */
#tab-seo-health .admin-panel-box {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#tab-seo-health .admin-panel-box:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

#health-score-circle {
    transition: stroke-dasharray 1s ease-in-out;
}

#health-priority-list::-webkit-scrollbar {
    width: 6px;
}

#health-priority-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

#health-priority-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

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

@keyframes pulse-soft {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.health-status-badge {
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Premium Glassmorphic Admin Dashboard Accents */
.admin-sidebar {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1) !important;
}

.admin-main {
    background: linear-gradient(135deg, #f0f4f8 0%, #e6eef4 50%, #dbeafe 100%) !important;
    background-attachment: fixed !important;
}

#tab-seo-health .admin-panel-box {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04) !important;
    border-radius: 20px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#tab-seo-health .admin-panel-box:hover {
    background: rgba(255, 255, 255, 0.65) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.08) !important;
    transform: translateY(-2px);
}

