/* ============================================================
   Crew Finder — stylesheet
   Tema nautica: navy profund + teal + accent chihlimbar.
   Clasele existente sunt pastrate; au fost doar restilizate.
   ============================================================ */

:root {
    /* Paleta */
    --color-navy: #0b2545;
    --color-navy-2: #13315c;
    --color-primary: #0f6f8c;
    --color-primary-dark: #0b5468;
    --color-accent: #e8a24b;
    --color-accent-dark: #c9822a;

    --color-bg: #f2f5f7;
    --color-surface: #ffffff;
    --color-text: #1f2933;
    --color-muted: #64748b;
    --color-border: #dde5ec;

    --color-success: #1a7f37;
    --color-success-bg: #e6f4ea;
    --color-danger: #b3261e;
    --color-danger-bg: #fdecea;
    --color-warn: #9a6700;
    --color-warn-bg: #fff4e0;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(11, 37, 69, 0.08), 0 4px 14px rgba(11, 37, 69, 0.06);
    --shadow-lift: 0 4px 10px rgba(11, 37, 69, 0.10), 0 10px 28px rgba(11, 37, 69, 0.10);
    --focus-ring: 0 0 0 3px rgba(15, 111, 140, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.45; /* 7.38: design compact */
    -webkit-font-smoothing: antialiased;
}

h1 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 0.6rem; color: var(--color-navy); }
h2 { font-size: 1.2rem; letter-spacing: -0.01em; margin: 1.4rem 0 0.6rem; color: var(--color-navy); }
h3 { color: var(--color-navy-2); }

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-header {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-2) 100%);
    border-bottom: 3px solid var(--color-accent);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(11, 37, 69, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.logo:hover { color: var(--color-accent); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover { color: #fff; border-bottom-color: var(--color-accent); }
.main-nav a.btn-primary { border-bottom: none; }

/* Meniu Nomenclatoare (dropdown fara JS, bazat pe <details>) */
.nav-dropdown { position: relative; }
.nav-dropdown > summary {
    list-style: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    user-select: none;
    padding: 0.25rem 0;
}
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::after { content: " \25BE"; font-size: 0.8em; }
.nav-dropdown > summary:hover { color: #fff; }
.nav-dropdown[open] > summary::after { content: " \25B4"; }
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 190px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    padding: 0.4rem 0;
    display: flex;
    flex-direction: column;
    z-index: 20;
}
.nav-dropdown-menu a {
    padding: 0.55rem 1.1rem;
    white-space: nowrap;
    color: var(--color-text);
    border-bottom: none;
    font-size: 0.92rem;
}
.nav-dropdown-menu a:hover { background: var(--color-bg); color: var(--color-primary-dark); }

.nav-inbox { position: relative; }
.badge-count {
    background: var(--color-accent);
    color: var(--color-navy);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    margin-left: 0.3rem;
}

.role-switcher {
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}
.role-switcher option { color: var(--color-text); background: var(--color-surface); }

.admin-link {
    color: var(--color-accent) !important;
    font-weight: 700;
}

/* ------------------------------------------------------------
   Butoane
   ------------------------------------------------------------ */
.btn-primary, .link-button,
a.btn-primary {
    display: inline-block;
    background: var(--color-primary);
    color: #fff !important;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease;
}
.btn-primary:hover, .link-button:hover { background: var(--color-primary-dark); }
.btn-primary:active { transform: translateY(1px); }

/* Buton de accent (CTA principal, ex: publicare cerere pentru vizitatori) */
.btn-accent,
a.btn-accent {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-navy) !important;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease;
}
.btn-accent:hover { background: var(--color-accent-dark); color: #fff !important; }
.btn-accent:active { transform: translateY(1px); }
.main-nav a.btn-accent { border-bottom: none; }

.btn-secondary,
a.btn-secondary {
    display: inline-block;
    background: var(--color-surface);
    color: var(--color-primary-dark);
    border: 1px solid var(--color-primary);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}
.btn-secondary:hover { background: rgba(15, 111, 140, 0.08); }

.btn-danger {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid #f3b3ae;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.15s ease;
}
.btn-danger:hover { background: #fbdbd7; }

.btn-success {
    background: var(--color-success-bg);
    color: #1e7a34;
    border: 1px solid #a8dab5;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.15s ease;
}
.btn-success:hover { background: #d3ecd9; }

button:focus-visible, a:focus-visible, select:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.inline-form { display: inline; }

/* ------------------------------------------------------------
   Layout continut
   ------------------------------------------------------------ */
main.container {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
    min-height: 60vh;
}

/* Titlu pagina + actiuni in dreapta */
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.page-head h1 { margin: 0; }
.page-head .actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ------------------------------------------------------------
   Hero (home page)
   ------------------------------------------------------------ */
.intro {
    background:
        radial-gradient(1200px 400px at 90% -50%, rgba(232, 162, 75, 0.18), transparent),
        linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-2) 55%, var(--color-primary-dark) 100%);
    color: #fff;
    border-radius: calc(var(--radius) + 4px);
    padding: 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lift);
}
.intro h1 {
    color: #fff;
    font-size: 1.7rem;
    margin-bottom: 0.4rem;
}
.intro .lead {
    max-width: 46rem;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.9rem;
}
.intro-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
}
.intro-points li {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
}
.intro .help-text { color: rgba(255, 255, 255, 0.65); margin-top: 1.25rem; }
.intro .help-text a { color: var(--color-accent); }

/* ------------------------------------------------------------
   Home: descrierea si lista de evenimente, una langa alta
   ------------------------------------------------------------ */
.home-top {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}
.home-top .intro { margin-bottom: 0; }
.home-events {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow);
    padding: 1rem 1.1rem;
    min-width: 0;
}
.home-events h2 { margin-top: 0; }
.event-list { list-style: none; padding: 0; margin: 0; }
.event-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    flex-wrap: wrap;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--color-border);
}
.event-list li:last-child { border-bottom: none; }
.event-list a { font-weight: 600; text-decoration: none; color: var(--color-navy-2); }
.event-list a:hover { color: var(--color-primary); text-decoration: underline; }
.event-dates { color: var(--color-muted); font-size: 0.85rem; white-space: nowrap; }

@media (max-width: 900px) {
    .home-top { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   Fereastra flotanta (overlay) pentru paginile de adaugare/editare
   ------------------------------------------------------------ */
.overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 42, 0.55);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1rem 2rem;
    overflow-y: auto;
}
.overlay-panel {
    position: relative;
    background: var(--color-surface);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 640px;
    padding: 1.25rem 1.5rem 1.5rem;
}
.overlay-close {
    position: absolute;
    top: 0.5rem;
    right: 0.6rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-muted);
    cursor: pointer;
    padding: 0.25rem 0.4rem;
}
.overlay-close:hover { color: var(--color-navy); }
.overlay-content h1 { font-size: 1.25rem; margin-top: 0; }
.overlay-content form { max-width: 100% !important; }
body.overlay-open { overflow: hidden; }

@media (max-width: 640px) {
    .overlay-backdrop { padding: 1rem 0.5rem; }
    .overlay-panel { padding: 1rem; }
}

/* ------------------------------------------------------------
   Carduri si liste
   ------------------------------------------------------------ */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.1rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

a.card, .request-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
a.card:hover, a.request-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
    border-color: var(--color-primary);
}
.request-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }

.badge {
    display: inline-block;
    background: rgba(15, 111, 140, 0.1);
    color: var(--color-primary-dark);
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.4rem;
}
.badge-admin {
    background: rgba(232, 162, 75, 0.18);
    color: var(--color-accent-dark);
}

.list-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.6rem 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    box-shadow: var(--shadow);
}
.list-item .actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.list-item h3 a { text-decoration: none; color: var(--color-navy-2); }
.list-item h3 a:hover { color: var(--color-primary); text-decoration: underline; }

.section-title {
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-navy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.45rem;
}

.empty-state {
    color: var(--color-muted);
    padding: 1.25rem 1rem;
    text-align: center;
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius);
}

/* ------------------------------------------------------------
   Formulare
   ------------------------------------------------------------ */
form.auth-form { max-width: 420px; margin: 0 auto; }

/* Formularele stack nu se intind pe toata latimea paginii */
form.stack-form { max-width: 560px; }

form.auth-form label,
form.stack-form label,
.field-label {
    display: block;
    margin: 0.7rem 0 0.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-navy-2);
}

form.auth-form input,
form.stack-form input,
form.stack-form select,
form.stack-form textarea {
    width: 100%;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--color-surface);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
form.auth-form input:focus,
form.stack-form input:focus,
form.stack-form select:focus,
form.stack-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}
form.stack-form textarea { resize: vertical; min-height: 100px; }

.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row > * { flex: 1; min-width: 180px; }

.help-text { color: var(--color-muted); font-size: 0.82rem; margin-top: 0.3rem; }

/* 7.35: marcajul campurilor obligatorii (adaugat automat din app.js pe etichete) */
.required-mark { color: var(--color-danger); font-weight: 700; }

/* Lista de bife (selectie multipla) */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 220px;
    overflow-y: auto;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
    font-size: 0.95rem;
}
form.stack-form .checkbox-item input[type="checkbox"] { width: auto; margin: 0; flex-shrink: 0; }

/* 7.31: lista pozitie + nivel de experienta per pozitie */
.position-level-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
}
.position-level-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.position-level-row span { font-size: 0.95rem; }
form.stack-form .position-level-row select { width: auto; min-width: 170px; padding: 0.35rem 0.6rem; font-size: 0.9rem; }

.checkbox-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.checkbox-row input { width: auto; }
form.auth-form label.checkbox-row { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0 0; cursor: pointer; font-weight: 400; }
form.auth-form label.checkbox-row input { width: auto; flex-shrink: 0; }
.checkbox-row span { font-size: 0.9rem; color: var(--color-text); }

/* Feedback live formulare (email / parola) */
.field-feedback { font-size: 0.8rem; margin-top: 0.25rem; min-height: 1em; }
.field-feedback.ok  { color: var(--color-success); }
.field-feedback.err { color: var(--color-danger); }

.password-reqs { list-style: none; padding: 0; margin: 0.4rem 0 0; font-size: 0.8rem; }
.password-reqs li {
    color: var(--color-muted);
    padding-left: 1.4rem;
    position: relative;
    line-height: 1.6;
}
.password-reqs li::before { content: '○'; position: absolute; left: 0.2rem; }
.password-reqs li.ok { color: var(--color-success); }
.password-reqs li.ok::before { content: '✓'; }

/* Mesaje eroare / notificare */
.errors {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    padding: 0.8rem 1.1rem;
    border-left: 4px solid var(--color-danger);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}
.errors p { margin: 0.2rem 0; }
.notice {
    background: var(--color-success-bg);
    color: var(--color-success);
    padding: 0.8rem 1.1rem;
    border-left: 4px solid var(--color-success);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}
.notice p { margin: 0.2rem 0; }

/* ------------------------------------------------------------
   Filtre / toolbar
   ------------------------------------------------------------ */
.toolbar {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
    margin: 0.75rem 0 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
}
.toolbar select, .toolbar input {
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    font-size: 0.9rem;
}

/* ------------------------------------------------------------
   Tabel de date (administrare nomenclatoare)
   ------------------------------------------------------------ */
.table-wrap {
    overflow-x: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.data-table th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    background: var(--color-bg);
    border-bottom: 2px solid var(--color-border);
    white-space: nowrap;
}

.data-table td {
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(15, 111, 140, 0.04); }

.data-table input[type="text"],
.data-table input[type="number"] {
    width: 100%;
    min-width: 140px;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: inherit;
    background: var(--color-surface);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.data-table input[type="number"] { min-width: 90px; max-width: 110px; }
.data-table input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}

.data-table .cell-actions { white-space: nowrap; text-align: right; }
.data-table td.cell-actions button { margin-left: 0.4rem; }

/* ------------------------------------------------------------
   Status pills
   ------------------------------------------------------------ */
.status-pill {
    display: inline-block;
    padding: 0.18rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.4rem;
}
.status-pending { background: var(--color-warn-bg); color: var(--color-warn); }
.status-approved { background: var(--color-success-bg); color: #1e7a34; }
.status-rejected { background: var(--color-danger-bg); color: var(--color-danger); }
.status-needs_revision { background: #fdf1e0; color: #b45309; }
.status-withdrawn { background: #eef0f2; color: var(--color-muted); }
.status-expired { background: #eef0f2; color: var(--color-muted); }

/* ------------------------------------------------------------
   Corespondenta (mesaje pe cerere)
   ------------------------------------------------------------ */
.message-thread { display: flex; flex-direction: column; gap: 0.6rem; margin: 1rem 0; }
.message-bubble {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    border-bottom-left-radius: 4px;
    padding: 0.65rem 0.95rem;
    max-width: 80%;
    box-shadow: var(--shadow);
}
.message-bubble.own {
    align-self: flex-end;
    background: rgba(15, 111, 140, 0.08);
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: 4px;
}
.message-meta { font-size: 0.75rem; color: var(--color-muted); margin-bottom: 0.2rem; }

/* ------------------------------------------------------------
   Inbox (notificari)
   ------------------------------------------------------------ */
.notification-item { border-left: 3px solid var(--color-primary); }
.notification-item.is-read { border-left-color: var(--color-border); opacity: 0.6; }
.notification-item.is-read .notification-mark-read { display: none; }

/* ------------------------------------------------------------
   Tabs (admin dashboard)
   ------------------------------------------------------------ */
.tabs { display: flex; gap: 0.4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tab-btn {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-muted);
    transition: background 0.15s ease, color 0.15s ease;
}
.tab-btn:hover { color: var(--color-primary-dark); border-color: var(--color-primary); }
.tab-btn.active { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }
.tab-panel { display: none; }
.tab-panel.active {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem;
}

/* Grila de fotografii (profil user / barca) */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.photo-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}
.photo-grid img.is-primary { outline: 3px solid var(--color-primary); }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
    background: var(--color-navy);
    border-top: 3px solid var(--color-accent);
    padding: 1.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-align: center;
    margin-top: 2rem;
}
.site-footer a { color: var(--color-accent); }

/* ------------------------------------------------------------
   Toast
   ------------------------------------------------------------ */
.toast {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    background: var(--color-navy);
    color: #fff;
    padding: 0.75rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 50;
    box-shadow: var(--shadow-lift);
    max-width: min(90vw, 420px);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--color-danger); }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 640px) {
    h1 { font-size: 1.3rem; }
    .intro { padding: 1.25rem 1rem; }
    .intro h1 { font-size: 1.45rem; }
    .header-inner { flex-direction: column; align-items: flex-start; }
    /* 7.39: verificari responsive suplimentare */
    .tab-panel.active { padding: 0.75rem 0.85rem; }
    .list-item { padding: 0.55rem 0.7rem; }
    .position-level-row { flex-wrap: wrap; }
    .page-head { flex-direction: column; align-items: flex-start; }
    .data-table { font-size: 0.85rem; }
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .photo-grid img { height: 120px; }
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-left: 0.75rem;
    }
    .nav-dropdown-menu a { color: rgba(255, 255, 255, 0.85); }
    .nav-dropdown-menu a:hover { background: transparent; color: #fff; }
    .message-bubble { max-width: 95%; }
}
