/* =============================================================
   ANNUAIRE COMMERCIAL — Design System
   Bootstrap 5.3 + CSS3 Custom
   ============================================================= */

/* ----- CSS Variables ----- */
:root {
    --sidebar-width: 260px;
    --sidebar-collapsed: 80px;
    --sidebar-bg: #1a1d29;
    --sidebar-hover: #252836;
    --sidebar-active: #4361ee;
    --sidebar-text: #8a8fa8;
    --sidebar-text-active: #ffffff;
    --topbar-height: 64px;
    --body-bg: #f0f2f5;
    --card-bg: #ffffff;
    --card-radius: 12px;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
    --primary: #4361ee;
    --primary-rgb: 67, 97, 238;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family:
        "Segoe UI",
        system-ui,
        -apple-system,
        sans-serif;
    background: var(--body-bg);
    color: #2d3748;
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #c1c5ce;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a0a4ad;
}

/* =============================================================
   SIDEBAR
   ============================================================= */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition:
        width var(--transition),
        transform var(--transition);
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    white-space: nowrap;
}

.sidebar-logo i {
    font-size: 1.6rem;
    color: var(--primary);
    flex-shrink: 0;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--sidebar-text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
}

/* Nav */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

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

.sidebar-menu-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.25);
    padding: 20px 24px 8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 24px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition);
    border-left: 3px solid transparent;
    white-space: nowrap;
}

.sidebar-link:hover {
    color: var(--sidebar-text-active);
    background: var(--sidebar-hover);
}

.sidebar-link.active {
    color: var(--sidebar-text-active);
    background: rgba(67, 97, 238, 0.12);
    border-left-color: var(--primary);
}

.sidebar-link i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

/* Footer user */
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    color: var(--primary);
    font-size: 1.8rem;
    flex-shrink: 0;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-user-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.sidebar-user-role {
    color: var(--sidebar-text);
    font-size: 0.72rem;
    white-space: nowrap;
}

/* Sidebar collapsed (desktop) */
body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed);
}

body.sidebar-collapsed .sidebar-logo-text,
body.sidebar-collapsed .sidebar-link span,
body.sidebar-collapsed .sidebar-menu-label,
body.sidebar-collapsed .sidebar-user-info {
    opacity: 0;
    visibility: hidden;
    width: 0;
}

body.sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    border-left-color: transparent;
}

body.sidebar-collapsed .sidebar-link.active {
    background: rgba(67, 97, 238, 0.2);
    border-radius: 8px;
    margin: 2px 12px;
}

body.sidebar-collapsed .sidebar-user {
    justify-content: center;
}

body.sidebar-collapsed .main-wrapper {
    margin-left: var(--sidebar-collapsed);
}

/* Overlay mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1035;
    backdrop-filter: blur(2px);
}

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

/* =============================================================
   MAIN WRAPPER
   ============================================================= */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition);
}

/* =============================================================
   TOPBAR
   ============================================================= */
.topbar {
    position: sticky;
    top: 0;
    height: var(--topbar-height);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    z-index: 1020;
}

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

.topbar-toggle {
    background: none;
    border: none;
    font-size: 1.35rem;
    color: #4a5568;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background var(--transition);
}

.topbar-toggle:hover {
    background: var(--body-bg);
}

.topbar-search {
    position: relative;
    max-width: 380px;
    width: 100%;
}

.topbar-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 0.9rem;
}

.topbar-search .form-control {
    padding-left: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: var(--body-bg);
    font-size: 0.85rem;
    transition: all var(--transition);
}

.topbar-search .form-control:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

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

.topbar-icon-btn {
    background: none;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    font-size: 1.1rem;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.topbar-icon-btn:hover {
    background: var(--body-bg);
    color: var(--primary);
}

.topbar-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e63946;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-divider {
    width: 1px;
    height: 28px;
    background: #e2e8f0;
    margin: 0 8px;
}

.topbar-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 4px 10px 4px 4px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    transition: background var(--transition);
}

.topbar-user-btn:hover {
    background: var(--body-bg);
}

.topbar-user-btn::after {
    font-size: 0.7rem;
    margin-left: 2px;
}

.topbar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #6f42c1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* =============================================================
   MAIN CONTENT
   ============================================================= */
.main-content {
    flex: 1;
    padding: 28px 24px;
}

/* Page header */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.page-subtitle {
    font-size: 0.88rem;
    color: #718096;
    margin: 4px 0 0;
}

/* =============================================================
   KPI CARDS
   ============================================================= */
.kpi-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--kpi-color, var(--primary));
    transition: all var(--transition);
    overflow: hidden;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.kpi-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
}

.kpi-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a202c;
    margin: 6px 0 0;
    line-height: 1;
}

.kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.kpi-footer {
    padding: 10px 24px;
    background: #f8fafc;
    font-size: 0.76rem;
    color: #a0aec0;
    border-top: 1px solid #edf2f7;
}

/* =============================================================
   DASHBOARD CARDS (Charts, Tables)
   ============================================================= */
.dashboard-card {
    border: none;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transition: box-shadow var(--transition);
    overflow: hidden;
}

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

.dashboard-card .card-header {
    background: #fff;
    border-bottom: 1px solid #edf2f7;
    padding: 16px 22px;
}

.card-header-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    display: flex;
    align-items: center;
}

.card-header-title i {
    color: var(--primary);
}

.dashboard-card .card-body {
    padding: 22px;
}

/* Chart containers */
.chart-container-donut {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1;
}

.chart-container-bar {
    width: 100%;
    height: 280px;
}

/* =============================================================
   TABLES
   ============================================================= */
.table-dashboard {
    font-size: 0.84rem;
}

.table-dashboard thead th {
    background: #f8fafc;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #718096;
    border-bottom: 1px solid #edf2f7;
    padding: 12px 18px;
}

.table-dashboard tbody td {
    padding: 12px 18px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.table-dashboard tbody tr:hover {
    background: #f7fafc;
}

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

/* Avatar small */
.avatar-sm {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.bg-purple-subtle {
    background: rgba(111, 66, 193, 0.1);
}
.text-purple {
    color: #6f42c1;
}

/* Badge catégorie */
.badge-categorie {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--cat-color) 12%, transparent);
    color: var(--cat-color);
    white-space: nowrap;
}

/* =============================================================
   VILLE PROGRESS BARS
   ============================================================= */
.ville-bar-item {
    margin-bottom: 16px;
}

.ville-bar-item:last-child {
    margin-bottom: 0;
}

.ville-bar-item .progress {
    border-radius: 3px;
    background: #edf2f7;
}

.ville-bar-item .progress-bar {
    border-radius: 3px;
    transition: width 0.8s ease;
}

/* =============================================================
   QUICK STATS
   ============================================================= */
.quick-stat-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quick-stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 10px;
    transition: all var(--transition);
}

.quick-stat-item:hover {
    background: #edf2f7;
    transform: translateX(4px);
}

.quick-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.quick-stat-info {
    display: flex;
    flex-direction: column;
}

.quick-stat-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.2;
}

.quick-stat-label {
    font-size: 0.75rem;
    color: #718096;
    font-weight: 500;
}

/* =============================================================
   FOOTER
   ============================================================= */
.main-footer {
    padding: 16px 24px;
    text-align: center;
    font-size: 0.78rem;
    color: #a0aec0;
    border-top: 1px solid #edf2f7;
}

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

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

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

    body.sidebar-collapsed .main-wrapper {
        margin-left: 0;
    }

    .topbar-search {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .main-content {
        padding: 16px 12px;
    }

    .page-header {
        flex-direction: column;
    }

    .kpi-value {
        font-size: 1.5rem;
    }

    .topbar {
        padding: 0 12px;
    }
}

/* =============================================================
   UTILITIES & ANIMATIONS
   ============================================================= */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 20px;
    transition: all var(--transition);
}

.btn-primary:hover {
    background: #3651d4;
    border-color: #3651d4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.78rem;
}

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

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 8px;
}

.dropdown-item {
    border-radius: 6px;
    font-size: 0.85rem;
    padding: 8px 14px;
}

.dropdown-item:hover {
    background: var(--body-bg);
}

/* =============================================================
   FLASH MESSAGES
   ============================================================= */
.alert-flash {
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    animation: slideDown 0.4s ease;
}

.alert-flash i {
    font-size: 1.2rem;
}

.alert-flash.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-flash.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================================
   FILTER BAR
   ============================================================= */
.filter-bar {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-bar .form-control,
.filter-bar .form-select {
    height: 38px;
    font-size: 0.84rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.filter-bar .form-control:focus,
.filter-bar .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.filter-bar .btn {
    height: 38px;
    font-size: 0.84rem;
}

/* =============================================================
   FORM CARD
   ============================================================= */
.form-card {
    background: var(--card-bg);
    border: none;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.form-card .card-body {
    padding: 28px;
}

.form-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary);
    margin: 24px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title:first-child {
    margin-top: 0;
}

.form-section-title i {
    font-size: 0.9rem;
}

.form-card label.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 4px;
}

.form-card .form-control,
.form-card .form-select {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    padding: 8px 14px;
    transition: all var(--transition);
}

.form-card .form-control:focus,
.form-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.form-card textarea.form-control {
    min-height: 100px;
}

.form-card .invalid-feedback {
    font-size: 0.78rem;
}

.form-card .form-check {
    padding: 8px 12px 8px 36px;
    border-radius: 8px;
    transition: background var(--transition);
}

.form-card .form-check:hover {
    background: #f8fafc;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #edf2f7;
    margin-top: 24px;
}

/* =============================================================
   EMPTY STATE
   ============================================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 3.5rem;
    color: #cbd5e0;
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 6px;
}

.empty-state-text {
    font-size: 0.85rem;
    color: #a0aec0;
    margin-bottom: 20px;
}

/* =============================================================
   TABLE ACTIONS
   ============================================================= */
.table-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.table-actions .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.table-actions .btn:hover {
    transform: translateY(-1px);
}

/* =============================================================
   COLOR DOT
   ============================================================= */
.color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    vertical-align: middle;
}

.color-dot-lg {
    width: 18px;
    height: 18px;
}

/* =============================================================
   BADGE DOMAINE
   ============================================================= */
.badge-domaine {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

/* =============================================================
   DOMAINE CARDS GRID
   ============================================================= */
.domaine-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    border-top: 4px solid var(--dom-color, var(--primary));
    transition: all var(--transition);
    overflow: hidden;
}

.domaine-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.domaine-card-body {
    padding: 20px;
}

.domaine-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.domaine-card-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 14px;
}

.domaine-card-stat {
    display: flex;
    flex-direction: column;
}

.domaine-card-stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #2d3748;
}

.domaine-card-stat-label {
    font-size: 0.7rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.domaine-card-footer {
    padding: 12px 20px;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

/* =============================================================
   DETAIL VIEW
   ============================================================= */
.detail-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.detail-header {
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #edf2f7;
}

.detail-avatar {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.detail-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.detail-subtitle {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 2px;
}

.detail-body {
    padding: 28px;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #a0aec0;
    margin-bottom: 12px;
}

.detail-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f7fafc;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    width: 140px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #718096;
    flex-shrink: 0;
}

.detail-value {
    font-size: 0.85rem;
    color: #2d3748;
    word-break: break-word;
}

.detail-value a {
    color: var(--primary);
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
}

.detail-actions {
    padding: 16px 28px;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
    display: flex;
    gap: 10px;
}

/* =============================================================
   FAVORI STAR
   ============================================================= */
.btn-favori {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #cbd5e0;
    transition: all var(--transition);
    padding: 4px;
}

.btn-favori:hover,
.btn-favori.active {
    color: #ffc107;
    transform: scale(1.15);
}

/* =============================================================
   MODAL CONFIRM
   ============================================================= */
.modal-confirm .modal-content {
    border: none;
    border-radius: var(--card-radius);
}

.modal-confirm .modal-header {
    border-bottom: 1px solid #edf2f7;
}

.modal-confirm .modal-footer {
    border-top: 1px solid #edf2f7;
}

/* =============================================================
   RESPONSIVE ADDITIONS
   ============================================================= */
@media (max-width: 767.98px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-header {
        flex-direction: column;
        text-align: center;
    }

    .detail-row {
        flex-direction: column;
    }

    .detail-label {
        width: auto;
        margin-bottom: 2px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}
