/* ============================================
   COMPONENTS.CSS - ANOON PRO Back-Office
   Composants UI réutilisables
   ============================================ */

/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
    --primary: #1B4F72;
    --primary-light: #2E6B8A;
    --accent: #E67E22;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --neutral: #6c757d;
}

/* ============================================
   BOUTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn i {
    font-size: 14px;
}

/* Bouton primaire */
.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-light);
    box-shadow: 0 2px 8px rgba(27, 79, 114, 0.3);
}

/* Bouton secondaire */
.btn-secondary {
    background: #f5f6fa;
    color: #495057;
    border: 1px solid #e9ecef;
}

.btn-secondary:hover:not(:disabled) {
    background: #e9ecef;
}

/* Bouton succès */
.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #229954;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

/* Bouton danger */
.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #c0392b;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* Bouton warning */
.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover:not(:disabled) {
    background: #e67e22;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

/* Tailles de boutons */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* Bouton pleine largeur */
.btn-block {
    width: 100%;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
}

.badge-success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.badge-warning {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.badge-danger {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.badge-neutral {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.badge-primary {
    background: rgba(27, 79, 114, 0.1);
    color: var(--primary);
}

.badge i {
    font-size: 10px;
}

/* ============================================
   FORMULAIRES
   ============================================ */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 6px;
}

.form-label.required::after {
    content: " *";
    color: var(--danger);
}

.form-input,
.form-select,
.form-textarea,
.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #2c3e50;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 79, 114, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder,
.form-control::placeholder {
    color: #adb5bd;
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled,
.form-control:disabled {
    background: #f5f6fa;
    cursor: not-allowed;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Input avec icône */
.form-input-icon {
    position: relative;
}

.form-input-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
}

.form-input-icon .form-input {
    padding-left: 40px;
}

/* Messages d'erreur */
.form-error {
    display: block;
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--danger);
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Checkbox et Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check label {
    font-size: 14px;
    color: #495057;
    cursor: pointer;
}

/* ============================================
   TABLES
   ============================================ */
.data-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f5f6fa;
}

.data-table th {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.data-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: #2c3e50;
    border-top: 1px solid #e9ecef;
}

.data-table tbody tr:hover {
    background: #f5f6fa;
}

.data-table tbody tr.selected {
    background: rgba(27, 79, 114, 0.05);
}

/* Alignement */
.data-table .text-center {
    text-align: center;
}

.data-table .text-right {
    text-align: right;
}

/* Cellule avec actions */
.data-table .actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 16px 20px;
    border-top: 1px solid #e9ecef;
    background: #f5f6fa;
}

/* ============================================
   ICÔNES D'ACTION
   ============================================ */
.action-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: #6c757d;
    font-size: 14px;
}

.action-icon:hover {
    background: #f5f6fa;
}

.action-icon.edit:hover {
    background: rgba(27, 79, 114, 0.1);
    color: var(--primary);
}

.action-icon.delete:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.action-icon.view:hover {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.action-icon.print:hover {
    background: rgba(108, 117, 125, 0.1);
    color: var(--neutral);
}

.action-icon.download:hover {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning);
}

/* ============================================
   MODALES
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.show .modal {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f5f6fa;
    color: #2c3e50;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #f5f6fa;
}

/* ============================================
   TOASTS / NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(500px);
    transition: transform 0.3s;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: #6c757d;
}

.toast-close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6c757d;
    border-radius: 4px;
}

.toast-close:hover {
    background: #f5f6fa;
}

/* Toast Success */
.toast-success .toast-icon {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.toast-success {
    border-left: 4px solid var(--success);
}

/* Toast Error */
.toast-error .toast-icon {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

/* Toast Warning */
.toast-warning .toast-icon {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning);
}

.toast-warning {
    border-left: 4px solid var(--warning);
}

/* Toast Info */
.toast-info .toast-icon {
    background: rgba(27, 79, 114, 0.1);
    color: var(--primary);
}

.toast-info {
    border-left: 4px solid var(--primary);
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f5f6fa;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.spinner-lg {
    width: 60px;
    height: 60px;
    border-width: 6px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.pagination-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    background: white;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
}

.pagination-item:hover {
    background: #f5f6fa;
}

.pagination-item.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   TABS
   ============================================ */
.tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    gap: 4px;
}

.tab-item {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-item:hover {
    color: var(--primary);
}

.tab-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    padding: 20px 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 14px 16px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.alert i {
    font-size: 16px;
    margin-top: 2px;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.alert-info {
    background: rgba(27, 79, 114, 0.1);
    color: var(--primary);
    border: 1px solid rgba(27, 79, 114, 0.2);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: #6c757d !important; }

.bg-primary { background: var(--primary) !important; }
.bg-success { background: var(--success) !important; }
.bg-danger { background: var(--danger) !important; }
.bg-warning { background: var(--warning) !important; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ============================================
   TOOLBAR / PAGE HEADER
   ============================================ */
.toolbar,
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.toolbar-left,
.page-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.toolbar-right,
.page-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar h2,
.page-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1E293B;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar h2 i,
.page-header h2 i {
    color: var(--primary);
}

.record-count {
    font-size: 13px;
    color: #64748B;
}

/* ============================================
   RECHERCHE (SEARCH INPUT)
   ============================================ */
.toolbar-search,
.search-input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 10px 14px;
    min-width: 280px;
    transition: all 0.2s;
}

.toolbar-search:focus-within,
.search-input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 79, 114, 0.1);
}

.toolbar-search i,
.search-input i {
    color: #94A3B8;
    font-size: 14px;
}

.toolbar-search input,
.search-input input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #1E293B;
    width: 100%;
    font-family: inherit;
}

.toolbar-search input::placeholder,
.search-input input::placeholder {
    color: #94A3B8;
}

/* ============================================
   CHIPS / SÉLECTION RAPIDE
   ============================================ */
.quick-filters,
.chips-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 16px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.chip:hover {
    background: #E2E8F0;
    border-color: #CBD5E1;
}

.chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ============================================
   BARRE DE FILTRES
   ============================================ */
.filters-bar {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.filters-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filters-row + .filters-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #F1F5F9;
}

.filters-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 14px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    color: #475569;
    background: white;
    cursor: pointer;
    min-width: 160px;
    font-family: inherit;
    transition: all 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 79, 114, 0.1);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: 1px solid #E2E8F0;
    background: white;
    border-radius: 8px;
    color: #64748B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: var(--primary);
}

/* ============================================
   KPI CARDS
   ============================================ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.kpi-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.kpi-content {
    flex: 1;
    min-width: 0;
}

.kpi-label {
    font-size: 13px;
    color: #64748B;
    margin-bottom: 4px;
}

.kpi-value {
    font-size: 22px;
    font-weight: 600;
    color: #1E293B;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status-badge i {
    font-size: 6px;
}

.status-badge.active {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.status-badge.inactive {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.status-badge.pending {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.status-badge.danger {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* ============================================
   ACTION BUTTONS (ICÔNES GRISES)
   ============================================ */
.actions {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #94A3B8;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    font-size: 14px;
}

.action-btn:hover {
    background: #F1F5F9;
    color: #475569;
}

.action-btn.view:hover {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.action-btn.edit:hover {
    background: rgba(27, 79, 114, 0.1);
    color: var(--primary);
}

.action-btn.delete:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* ============================================
   ACTION MENU (KEBAB / 3 POINTS)
   ============================================ */
.action-menu-container {
    position: relative;
}

.action-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    min-width: 180px;
    z-index: 100;
    display: none;
    padding: 6px 0;
}

.action-menu.show {
    display: block;
}

.action-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s;
}

.action-menu-item:hover {
    background: #F8FAFC;
}

.action-menu-item i {
    width: 16px;
    color: #94A3B8;
    text-align: center;
}

.action-menu-item.danger {
    color: #e74c3c;
}

.action-menu-item.danger i {
    color: #e74c3c;
}

/* ============================================
   TABLE CONTAINER
   ============================================ */
.table-container {
    background: white;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

.table-container .data-table {
    border-radius: 0;
    box-shadow: none;
}

/* ============================================
   PAGINATION AMÉLIORÉE
   ============================================ */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.pagination-info {
    font-size: 13px;
    color: #64748B;
}

.pagination-size {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    border: 1px solid #E2E8F0;
    background: white;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.page-btn:hover:not(:disabled) {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   SETTINGS GRID (PARAMÉTRAGE)
   ============================================ */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.settings-section {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 24px;
}

.settings-section.full-width {
    grid-column: span 2;
}

@media (max-width: 1024px) {
    .settings-section.full-width {
        grid-column: span 1;
    }
}

.settings-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1E293B;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F1F5F9;
}

.settings-section h3 i {
    color: var(--primary);
    font-size: 16px;
}

/* ============================================
   FORM GRID
   ============================================ */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-grid .full-width {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-grid .full-width {
        grid-column: span 1;
    }
}

/* ============================================
   SAVE BUTTON CONTAINER
   ============================================ */
.save-btn-container {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #E2E8F0;
    margin-top: 24px;
}

/* ============================================
   RESPONSIVE COLUMNS
   ============================================ */
.col-responsive {
    display: none;
}

@media (min-width: 1400px) {
    .col-responsive {
        display: table-cell;
    }
}

/* ============================================
   STAR BADGE (PAR DÉFAUT)
   ============================================ */
.star-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 4px;
}

.star-badge i {
    color: #f39c12;
    font-size: 12px;
}

/* ============================================
   TABS SYSTEM
   ============================================ */
.tabs-container {
    margin-bottom: 0;
}

.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e9ecef;
}

.tab {
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
}

.tab:hover {
    color: var(--primary);
    background: rgba(27, 79, 114, 0.05);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: white;
}

.tab i {
    font-size: 14px;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}
