/* ==========================================
   AUTOSHOW ADMIN - CSS PROFESSIONNEL
   ========================================== */

:root {
    --admin-primary: #1a1a2e;
    --admin-accent: #C9A063;
    --admin-bg: #f8f9fa;
    --admin-sidebar: #ffffff;
    --admin-border: #e5e7eb;
    --admin-text: #1f2937;
    --admin-text-light: #6b7280;
    --admin-success: #10b981;
    --admin-danger: #ef4444;
    --admin-warning: #f59e0b;
    --admin-info: #3b82f6;
}

/* Layout */
.admin-body {
    display: flex;
    min-height: 100vh;
    background: var(--admin-bg);
    font-family: 'Inter', -apple-system, sans-serif;
}

/* === SIDEBAR === */
.sidebar-admin {
    width: 280px;
    background: var(--admin-sidebar);
    border-right: 1px solid var(--admin-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 32px 24px;
    border-bottom: 1px solid var(--admin-border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--admin-primary);
    margin-bottom: 4px;
}

.sidebar-subtitle {
    font-size: 0.75rem;
    color: var(--admin-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 12px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 8px;
    color: var(--admin-text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.sidebar-link:hover {
    background: #f9fafb;
    color: var(--admin-primary);
}

.sidebar-link.active {
    background: var(--admin-primary);
    color: white;
}

.link-icon {
    font-size: 1.25rem;
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid var(--admin-border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--admin-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--admin-text);
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.8rem;
    color: var(--admin-text-light);
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--admin-danger);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sidebar-logout:hover {
    background: #fee2e2;
}

/* === MAIN CONTENT === */
.main-admin {
    flex: 1;
    margin-left: 280px;
    padding: 32px;
}

/* === HEADER === */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--admin-primary);
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--admin-text-light);
    font-size: 0.95rem;
}

.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--admin-primary);
    color: white;
}

.btn-primary:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === STATS === */
.stats-grid-admin {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card-admin {
    background: white;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
}

.stat-card-admin:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-blue {
    background: #eff6ff;
}

.stat-green {
    background: #ecfdf5;
}

.stat-purple {
    background: #faf5ff;
}

.stat-gold {
    background: #fef3c7;
}

.stat-trend {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.stat-up {
    background: #ecfdf5;
    color: var(--admin-success);
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--admin-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--admin-text-light);
    font-weight: 500;
}

/* === CARD === */
.card-admin {
    background: white;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    overflow: hidden;
}

.card-header-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--admin-border);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--admin-primary);
    margin-bottom: 4px;
}

.card-description {
    font-size: 0.9rem;
    color: var(--admin-text-light);
}

.search-box {
    position: relative;
}

.search-input {
    width: 300px;
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(201, 160, 99, 0.1);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--admin-text-light);
}

/* === TABLE === */
.table-container {
    overflow-x: auto;
}

.table-admin {
    width: 100%;
    border-collapse: collapse;
}

.table-admin thead {
    background: #f9fafb;
    border-bottom: 1px solid var(--admin-border);
}

.table-admin th {
    padding: 16px 20px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--admin-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.th-sortable {
    cursor: pointer;
    user-select: none;
}

.th-sortable:hover {
    color: var(--admin-accent);
}

.sort-icon {
    margin-left: 4px;
    opacity: 0.3;
    font-size: 0.7rem;
}

.th-center {
    text-align: center;
}

.th-right {
    text-align: right;
}

.th-image {
    width: 80px;
}

.table-admin tbody tr {
    border-bottom: 1px solid var(--admin-border);
    transition: all 0.2s;
}

.table-admin tbody tr:hover {
    background: #f9fafb;
}

.table-admin td {
    padding: 16px 20px;
}

.table-image {
    width: 64px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
}

.table-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.table-brand {
    font-weight: 700;
    color: var(--admin-primary);
    font-size: 0.95rem;
}

.table-model {
    color: var(--admin-text-light);
    font-size: 0.9rem;
}

.table-price {
    font-weight: 700;
    color: var(--admin-accent);
    font-size: 0.95rem;
}

.table-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-year {
    background: #f3f4f6;
    color: var(--admin-text);
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-active {
    background: #ecfdf5;
    color: var(--admin-success);
}

.badge-inactive {
    background: #f3f4f6;
    color: var(--admin-text-light);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* === ACTIONS === */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-action {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.btn-view {
    background: #eff6ff;
    color: var(--admin-info);
}

.btn-view:hover {
    background: var(--admin-info);
    color: white;
    transform: scale(1.1);
}

.btn-edit {
    background: #fef3c7;
    color: var(--admin-warning);
}

.btn-edit:hover {
    background: var(--admin-warning);
    color: white;
    transform: scale(1.1);
}

.btn-toggle {
    background: #f3f4f6;
    color: var(--admin-text-light);
}

.btn-toggle:hover {
    background: var(--admin-text);
    color: white;
    transform: scale(1.1);
}

.btn-delete {
    background: #fee2e2;
    color: var(--admin-danger);
}

.btn-delete:hover {
    background: var(--admin-danger);
    color: white;
    transform: scale(1.1);
}

/* === TOAST === */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: white;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 350px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: #ecfdf5;
    color: var(--admin-success);
}

.toast-error .toast-icon {
    background: #fee2e2;
    color: var(--admin-danger);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    color: var(--admin-primary);
    margin-bottom: 4px;
}

.toast-message {
    font-size: 0.9rem;
    color: var(--admin-text-light);
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--admin-text-light);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.toast-close:hover {
    background: #f3f4f6;
    color: var(--admin-text);
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .stats-grid-admin {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar-admin {
        transform: translateX(-100%);
    }

    .main-admin {
        margin-left: 0;
    }

    .stats-grid-admin {
        grid-template-columns: 1fr;
    }

    .admin-header {
        flex-direction: column;
        gap: 16px;
    }
}

/* ==========================================
   FORMULAIRES PROFESSIONNELS
   ========================================== */

/* Header formulaire */
.admin-header-enhanced {
    background: white;
    border-bottom: 1px solid var(--admin-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-container-modern {
    background: white;
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    overflow: hidden;
}

.form-header-modern {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 40px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-bottom: 1px solid var(--admin-border);
}

.form-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.form-header-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--admin-primary);
    margin-bottom: 8px;
}

.form-header-text p {
    color: var(--admin-text-light);
    font-size: 1rem;
}

/* Sections du formulaire */
.form-section {
    padding: 40px;
    border-bottom: 1px solid var(--admin-border);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--admin-primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--admin-accent);
}

.form-section-icon {
    font-size: 1.5rem;
}

/* Groupes de champs */
.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-modern label {
    font-weight: 600;
    color: var(--admin-text);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group-modern input,
.form-group-modern select,
.form-group-modern textarea {
    padding: 14px 16px;
    border: 2px solid var(--admin-border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: white;
}

.form-group-modern input:focus,
.form-group-modern select:focus,
.form-group-modern textarea:focus {
    outline: none;
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 4px rgba(201, 160, 99, 0.1);
}

.form-group-modern textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-help {
    font-size: 0.85rem;
    color: var(--admin-text-light);
    font-style: italic;
}

/* Actions du formulaire */
.form-actions-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 40px;
    background: #f9fafb;
    gap: 16px;
}

/* Checkbox personnalisée */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    color: var(--admin-text);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--admin-accent);
}

/* Auth pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--admin-primary) 0%, #000000 100%);
    padding: 40px 20px;
}

.auth-container-single {
    max-width: 480px;
    width: 100%;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--admin-primary);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--admin-text-light);
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form label {
    font-weight: 600;
    color: var(--admin-text);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.label-icon {
    font-size: 1.1rem;
}

.auth-form input {
    padding: 14px 16px;
    border: 2px solid var(--admin-border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 4px rgba(201, 160, 99, 0.1);
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--admin-border);
}

.link-highlight {
    color: var(--admin-accent);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.link-highlight:hover {
    opacity: 0.7;
}

/* Alerts dans formulaires */
.alert {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 0 40px 24px 40px;
    border-left: 4px solid;
}

.alert-error {
    background: #fef2f2;
    border-color: var(--admin-danger);
}

.alert-success {
    background: #f0fdf4;
    border-color: var(--admin-success);
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    display: block;
    font-weight: 700;
    color: var(--admin-text);
    margin-bottom: 8px;
}

.alert-content ul {
    margin: 8px 0 0 20px;
    color: var(--admin-text-light);
}

.alert-content li {
    margin-bottom: 4px;
}

/* Responsive formulaires */
@media (max-width: 768px) {
    .form-header-modern {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .form-section {
        padding: 24px;
    }

    .form-actions-modern {
        flex-direction: column;
        padding: 24px;
    }

    .form-actions-modern .btn {
        width: 100%;
    }

    .alert {
        margin: 0 24px 24px 24px;
    }

    .auth-card {
        padding: 32px 24px;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(400px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   PAGE PARAMÈTRES
   ========================================== */

/* Tabs Navigation */
.tabs-container {
    margin-bottom: 32px;
}

.tabs-nav {
    display: flex;
    gap: 8px;
    background: white;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    padding: 8px;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--admin-text-light);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: #f9fafb;
    color: var(--admin-text);
}

.tab-btn.active {
    background: var(--admin-primary);
    color: white;
}

.tab-icon {
    font-size: 1.25rem;
}

/* Tab Panels */
.tabs-content {
    position: relative;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* Settings Cards */
.card-settings {
    background: white;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    overflow: hidden;
}

.card-settings-header {
    padding: 24px;
    border-bottom: 1px solid var(--admin-border);
}

.card-settings-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--admin-primary);
    margin-bottom: 4px;
}

.card-settings-header p {
    font-size: 0.9rem;
    color: var(--admin-text-light);
}

/* Settings Forms */
.settings-form {
    padding: 24px;
}

.form-group-settings {
    margin-bottom: 20px;
}

.form-group-settings label {
    display: block;
    font-weight: 600;
    color: var(--admin-text);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group-settings input,
.form-group-settings select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--admin-border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-group-settings input:disabled {
    background: #f9fafb;
    color: var(--admin-text-light);
    cursor: not-allowed;
}

.form-group-settings input:focus {
    outline: none;
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 4px rgba(201, 160, 99, 0.1);
}

.form-group-settings small {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--admin-text-light);
}

.form-actions-settings {
    margin-top: 24px;
}

.btn-settings {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-settings.btn-primary {
    background: var(--admin-primary);
    color: white;
}

.btn-settings.btn-primary:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Avatar Preview */
.avatar-preview {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
}

.avatar-info {
    text-align: center;
}

.avatar-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--admin-primary);
    margin-bottom: 4px;
}

.avatar-role {
    font-size: 0.9rem;
    color: var(--admin-text-light);
}

/* Danger Zone */
.card-warning {
    border-color: #fbbf24;
}

.card-warning .card-settings-header {
    background: #fef3c7;
    border-color: #fbbf24;
}

.danger-actions {
    padding: 24px;
}

.danger-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #fef3c7;
    border-radius: 8px;
    margin-bottom: 12px;
}

.danger-item:last-child {
    margin-bottom: 0;
}

.danger-title {
    font-weight: 700;
    color: var(--admin-text);
    margin-bottom: 4px;
}

.danger-desc {
    font-size: 0.85rem;
    color: var(--admin-text-light);
}

.btn-danger {
    padding: 10px 20px;
    background: var(--admin-danger);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #dc2626;
    transform: scale(1.05);
}

/* System Info */
.system-info {
    padding: 24px;
}

.system-item {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--admin-border);
}

.system-item:last-child {
    border-bottom: none;
}

.system-label {
    font-weight: 600;
    color: var(--admin-text);
}

.system-value {
    color: var(--admin-text-light);
    font-family: 'Courier New', monospace;
}

/* Extensions List */
.extensions-list {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.extension-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
}

.extension-item.active {
    background: #ecfdf5;
    color: var(--admin-success);
}

.extension-item.inactive {
    background: #fee2e2;
    color: var(--admin-danger);
}

.ext-status {
    font-size: 1.25rem;
}

/* Stats Grid Settings */
.stats-grid-settings {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.stat-card-large {
    background: white;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon-bg {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.stat-number-large {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--admin-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label-large {
    font-size: 0.9rem;
    color: var(--admin-text-light);
    font-weight: 600;
}

.stat-change {
    font-size: 0.85rem;
    color: var(--admin-accent);
    font-weight: 600;
    margin-top: 4px;
}

/* Chart Bars */
.chart-bars {
    padding: 24px;
}

.chart-bar-item {
    margin-bottom: 20px;
}

.chart-bar-item:last-child {
    margin-bottom: 0;
}

.chart-bar-label {
    font-weight: 600;
    color: var(--admin-text);
    margin-bottom: 8px;
}

.chart-bar-track {
    height: 32px;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.chart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--admin-accent), var(--admin-primary));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    transition: width 0.8s ease;
}

.chart-bar-value {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid-settings {
        grid-template-columns: 1fr;
    }

    .tabs-nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .extensions-list {
        grid-template-columns: 1fr;
    }

    .danger-item {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .btn-danger {
        width: 100%;
    }
}