/* ============================================================
   HELVETICA / SWISS CLINICAL THEME
   Clair, rassurant, précis — Esprit clinique suisse
   ============================================================ */

/* --- Palette ---
   Blanc:     #ffffff (pure white), #f8fafb (ice), #f0f4f6 (light grey)
   Gris:      #e4e9ec (silver), #c5cdd3 (mid grey), #8a9aa6 (steel)
   Bleu:      #0066cc (Swiss blue), #3388dd (soft blue), #e8f1fa (blue wash)
   Vert:      #2e8b57 (clinical green), #3da06a (soft green)
   Rouge:     #d42c2c (Swiss red — croix suisse), #e04848 (soft red)
   Texte:     #1a1f24 (near-black), #3a4550 (dark grey), #6b7a88 (muted)
   Accent:    #0066cc (primary blue), #d42c2c (alert red)
*/

:root {
    --helv-white: #ffffff;
    --helv-ice: #f8fafb;
    --helv-grey-light: #f0f4f6;
    --helv-grey: #e4e9ec;
    --helv-grey-mid: #c5cdd3;
    --helv-steel: #8a9aa6;
    --helv-blue: #0066cc;
    --helv-blue-soft: #3388dd;
    --helv-blue-wash: #e8f1fa;
    --helv-blue-dark: #004a99;
    --helv-green: #2e8b57;
    --helv-green-soft: #3da06a;
    --helv-red: #d42c2c;
    --helv-red-soft: #e04848;
    --helv-text: #1a1f24;
    --helv-text-medium: #3a4550;
    --helv-text-muted: #6b7a88;
    --helv-border: rgba(197, 205, 211, 0.6);
    --helv-border-light: rgba(197, 205, 211, 0.35);
    --helv-shadow: 0 1px 8px rgba(26, 31, 36, 0.06);
    --helv-shadow-lg: 0 4px 24px rgba(26, 31, 36, 0.1);
    --helv-radius: 8px;
    --helv-radius-sm: 6px;
}

/* --- Global --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--helv-text);
    background-color: var(--helv-ice);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6,
.card-title {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--helv-text);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }

a {
    color: var(--helv-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--helv-blue-dark);
}

/* --- Navbar --- */
.navbar-horta {
    background: var(--helv-white);
    border-bottom: 1px solid var(--helv-grey);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 0;
    position: relative;
    z-index: 1050;
    margin-left: 18vw;
}

.navbar-horta::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--helv-red) 0%, var(--helv-red) 50%, var(--helv-white) 50%, var(--helv-white) 100%);
    background-size: 40px 2px;
    opacity: 0;
}

.navbar-horta .navbar-brand {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
    color: var(--helv-text) !important;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    padding: 12px 20px;
}

.navbar-horta .navbar-brand::after {
    content: '';
}

.navbar-horta .nav-link {
    color: var(--helv-text-medium) !important;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0;
    padding: 14px 14px !important;
    transition: all 0.2s ease;
    position: relative;
}

.navbar-horta .nav-link:hover,
.navbar-horta .nav-link.active {
    color: var(--helv-blue) !important;
    background: var(--helv-blue-wash);
}

.navbar-horta .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--helv-blue);
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.navbar-horta .nav-link:hover::after {
    width: 100%;
}

.navbar-horta .navbar-toggler {
    border-color: var(--helv-grey-mid);
    padding: 4px 8px;
}

.navbar-horta .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26,31,36,0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Navbar separator --- */
.nav-separator {
    border-left: 1px solid var(--helv-grey);
    margin: 8px 4px;
}

/* --- Admin dropdown menus --- */
.dropdown-menu-horta {
    background: var(--helv-white);
    border: 1px solid var(--helv-grey);
    border-radius: var(--helv-radius);
    box-shadow: var(--helv-shadow-lg);
    padding: 4px 0;
    min-width: 190px;
    margin-top: 2px;
}

.dropdown-menu-horta .dropdown-item {
    color: var(--helv-text-medium);
    font-family: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 0.87rem;
    padding: 8px 16px;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu-horta .dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    color: var(--helv-blue-soft);
}

.dropdown-menu-horta .dropdown-item:hover,
.dropdown-menu-horta .dropdown-item:focus {
    background: var(--helv-blue-wash);
    color: var(--helv-blue);
}

.dropdown-menu-horta .dropdown-item:hover i,
.dropdown-menu-horta .dropdown-item:focus i {
    color: var(--helv-blue);
}

.dropdown-menu-horta .dropdown-divider {
    border-top-color: var(--helv-grey);
    margin: 4px 12px;
}

.navbar-horta .dropdown-toggle::after {
    border-top-color: var(--helv-steel);
    vertical-align: 0.15em;
    margin-left: 4px;
}

/* Mobile: dropdowns render inline */
@media (max-width: 991.98px) {
    .dropdown-menu-horta.show {
        position: static !important;
        float: none;
        background: var(--helv-grey-light);
        border: none;
        box-shadow: none;
        padding-left: 12px;
        margin-top: 0;
    }

    .dropdown-menu-horta .dropdown-item {
        padding: 6px 12px;
    }
}

/* --- Cards --- */
.card {
    background: var(--helv-white);
    border: 1px solid var(--helv-border);
    border-radius: var(--helv-radius);
    box-shadow: var(--helv-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

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

.card-header {
    background: var(--helv-grey-light) !important;
    color: var(--helv-text) !important;
    border-bottom: 1px solid var(--helv-grey) !important;
    padding: 14px 20px;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20px;
    right: 20px;
    height: 0;
}

.card-header h5,
.card-header h4,
.card-header .mb-0 {
    color: var(--helv-text) !important;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: 700;
    margin: 0;
}

.card-body {
    padding: 20px;
}

/* --- Buttons --- */
.btn {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0;
    border-radius: var(--helv-radius-sm);
    transition: all 0.2s ease;
    position: relative;
}

.btn-primary {
    background: var(--helv-blue);
    border-color: var(--helv-blue);
    color: #fff;
}

.btn-primary:hover {
    background: var(--helv-blue-dark);
    border-color: var(--helv-blue-dark);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
}

.btn-success {
    background: var(--helv-green);
    border-color: var(--helv-green);
    color: #fff;
}

.btn-success:hover {
    background: #26774b;
    border-color: #26774b;
    box-shadow: 0 2px 8px rgba(46, 139, 87, 0.25);
}

.btn-warning {
    background: #e8a830;
    border-color: #e8a830;
    color: #fff;
}

.btn-warning:hover {
    background: #d49520;
    border-color: #d49520;
    color: #fff;
    box-shadow: 0 2px 8px rgba(232, 168, 48, 0.25);
}

.btn-danger {
    background: var(--helv-red);
    border-color: var(--helv-red);
    color: #fff;
}

.btn-danger:hover {
    background: #b82525;
    border-color: #b82525;
    box-shadow: 0 2px 8px rgba(212, 44, 44, 0.25);
}

.btn-secondary {
    background: var(--helv-grey-light);
    border-color: var(--helv-grey-mid);
    color: var(--helv-text-medium);
}

.btn-secondary:hover {
    background: var(--helv-grey);
    border-color: var(--helv-steel);
    color: var(--helv-text);
}

.btn-info {
    background: #1a8cba;
    border-color: #1a8cba;
    color: #fff;
}

.btn-info:hover {
    background: #15769e;
    border-color: #15769e;
    box-shadow: 0 2px 8px rgba(26, 140, 186, 0.25);
    color: #fff;
}

.btn-outline-primary {
    border-color: var(--helv-blue);
    color: var(--helv-blue);
}

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

.btn-outline-secondary {
    border-color: var(--helv-grey-mid);
    color: var(--helv-text-medium);
}

.btn-outline-secondary:hover {
    background: var(--helv-grey-light);
    border-color: var(--helv-steel);
    color: var(--helv-text);
}

.btn-outline-info {
    border-color: #1a8cba;
    color: #1a8cba;
}

.btn-outline-info:hover {
    background: #1a8cba;
    color: #fff;
}

.btn-outline-warning {
    border-color: #e8a830;
    color: #c48d20;
}

.btn-outline-warning:hover {
    background: #e8a830;
    color: #fff;
}

/* --- Forms --- */
.form-control,
.form-select {
    border: 1px solid var(--helv-grey-mid);
    border-radius: var(--helv-radius-sm);
    background-color: var(--helv-white);
    color: var(--helv-text);
    font-family: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 0.9rem;
    padding: 9px 12px;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--helv-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
    background-color: var(--helv-white);
}

.form-control:disabled,
.form-control[readonly] {
    background-color: var(--helv-grey-light);
    color: var(--helv-text-muted);
}

.form-label {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--helv-text-medium);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.form-text {
    color: var(--helv-text-muted);
    font-size: 0.82rem;
}

.form-check-input:checked {
    background-color: var(--helv-blue);
    border-color: var(--helv-blue);
}

/* --- Tables --- */
.table {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
    border-color: var(--helv-border-light);
    font-size: 0.9rem;
}

.table thead th {
    background: var(--helv-grey-light);
    color: var(--helv-text);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--helv-grey) !important;
    padding: 10px 14px;
}

.table tbody td {
    padding: 10px 14px;
    border-color: var(--helv-border-light);
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(0, 102, 204, 0.015);
}

.table tbody tr:hover {
    background-color: var(--helv-blue-wash) !important;
}

/* --- Badges --- */
.badge {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    border-radius: 4px;
    padding: 4px 8px;
}

.badge.bg-success {
    background: var(--helv-green) !important;
}

.badge.bg-secondary {
    background: var(--helv-steel) !important;
}

.badge.bg-primary {
    background: var(--helv-blue) !important;
}

.badge.bg-danger {
    background: var(--helv-red) !important;
}

.badge.bg-warning {
    background: #e8a830 !important;
    color: #fff !important;
}

.badge.bg-info {
    background: #1a8cba !important;
    color: #fff !important;
}

/* --- Alerts --- */
.alert {
    border-radius: var(--helv-radius-sm);
    font-family: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
    border-width: 1px;
    border-left-width: 4px;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(46, 139, 87, 0.06);
    border-color: var(--helv-green);
    color: var(--helv-green);
}

.alert-danger {
    background: rgba(212, 44, 44, 0.05);
    border-color: var(--helv-red);
    color: var(--helv-red);
}

.alert-warning {
    background: rgba(232, 168, 48, 0.07);
    border-color: #e8a830;
    color: #a07420;
}

.alert-info {
    background: rgba(0, 102, 204, 0.05);
    border-color: var(--helv-blue-soft);
    color: var(--helv-blue);
}

/* --- Modals --- */
.modal-content {
    background: var(--helv-white);
    border: 1px solid var(--helv-border);
    border-radius: var(--helv-radius);
    box-shadow: var(--helv-shadow-lg);
}

.modal-header {
    background: var(--helv-grey-light);
    color: var(--helv-text);
    border-bottom: 1px solid var(--helv-grey);
    border-radius: 8px 8px 0 0;
    padding: 14px 20px;
}

.modal-header .modal-title {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
    color: var(--helv-text);
    font-weight: 700;
}

.modal-footer {
    border-top: 1px solid var(--helv-border-light);
    background: var(--helv-ice);
}

/* --- Progress bars --- */
.progress {
    border-radius: 6px;
    background-color: var(--helv-grey);
    border: none;
    height: 8px;
}

.progress-bar {
    border-radius: 6px;
}

.progress-bar.bg-success,
.progress-bar:not([class*="bg-"]) {
    background: var(--helv-green) !important;
}

.progress-bar.bg-warning {
    background: #e8a830 !important;
}

.progress-bar.bg-danger {
    background: var(--helv-red) !important;
}

/* --- List groups --- */
.list-group-item {
    background: transparent;
    border-color: var(--helv-border-light);
    color: var(--helv-text);
    transition: background 0.15s ease;
}

.list-group-item:hover {
    background: var(--helv-blue-wash);
}

/* --- Nav tabs & pills --- */
.nav-tabs {
    border-bottom: 2px solid var(--helv-grey);
}

.nav-tabs .nav-link {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
    color: var(--helv-text-muted);
    font-weight: 600;
    font-size: 0.88rem;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 10px 16px;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: var(--helv-blue-soft);
    color: var(--helv-blue);
}

.nav-tabs .nav-link.active {
    color: var(--helv-blue);
    border-bottom: 2px solid var(--helv-blue);
    background: transparent;
}

.nav-pills .nav-link {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
    color: var(--helv-text-medium);
    border-radius: var(--helv-radius-sm);
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.nav-pills .nav-link.active {
    background: var(--helv-blue);
    color: #fff;
}

/* --- Identity pages (Login, Register, etc.) --- */
.horta-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--helv-ice);
    padding: 40px 20px;
}

.horta-auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--helv-white);
    border: 1px solid var(--helv-grey);
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
}

.horta-auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--helv-red) 0%, var(--helv-red) 50%, var(--helv-white) 50%);
    background-size: 60px 3px;
    opacity: 0;
}

.horta-auth-card::after {
    content: '';
}

.horta-auth-header {
    background: var(--helv-white);
    padding: 28px 30px 16px;
    text-align: center;
    border-bottom: 1px solid var(--helv-grey);
}

.horta-auth-header h4 {
    color: var(--helv-text);
    font-family: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    margin: 0;
}

.horta-auth-header .auth-ornament {
    color: var(--helv-blue);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    display: block;
    margin-top: 6px;
    opacity: 0.5;
    text-transform: uppercase;
}

.horta-auth-body {
    padding: 28px 30px;
}

.horta-auth-body .form-control {
    background: var(--helv-white);
}

.horta-auth-footer {
    text-align: center;
    padding: 0 30px 24px;
    color: var(--helv-text-muted);
    font-size: 0.88rem;
}

.horta-auth-footer a {
    color: var(--helv-blue);
    font-weight: 600;
}

.horta-auth-footer a:hover {
    color: var(--helv-blue-dark);
}

.horta-auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--helv-text-muted);
    font-size: 0.82rem;
}

.horta-auth-divider::before,
.horta-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--helv-grey);
}

.horta-auth-divider span {
    padding: 0 12px;
}

/* --- Main layout --- */
.main-content {
    padding: 24px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Footer --- */
.horta-footer {
    background: var(--helv-grey-light);
    color: var(--helv-text-muted);
    text-align: center;
    padding: 16px 20px;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 0.8rem;
    border-top: 1px solid var(--helv-grey);
    position: relative;
    margin-top: 40px;
}

.horta-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 0;
}

.horta-footer a {
    color: var(--helv-blue);
}

/* --- Ornamental decorations (minimal in Swiss style) --- */
.horta-ornament {
    text-align: center;
    color: var(--helv-grey-mid);
    opacity: 0.4;
    font-size: 0.9rem;
    letter-spacing: 0.5em;
    margin: 12px 0;
    user-select: none;
}

.horta-divider {
    height: 1px;
    background: var(--helv-grey);
    margin: 24px 0;
}

/* --- Page title --- */
.horta-page-title {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
    color: var(--helv-text);
    font-size: 1.7rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.horta-page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--helv-blue);
    border-radius: 2px;
}

/* --- Selection highlight --- */
.card.border-primary {
    border-color: var(--helv-blue) !important;
}

.card.border-2 {
    border-width: 2px !important;
}

/* --- Scrollbar styling --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--helv-ice);
}

::-webkit-scrollbar-thumb {
    background: var(--helv-grey-mid);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--helv-steel);
}

/* --- Code blocks --- */
code {
    background: var(--helv-blue-wash);
    color: var(--helv-blue-dark);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.88em;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

/* --- Admin index card grid --- */
.admin-card-link {
    text-decoration: none;
    display: block;
    transition: transform 0.15s ease;
}

.admin-card-link:hover {
    transform: translateY(-2px);
}

/* --- Horta Accordion List (mobile admin) --- */
.mobile-accordion { display: none; }

@media (max-width: 991.98px) {
    .desktop-table { display: none !important; }
    .mobile-accordion { display: block; }
}

/* Accordion item */
.horta-acc-item {
    background: var(--helv-white);
    border: 1px solid var(--helv-border);
    border-radius: var(--helv-radius);
    margin-bottom: 8px;
    overflow: hidden;
    box-shadow: var(--helv-shadow);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.horta-acc-item.open {
    border-color: var(--helv-blue);
    box-shadow: 0 2px 12px rgba(0, 102, 204, 0.08);
}

/* Header */
.horta-acc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    gap: 8px;
    background: var(--helv-white);
    transition: background 0.15s ease;
}

.horta-acc-header:active {
    background: var(--helv-grey-light);
}

.horta-acc-title {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--helv-text);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.horta-acc-chevron {
    color: var(--helv-blue);
    font-size: 1rem;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.horta-acc-item.open .horta-acc-chevron {
    transform: rotate(180deg);
}

/* Body */
.horta-acc-body {
    display: none;
    padding: 0 16px 14px;
    animation: hortaAccSlide 0.2s ease;
}

.horta-acc-item.open .horta-acc-body {
    display: block;
}

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

/* Detail row */
.horta-acc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--helv-border-light);
    gap: 8px;
}

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

.horta-acc-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--helv-text-muted);
    flex-shrink: 0;
    min-width: 80px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.horta-acc-value {
    font-size: 0.88rem;
    color: var(--helv-text);
    text-align: right;
    flex: 1;
    min-width: 0;
}

.horta-acc-value .form-select-sm {
    font-size: 0.82rem;
    max-width: 160px;
    margin-left: auto;
}

/* Action buttons row */
.horta-acc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px solid var(--helv-grey);
    justify-content: flex-end;
}

.horta-acc-actions .btn {
    font-size: 0.82rem;
    border-radius: var(--helv-radius-sm);
    padding: 5px 12px;
}

/* Separator */
.horta-acc-body::before {
    content: '';
    display: block;
    height: 1px;
    background: var(--helv-grey);
    margin-bottom: 10px;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .main-content {
        padding: 16px;
    }

    .navbar-horta .navbar-brand {
        font-size: 1rem;
    }

    .horta-auth-card {
        border-radius: 8px;
    }
}
