:root {

    --navy: #0A1628;

    --navy-light: #152238;

    --navy-mid: #1E3050;

    --terracotta: #C45C26;

    --terracotta-light: #E07A45;

    --terracotta-soft: rgba(196, 92, 38, 0.12);

    --white: #FFFFFF;

    --grey-50: #FAFBFC;

    --grey-100: #F5F6F8;

    --grey-200: #E8EAED;

    --grey-300: #D1D5DB;

    --grey-400: #9BA3B0;

    --grey-600: #5A6474;

    --success: #16a34a;

    --success-bg: #dcfce7;

    --danger: #dc2626;

    --danger-bg: #fee2e2;

    --warning: #ca8a04;

    --warning-bg: #fef9c3;

    --font-display: 'Syne', sans-serif;

    --font-body: 'Outfit', sans-serif;

    --radius: 12px;

    --radius-sm: 8px;

    --sidebar-w: 280px;

    --topbar-h: 64px;

    --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.06);

    --shadow-md: 0 4px 20px rgba(10, 22, 40, 0.08);

    --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.12);

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

}



*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {

    font-family: var(--font-body);

    color: var(--navy);

    background: var(--grey-100);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;

}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

svg { display: block; width: 100%; height: 100%; }



/* ─── Login ─── */

.login-page {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 24px;

    background: var(--navy);

    background-image:

        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(196, 92, 38, 0.25) 0%, transparent 60%),

        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(30, 48, 80, 0.8) 0%, transparent 50%),

        linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);

}

.login-card {

    background: var(--white);

    padding: 48px 40px;

    border-radius: 20px;

    width: 100%;

    max-width: 440px;

    box-shadow: var(--shadow-lg);

}

.login-header { text-align: center; margin-bottom: 32px; }

.login-header img {

    height: 52px;

    margin: 0 auto 20px;

    object-fit: contain;

}

.login-header h1 {

    font-family: var(--font-display);

    font-size: 1.6rem;

    margin-bottom: 6px;

    color: var(--navy);

}

.login-header p { font-size: 0.9rem; color: var(--grey-400); }

.login-form .form-group { margin-bottom: 20px; }

.login-form label {

    display: block;

    font-size: 0.85rem;

    font-weight: 600;

    margin-bottom: 6px;

    color: var(--grey-600);

}

.login-form input {

    width: 100%;

    padding: 12px 16px;

    border: 2px solid var(--grey-200);

    border-radius: var(--radius-sm);

    font-family: var(--font-body);

    font-size: 0.95rem;

    transition: border-color var(--transition);

}

.login-form input:focus {

    outline: none;

    border-color: var(--terracotta);

    box-shadow: 0 0 0 3px var(--terracotta-soft);

}

.login-hint {

    text-align: center;

    font-size: 0.8rem;

    color: var(--grey-400);

    margin-top: 20px;

    padding: 12px;

    background: var(--grey-50);

    border-radius: var(--radius-sm);

}

.back-link {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    margin-top: 24px;

    color: var(--terracotta);

    font-size: 0.9rem;

    font-weight: 500;

    transition: color var(--transition);

}

.back-link svg { width: 16px; height: 16px; flex-shrink: 0; }



/* ─── Layout ─── */

.admin-layout { display: flex; min-height: 100vh; }

.sidebar-overlay {

    display: none;

    position: fixed;

    inset: 0;

    background: rgba(10, 22, 40, 0.5);

    z-index: 199;

    backdrop-filter: blur(2px);

}

.admin-content {

    flex: 1;

    margin-left: var(--sidebar-w);

    display: flex;

    flex-direction: column;

    min-height: 100vh;

}



/* ─── Sidebar ─── */

.sidebar {

    width: var(--sidebar-w);

    background: var(--navy);

    color: rgba(255, 255, 255, 0.85);

    display: flex;

    flex-direction: column;

    position: fixed;

    top: 0;

    left: 0;

    bottom: 0;

    z-index: 200;

    border-right: 1px solid rgba(255, 255, 255, 0.06);

}

.sidebar-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 20px 16px 20px 20px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

}

.sidebar-brand {

    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;

}

.sidebar-brand img {

    height: 38px;

    max-width: 100px;

    object-fit: contain;

    background: rgba(255, 255, 255, 0.95);

    padding: 5px 10px;

    border-radius: var(--radius-sm);

    flex-shrink: 0;

}

.sidebar-brand-text {

    display: flex;

    flex-direction: column;

    line-height: 1.2;

}

.sidebar-brand-text strong {

    font-family: var(--font-display);

    font-size: 1rem;

    color: var(--white);

}

.sidebar-brand-text span {

    font-size: 0.75rem;

    color: rgba(255, 255, 255, 0.5);

    text-transform: uppercase;

    letter-spacing: 0.06em;

}

.sidebar-close {

    display: none;

    width: 36px;

    height: 36px;

    border: none;

    background: rgba(255, 255, 255, 0.08);

    border-radius: var(--radius-sm);

    color: var(--white);

    cursor: pointer;

    padding: 8px;

}

.sidebar-nav {

    flex: 1;

    padding: 16px 12px;

    display: flex;

    flex-direction: column;

    gap: 4px;

    overflow-y: auto;

}

.sidebar-link {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 11px 14px;

    border-radius: var(--radius-sm);

    font-size: 0.9rem;

    font-weight: 500;

    transition: background var(--transition), color var(--transition);

    position: relative;

}

.sidebar-link:hover {

    background: rgba(255, 255, 255, 0.08);

    color: var(--white);

}

.sidebar-link.active {

    background: var(--terracotta-soft);

    color: var(--white);

}

.sidebar-link.active::before {

    content: '';

    position: absolute;

    left: 0;

    top: 50%;

    transform: translateY(-50%);

    width: 3px;

    height: 60%;

    background: var(--terracotta);

    border-radius: 0 3px 3px 0;

}

.sidebar-link-icon {

    width: 20px;

    height: 20px;

    flex-shrink: 0;

    opacity: 0.75;

}

.sidebar-link.active .sidebar-link-icon { opacity: 1; color: var(--terracotta-light); }

.sidebar-link-label { flex: 1; }

.nav-badge {

    min-width: 22px;

    height: 22px;

    padding: 0 6px;

    background: var(--terracotta);

    color: var(--white);

    font-size: 0.7rem;

    font-weight: 700;

    border-radius: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

}

.sidebar-footer {

    padding: 16px 12px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    display: flex;

    flex-direction: column;

    gap: 4px;

}

.sidebar-footer-link {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px 14px;

    border-radius: var(--radius-sm);

    font-size: 0.85rem;

    font-weight: 500;

    transition: background var(--transition);

}

.sidebar-footer-link svg { width: 18px; height: 18px; opacity: 0.7; }

.sidebar-footer-link:hover {

    background: rgba(255, 255, 255, 0.08);

    color: var(--white);

}

.sidebar-footer-link-danger:hover { background: rgba(220, 38, 38, 0.2); color: #fca5a5; }



/* ─── Topbar ─── */

.admin-topbar {

    height: var(--topbar-h);

    background: var(--white);

    border-bottom: 1px solid var(--grey-200);

    display: flex;

    align-items: center;

    gap: 16px;

    padding: 0 28px;

    position: sticky;

    top: 0;

    z-index: 50;

    box-shadow: var(--shadow-sm);

}

.topbar-menu {

    display: none;

    width: 40px;

    height: 40px;

    border: none;

    background: var(--grey-100);

    border-radius: var(--radius-sm);

    cursor: pointer;

    padding: 10px;

    color: var(--navy);

}

.topbar-title h1 {

    font-family: var(--font-display);

    font-size: 1.25rem;

    font-weight: 700;

    color: var(--navy);

}

.topbar-actions {

    margin-left: auto;

    display: flex;

    align-items: center;

    gap: 16px;

}

.topbar-notif {

    position: relative;

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--terracotta-soft);

    border-radius: var(--radius-sm);

    color: var(--terracotta);

}

.topbar-notif svg { width: 20px; height: 20px; }

.topbar-notif-count {

    position: absolute;

    top: -4px;

    right: -4px;

    min-width: 18px;

    height: 18px;

    padding: 0 5px;

    background: var(--terracotta);

    color: var(--white);

    font-size: 0.65rem;

    font-weight: 700;

    border-radius: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

}

.topbar-user {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 8px 14px;

    background: var(--grey-100);

    border-radius: 50px;

    font-size: 0.85rem;

    font-weight: 600;

    color: var(--grey-600);

}

.topbar-user-icon {

    width: 28px;

    height: 28px;

    background: var(--navy);

    color: var(--white);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 6px;

}



.admin-main { flex: 1; padding: 28px; }



/* ─── Page header (in-content) ─── */

.page-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 16px;

    margin-bottom: 24px;

    flex-wrap: wrap;

}

.page-header-text { flex: 1; min-width: 0; }

.page-title {

    font-family: var(--font-display);

    font-size: 1.75rem;

    font-weight: 800;

    color: var(--navy);

    line-height: 1.2;

}

.page-subtitle {

    font-size: 0.9rem;

    color: var(--grey-400);

    margin-top: 4px;

}

.page-header-actions {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

}



/* ─── Cards ─── */

.card {

    background: var(--white);

    border-radius: var(--radius);

    padding: 0;

    box-shadow: var(--shadow-sm);

    border: 1px solid var(--grey-200);

    margin-bottom: 24px;

    overflow: hidden;

}

.card-padded { padding: 24px; }

.card-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px 24px;

    border-bottom: 1px solid var(--grey-100);

}

.card-header h2 {

    font-family: var(--font-display);

    font-size: 1.05rem;

    font-weight: 700;

}

.card-header a {

    color: var(--terracotta);

    font-size: 0.85rem;

    font-weight: 600;

    transition: color var(--transition);

}

.card-header a:hover { color: var(--terracotta-light); }

.card-body { padding: 0; }

.card .table { margin: 0; }



/* ─── Stats ─── */

.stats-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 16px;

    margin-bottom: 28px;

}

.stat-card {

    background: var(--white);

    padding: 22px 24px;

    border-radius: var(--radius);

    display: flex;

    align-items: flex-start;

    gap: 16px;

    box-shadow: var(--shadow-sm);

    border: 1px solid var(--grey-200);

    transition: transform var(--transition), box-shadow var(--transition);

    position: relative;

    overflow: hidden;

}

.stat-card:hover {

    transform: translateY(-2px);

    box-shadow: var(--shadow-md);

}

.stat-card::after {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    height: 3px;

    background: var(--grey-200);

}

.stat-card.stat-accent::after { background: var(--terracotta); }

.stat-card.stat-warn::after { background: var(--warning); }

.stat-card.stat-success::after { background: var(--success); }

.stat-icon-wrap {

    width: 48px;

    height: 48px;

    border-radius: var(--radius-sm);

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    background: var(--grey-100);

    color: var(--navy);

    padding: 12px;

}

.stat-accent .stat-icon-wrap { background: var(--terracotta-soft); color: var(--terracotta); }

.stat-warn .stat-icon-wrap { background: var(--warning-bg); color: var(--warning); }

.stat-success .stat-icon-wrap { background: var(--success-bg); color: var(--success); }

.stat-value {

    display: block;

    font-family: var(--font-display);

    font-size: 2rem;

    font-weight: 800;

    line-height: 1;

    color: var(--navy);

}

.stat-label {

    font-size: 0.85rem;

    color: var(--grey-400);

    margin-top: 4px;

}

.stat-link {

    display: inline-block;

    margin-top: 8px;

    font-size: 0.8rem;

    font-weight: 600;

    color: var(--terracotta);

}

.stat-link:hover { text-decoration: underline; }



.dashboard-grid {

    display: grid;

    grid-template-columns: 1.6fr 1fr;

    gap: 24px;

}

.dashboard-grid .card { margin-bottom: 0; }



/* ─── Quick actions ─── */

.quick-actions { display: flex; flex-direction: column; gap: 8px; padding: 16px 24px 24px; }

.quick-btn {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 14px 16px;

    background: var(--grey-50);

    border: 1px solid var(--grey-200);

    border-radius: var(--radius-sm);

    font-weight: 500;

    font-size: 0.9rem;

    transition: all var(--transition);

}

.quick-btn svg { width: 18px; height: 18px; color: var(--terracotta); flex-shrink: 0; }

.quick-btn:hover {

    background: var(--navy);

    border-color: var(--navy);

    color: var(--white);

    transform: translateX(4px);

}

.quick-btn:hover svg { color: var(--terracotta-light); }

.quick-btn.secondary {

    background: transparent;

    border-style: dashed;

}

.quick-btn.secondary:hover { border-style: solid; }



/* ─── Table toolbar ─── */

.table-toolbar {

    padding: 16px 24px;

    border-bottom: 1px solid var(--grey-100);

    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

}

.table-search {

    position: relative;

    flex: 1;

    min-width: 200px;

    max-width: 360px;

}

.table-search-icon {

    position: absolute;

    left: 14px;

    top: 50%;

    transform: translateY(-50%);

    width: 18px;

    height: 18px;

    color: var(--grey-400);

    pointer-events: none;

}

.table-search input {

    width: 100%;

    padding: 10px 14px 10px 42px;

    border: 2px solid var(--grey-200);

    border-radius: var(--radius-sm);

    font-family: var(--font-body);

    font-size: 0.9rem;

    transition: border-color var(--transition);

}

.table-search input:focus {

    outline: none;

    border-color: var(--terracotta);

}



/* ─── Tables ─── */

.table-wrap { overflow-x: auto; }

.table {

    width: 100%;

    border-collapse: collapse;

}

.table th {

    text-align: left;

    padding: 14px 20px;

    font-size: 0.72rem;

    text-transform: uppercase;

    letter-spacing: 0.06em;

    color: var(--grey-400);

    font-weight: 600;

    background: var(--grey-50);

    border-bottom: 1px solid var(--grey-200);

    white-space: nowrap;

}

.table td {

    padding: 14px 20px;

    border-bottom: 1px solid var(--grey-100);

    font-size: 0.9rem;

    vertical-align: middle;

}

.table tbody tr:last-child td { border-bottom: none; }

.table tbody tr:hover td { background: var(--grey-50); }

.table tr.unread td {

    font-weight: 600;

    background: rgba(196, 92, 38, 0.04);

}

.table tr.unread:hover td { background: rgba(196, 92, 38, 0.07); }

.table-thumb {

    width: 56px;

    height: 42px;

    object-fit: cover;

    border-radius: var(--radius-sm);

    background: var(--grey-100);

    border: 1px solid var(--grey-200);

}

.actions {

    display: flex;

    gap: 6px;

    flex-wrap: wrap;

}



/* ─── Action buttons ─── */

.btn-action {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 7px 12px;

    font-size: 0.8rem;

    font-weight: 600;

    border-radius: var(--radius-sm);

    border: 1px solid var(--grey-200);

    background: var(--white);

    color: var(--grey-600);

    transition: all var(--transition);

    white-space: nowrap;

}

.btn-action-icon { width: 15px; height: 15px; display: flex; }

.btn-action:hover {

    background: var(--navy);

    border-color: var(--navy);

    color: var(--white);

}

.btn-action-edit:hover { background: var(--navy); border-color: var(--navy); }

.btn-action-view {

    background: var(--terracotta-soft);

    border-color: transparent;

    color: var(--terracotta);

}

.btn-action-view:hover {

    background: var(--terracotta);

    color: var(--white);

}

.btn-action-delete {

    color: var(--danger);

    border-color: rgba(220, 38, 38, 0.2);

}

.btn-action-delete:hover {

    background: var(--danger);

    border-color: var(--danger);

    color: var(--white);

}

/* Legacy btn-sm support */

.btn-sm {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 7px 12px;

    font-size: 0.8rem;

    border-radius: var(--radius-sm);

    background: var(--grey-100);

    font-weight: 600;

    border: 1px solid var(--grey-200);

    transition: all var(--transition);

}

.btn-sm:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.btn-sm.btn-danger { color: var(--danger); border-color: rgba(220,38,38,0.2); background: var(--white); }

.btn-sm.btn-danger:hover { background: var(--danger); color: var(--white); border-color: var(--danger); }



/* ─── Badges ─── */

.badge {

    display: inline-flex;

    align-items: center;

    padding: 4px 10px;

    border-radius: 50px;

    font-size: 0.72rem;

    font-weight: 600;

    background: var(--grey-100);

    color: var(--grey-600);

    text-transform: capitalize;

}

.badge-new { background: var(--terracotta); color: var(--white); }

.badge-read { background: var(--success-bg); color: var(--success); }

.badge-pending { background: var(--warning-bg); color: #854d0e; }

.badge-confirmed { background: var(--success-bg); color: var(--success); }

.badge-cancelled { background: var(--danger-bg); color: var(--danger); }

.badge-completed { background: var(--navy); color: var(--white); }



/* ─── Buttons ─── */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 11px 22px;

    font-family: var(--font-body);

    font-size: 0.9rem;

    font-weight: 600;

    border-radius: var(--radius-sm);

    border: none;

    cursor: pointer;

    transition: all var(--transition);

    white-space: nowrap;

}

.btn svg { width: 18px; height: 18px; }

.btn-primary {

    background: var(--terracotta);

    color: var(--white);

    box-shadow: 0 2px 8px rgba(196, 92, 38, 0.3);

}

.btn-primary:hover {

    background: var(--terracotta-light);

    transform: translateY(-1px);

    box-shadow: 0 4px 12px rgba(196, 92, 38, 0.35);

}

.btn-secondary {

    background: var(--white);

    color: var(--navy);

    border: 2px solid var(--grey-200);

}

.btn-secondary:hover {

    border-color: var(--navy);

    background: var(--grey-50);

}

.btn-success {

    background: var(--success);

    color: var(--white);

}

.btn-success:hover { filter: brightness(1.08); }

.btn-danger {

    background: var(--danger);

    color: var(--white);

}

.btn-danger:hover { filter: brightness(1.08); }

.btn-ghost {

    background: transparent;

    color: var(--grey-600);

    border: 2px solid var(--grey-200);

}

.btn-ghost:hover { background: var(--grey-100); }

.btn-full { width: 100%; }

.btn-icon-only {

    width: 40px;

    height: 40px;

    padding: 0;

    justify-content: center;

}



/* ─── Alerts ─── */

.alert {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding: 14px 18px;

    border-radius: var(--radius-sm);

    margin-bottom: 20px;

    font-weight: 500;

    font-size: 0.9rem;

    border: 1px solid transparent;

    transition: opacity 0.4s, transform 0.4s;

}

.alert-hide { opacity: 0; transform: translateY(-8px); }

.alert-success { background: var(--success-bg); color: #166534; border-color: #bbf7d0; }

.alert-error { background: var(--danger-bg); color: #991b1b; border-color: #fecaca; }

.alert-close {

    background: none;

    border: none;

    font-size: 1.4rem;

    line-height: 1;

    cursor: pointer;

    opacity: 0.6;

    padding: 0 4px;

    color: inherit;

}

.alert-close:hover { opacity: 1; }



/* ─── Empty states ─── */

.empty, .empty-state {

    text-align: center;

    color: var(--grey-400);

    padding: 40px 24px;

}

.empty-state p { margin-bottom: 16px; font-size: 0.95rem; }



/* ─── Forms ─── */

.admin-form { max-width: 860px; }

.admin-form.card, .settings-form .card { padding: 28px; }

.form-group { margin-bottom: 18px; }

.form-group label {

    display: block;

    font-size: 0.85rem;

    font-weight: 600;

    margin-bottom: 6px;

    color: var(--grey-600);

}

.form-group input,

.form-group textarea,

.form-group select {

    width: 100%;

    padding: 11px 14px;

    border: 2px solid var(--grey-200);

    border-radius: var(--radius-sm);

    font-family: var(--font-body);

    font-size: 0.9rem;

    transition: border-color var(--transition), box-shadow var(--transition);

    background: var(--white);

}

.form-group input:focus,

.form-group textarea:focus,

.form-group select:focus {

    outline: none;

    border-color: var(--terracotta);

    box-shadow: 0 0 0 3px var(--terracotta-soft);

}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-actions {

    display: flex;

    gap: 12px;

    margin-top: 28px;

    padding-top: 24px;

    border-top: 1px solid var(--grey-100);

    flex-wrap: wrap;

}

.checkbox {

    display: flex;

    align-items: center;

    gap: 10px;

    font-weight: 500;

    cursor: pointer;

    padding: 12px 16px;

    background: var(--grey-50);

    border-radius: var(--radius-sm);

    border: 1px solid var(--grey-200);

}

.checkbox input { width: auto; accent-color: var(--terracotta); }

.preview-img {

    max-width: 240px;

    margin-top: 12px;

    border-radius: var(--radius-sm);

    background: var(--grey-100);

    object-fit: contain;

    border: 2px dashed var(--grey-200);

    padding: 8px;

}

.form-hint {

    display: block;

    font-size: 0.8rem;

    color: var(--grey-400);

    margin-top: 6px;

    line-height: 1.5;

}



/* ─── Message / Devis detail ─── */

.message-detail { padding: 28px; }

.message-detail .message-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 16px;

    margin-bottom: 20px;

    flex-wrap: wrap;

}

.message-detail .message-header h2 {

    font-family: var(--font-display);

    font-size: 1.35rem;

    font-weight: 700;

}

.message-date { color: var(--grey-400); font-size: 0.85rem; white-space: nowrap; }

.message-meta {

    margin-bottom: 24px;

    padding: 20px;

    background: var(--grey-50);

    border-radius: var(--radius-sm);

    border: 1px solid var(--grey-200);

}

.message-meta p {

    font-size: 0.9rem;

    margin-bottom: 6px;

    display: flex;

    flex-wrap: wrap;

    gap: 4px 16px;

}

.message-meta p:last-child { margin-bottom: 0; }

.message-meta strong { color: var(--grey-600); min-width: 100px; }

.message-body {

    font-size: 1rem;

    line-height: 1.85;

    margin-bottom: 28px;

    padding: 20px;

    background: var(--white);

    border-left: 3px solid var(--terracotta);

    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;

}

.detail-actions {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    padding-top: 8px;

}



/* ─── Settings ─── */

.settings-section.card { padding: 28px; }

.settings-title {

    font-family: var(--font-display);

    font-size: 1.1rem;

    font-weight: 700;

    margin-bottom: 20px;

    padding-bottom: 12px;

    border-bottom: 2px solid var(--grey-100);

    color: var(--navy);

}

.logo-preview-wrap { display: flex; align-items: flex-start; gap: 32px; flex-wrap: wrap; }

.logo-preview {

    max-height: 80px;

    max-width: 240px;

    object-fit: contain;

    background: var(--grey-100);

    padding: 16px;

    border-radius: var(--radius-sm);

    border: 2px dashed var(--grey-200);

}

.settings-form .form-actions { margin-top: 8px; margin-bottom: 40px; border-top: none; padding-top: 0; }



/* ─── Responsive ─── */

@media (max-width: 1200px) {

    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .dashboard-grid { grid-template-columns: 1fr; }

}



@media (max-width: 968px) {

    .admin-content { margin-left: 0; }

    .sidebar {

        transform: translateX(-100%);

        transition: transform var(--transition);

    }

    body.sidebar-open .sidebar { transform: translateX(0); }

    body.sidebar-open .sidebar-overlay { display: block; }

    .sidebar-close { display: flex; }

    .topbar-menu { display: flex; align-items: center; justify-content: center; }

    .admin-main { padding: 20px 16px; }

    .admin-topbar { padding: 0 16px; }

    .form-row { grid-template-columns: 1fr; }

    .page-title { font-size: 1.4rem; }

    .topbar-title { display: none; }

}



@media (max-width: 560px) {

    .stats-grid { grid-template-columns: 1fr; }

    .stat-value { font-size: 1.6rem; }

    .form-actions { flex-direction: column; }

    .form-actions .btn { width: 100%; }

    .detail-actions { flex-direction: column; }

    .detail-actions .btn { width: 100%; }

}

