/**
 * AgenceSEO - Styles principaux
 * Design moderne et professionnel
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Palette principale - Bleu profond et accents chaleureux */
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-subtle: #dbeafe;

    /* Couleurs d'accent */
    --accent-color: #f97316;
    --accent-light: #fb923c;
    --accent-subtle: #fff7ed;

    /* Couleurs sémantiques */
    --success-color: #10b981;
    --success-light: #d1fae5;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --danger-color: #ef4444;
    --danger-light: #fee2e2;
    --info-color: #0ea5e9;
    --info-light: #e0f2fe;

    /* Neutres */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Sidebar */
    --sidebar-bg: #0f172a;
    --sidebar-hover: rgba(255, 255, 255, 0.05);
    --sidebar-active: rgba(37, 99, 235, 0.15);

    /* Layout */
    --sidebar-width: 280px;
    --header-height: 72px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-sm: 8px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   SIDEBAR
   ========================================== */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform var(--transition-slow);
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-brand h2 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.025em;
}

.sidebar-logo {
    max-width: 100%;
    height: auto;
    max-height: 40px;
}

.sidebar-nav {
    padding: 1rem 0;
}

/* Navigation Section Title */
.nav-section {
    padding: 1.25rem 1.25rem 0.5rem;
    margin-top: 0.5rem;
}

.nav-section-title {
    color: var(--gray-500);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Navigation Links */
.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: var(--gray-400);
    text-decoration: none;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
    margin: 2px 0;
    font-size: 0.9375rem;
    font-weight: 500;
}

.sidebar-nav .nav-link:hover {
    color: white;
    background-color: var(--sidebar-hover);
}

.sidebar-nav .nav-link.active {
    color: white;
    background-color: var(--sidebar-active);
    border-left-color: var(--primary-color);
}

.sidebar-nav .nav-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.sidebar-nav .nav-link i,
.sidebar-nav .nav-link svg {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    flex-shrink: 0;
    opacity: 0.8;
}

.sidebar-nav .nav-link:hover i,
.sidebar-nav .nav-link:hover svg,
.sidebar-nav .nav-link.active i,
.sidebar-nav .nav-link.active svg {
    opacity: 1;
}

/* Sidebar Submenu */
.nav-submenu {
    margin-bottom: 0;
}

.nav-submenu-toggle {
    cursor: pointer;
}

.nav-submenu-toggle .submenu-arrow {
    transition: transform var(--transition-base);
    opacity: 0.5;
}

.nav-submenu.open .nav-submenu-toggle .submenu-arrow {
    transform: rotate(180deg);
}

.nav-submenu-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
    background-color: rgba(0, 0, 0, 0.2);
}

.nav-submenu.open .nav-submenu-items {
    max-height: 600px;
}

.nav-submenu-items .nav-link {
    padding-left: 1.5rem;
    font-size: 0.875rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.nav-submenu-items .nav-link i:first-child,
.nav-submenu-items .nav-link svg:first-child {
    width: 22px;
    height: 22px;
    margin-right: 0.625rem;
}

.nav-submenu-items .nav-link .d-flex.flex-column span {
    line-height: 1.3;
}

.nav-submenu-items .nav-link .d-flex.flex-column small {
    font-size: 0.6875rem !important;
    color: var(--gray-500) !important;
    font-weight: 400;
}

/* ==========================================
   MAIN CONTENT AREA
   ========================================== */

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--gray-50);
}

/* Main Header */
.main-header {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

/* Content Area */
.content-area {
    padding: 2rem;
    max-width: 1600px;
}

/* Page Title */
.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.025em;
}

/* ==========================================
   CARDS
   ========================================== */

.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    background: white;
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--gray-100);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Dashboard Cards with Icons */
.dashboard-card {
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.dashboard-card .card-header {
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

.dashboard-card .card-header.bg-owner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.dashboard-card .card-header.bg-human {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
}

.dashboard-card .card-header.bg-ai {
    background: linear-gradient(135deg, var(--info-color) 0%, #0284c7 100%);
    color: white;
}

.dashboard-card .card-header h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* ==========================================
   SITE SELECTOR
   ========================================== */

.site-selector-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.site-selector-card label {
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
    font-size: 0.9375rem;
}

.site-selector-card .form-select {
    max-width: 320px;
    border-radius: var(--border-radius-sm);
    border-color: var(--gray-300);
    font-weight: 500;
    padding: 0.625rem 2.5rem 0.625rem 1rem;
}

.site-selector-card .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

/* ==========================================
   BADGES
   ========================================== */

.badge-plan {
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.badge-plan-gratuit {
    background-color: var(--gray-100);
    color: var(--gray-600);
}

.badge-plan-pro {
    background: linear-gradient(135deg, var(--primary-subtle) 0%, #bfdbfe 100%);
    color: var(--primary-dark);
}

.badge-plan-agence {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

/* Status Badges */
.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

.badge.bg-warning {
    background-color: var(--warning-light) !important;
    color: #92400e !important;
}

.badge.bg-info {
    background-color: var(--info-light) !important;
    color: #0369a1 !important;
}

.badge.bg-success {
    background-color: var(--success-light) !important;
    color: #065f46 !important;
}

/* ==========================================
   ACTION LISTS
   ========================================== */

.action-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.action-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
    transition: background-color var(--transition-fast);
}

.action-item:last-child {
    border-bottom: none;
}

.action-item:hover {
    background-color: var(--gray-50);
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.action-item .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 1rem;
    border-radius: 6px;
    border: 2px solid var(--gray-300);
    cursor: pointer;
    flex-shrink: 0;
}

.action-item .form-check-input:checked {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.action-item .form-check-input:focus {
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.action-item span {
    flex: 1;
    color: var(--gray-700);
    font-size: 0.9375rem;
}

/* AI Action Items */
.ai-action-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.75rem;
    transition: all var(--transition-fast);
}

.ai-action-item:hover {
    background: var(--gray-100);
}

.ai-action-item:last-child {
    margin-bottom: 0;
}

.ai-action-item .action-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.ai-action-item .action-text {
    font-size: 0.9375rem;
    color: var(--gray-700);
    font-weight: 500;
}

.ai-action-item .btn-action {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-subtle);
    background: white;
    color: var(--primary-color);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.ai-action-item .btn-action:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.ai-action-item .btn-action i,
.ai-action-item .btn-action svg {
    width: 16px;
    height: 16px;
}

/* Running Action */
.ai-action-item.running {
    background: var(--info-light);
    border: 1px solid #bae6fd;
}

.ai-action-item.running .action-text {
    color: #0369a1;
}

.ai-action-item .progress-indicator {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--info-color);
}

/* Section Headers in Cards */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.section-header i,
.section-header svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--gray-500);
}

.empty-state i,
.empty-state svg {
    width: 40px;
    height: 40px;
    opacity: 0.4;
    margin-bottom: 0.75rem;
}

.empty-state p {
    margin: 0;
    font-size: 0.9375rem;
}

/* ==========================================
   CREDITS DISPLAY
   ========================================== */

.credits-display {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--success-light);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #065f46;
}

.credits-display i,
.credits-display svg {
    width: 18px;
    height: 18px;
}

.credits-display.low {
    background: var(--danger-light);
    color: #991b1b;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    padding: 0.625rem 1.25rem;
    transition: all var(--transition-fast);
    font-size: 0.9375rem;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-primary:focus {
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.btn-outline-primary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-light {
    background: white;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-light:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-success {
    background: var(--success-color);
    border: none;
}

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

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
}

/* ==========================================
   FORMS
   ========================================== */

.form-control,
.form-select {
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--gray-300);
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-subtle);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

/* ==========================================
   DROPDOWN
   ========================================== */

.dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: var(--border-radius-sm);
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.dropdown-item.text-danger:hover {
    background: var(--danger-light);
    color: var(--danger-color);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--gray-200);
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================
   WELCOME CARD
   ========================================== */

.welcome-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    border: 2px dashed var(--gray-300);
}

.welcome-card .welcome-icon {
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.welcome-card .welcome-icon i,
.welcome-card .welcome-icon svg {
    width: 40px;
    height: 40px;
    color: var(--gray-400);
}

.welcome-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.welcome-card p {
    color: var(--gray-500);
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

/* ==========================================
   AGENT CARDS
   ========================================== */

.agent-card {
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.agent-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.agent-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.agent-card.disabled:hover {
    transform: none;
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

.agent-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.agent-icon svg {
    width: 28px;
    height: 28px;
}

/* ==========================================
   STATS CARDS
   ========================================== */

.stat-card {
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin: 0.5rem 0;
    color: var(--gray-900);
}

.stat-card .stat-label {
    color: var(--gray-500);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ==========================================
   REPORT DISPLAY
   ========================================== */

.report-content {
    background: var(--gray-50);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.report-content h2 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    font-weight: 600;
}

.report-content h3 {
    font-size: 1.1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
    font-weight: 600;
}

.report-content ul {
    padding-left: 1.5rem;
}

.report-content code {
    background: var(--gray-200);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--gray-800);
}

.report-content pre {
    background: var(--gray-800);
    color: var(--gray-100);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    overflow-x: auto;
}

/* ==========================================
   SCORE DISPLAY
   ========================================== */

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.score-circle.score-high {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
}

.score-circle.score-medium {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
}

.score-circle.score-low {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
}

/* ==========================================
   LOADING & SPINNERS
   ========================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* HTMX Indicators */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-request.htmx-indicator {
    display: inline-block;
}

/* ==========================================
   SITE CARD
   ========================================== */

.site-card {
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    border-radius: var(--border-radius);
}

.site-card:hover {
    border-color: var(--primary-color);
}

.site-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

/* ==========================================
   ISSUE BADGES
   ========================================== */

.issue-critical {
    background-color: var(--danger-light);
    color: #991b1b;
}

.issue-warning {
    background-color: var(--warning-light);
    color: #92400e;
}

.issue-info {
    background-color: var(--gray-100);
    color: var(--gray-600);
}

/* ==========================================
   MODAL
   ========================================== */

.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: var(--gray-900);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

.modal-lg-custom {
    max-width: 900px;
}

.btn-close {
    opacity: 0.5;
}

.btn-close:hover {
    opacity: 1;
}

/* ==========================================
   MOBILE HEADER
   ========================================== */

.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--sidebar-bg);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    z-index: 999;
    gap: 0.75rem;
}

.btn-burger {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-fast);
}

.btn-burger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-burger i {
    width: 24px;
    height: 24px;
}

.mobile-brand h2 {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.btn-user-mobile {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}

.btn-user-mobile:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-user-mobile i {
    width: 20px;
    height: 20px;
}

/* ==========================================
   SIDEBAR OVERLAY
   ========================================== */

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
    backdrop-filter: blur(2px);
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

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

    .main-content {
        margin-left: 0;
        padding-top: var(--header-height);
    }

    .main-header {
        display: none;
    }

    .content-area {
        padding: 1.25rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .site-selector-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .site-selector-card .form-select {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .content-area {
        padding: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .dashboard-card .card-header {
        padding: 1rem;
    }
}

/* ==========================================
   SCROLLBAR
   ========================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) var(--gray-100);
}

/* ==========================================
   PRINT
   ========================================== */

@media print {
    .sidebar,
    .main-header,
    .mobile-header {
        display: none !important;
    }

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

    .content-area {
        padding: 0;
    }
}

/* ==========================================
   LIST GROUP OVERRIDE
   ========================================== */

.list-group-flush {
    border-radius: 0;
}

.list-group-flush .list-group-item {
    border: none;
    border-bottom: 1px solid var(--gray-100);
    padding: 1rem 0;
}

.list-group-flush .list-group-item:last-child {
    border-bottom: none;
}

/* ==========================================
   UTILITIES
   ========================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider {
    height: 1px;
    background: var(--gray-200);
    margin: 1.5rem 0;
}
