/* ============================================================
   Rezervări sală conferințe — sistem de design
   Aliniat la mockup-uri: Inter, albastru royal, carduri soft,
   iconițe line, sidebar cu pill activ, stat-carduri, switch-uri.
   ============================================================ */
:root {
    /* Brand */
    --brand:      #2563eb;
    --brand-600:  #2563eb;
    --brand-700:  #1d4ed8;
    --brand-50:   #eef4ff;
    --brand-100:  #dce7ff;

    /* Status */
    --green:    #16a34a;  --green-50: #e9f8ef;  --green-100: #c6ecd4;
    --amber:    #b45309;  --amber-50: #fef3e2;  --amber-100: #f8e0b8;
    --red:      #dc2626;  --red-50:   #fdecec;  --red-100:   #f6cfcf;

    /* Neutre */
    --ink:      #0f1e3d;  /* titluri navy */
    --ink-2:    #1e293b;
    --text:     #334155;  /* corp */
    --muted:    #64748b;
    --muted-2:  #94a3b8;
    --bg:       #f4f7fb;
    --card:     #ffffff;
    --line:     #e8edf4;
    --line-2:   #eef2f7;

    /* Forme */
    --r:    16px;   /* carduri */
    --r-md: 12px;
    --r-sm: 10px;   /* butoane / input */
    --shadow:    0 1px 2px rgba(15,30,61,.04), 0 4px 14px rgba(15,30,61,.04);
    --shadow-md: 0 8px 28px rgba(15,30,61,.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1,h2,h3,h4 { margin: 0 0 .4em; font-weight: 650; color: var(--ink); letter-spacing: -0.02em; }
svg { display: inline-block; vertical-align: middle; flex: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 15px; border-radius: var(--r-sm); border: 1px solid var(--line);
    font-size: 13.5px; font-weight: 600; cursor: pointer; background: #fff;
    color: var(--ink-2); transition: background .15s, border-color .15s, box-shadow .15s, color .15s;
    white-space: nowrap; line-height: 1;
}
.btn:hover { background: var(--bg); border-color: #dbe2ec; color: var(--ink); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 1px 2px rgba(37,99,235,.25); }
.btn-primary:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.btn-success { background: var(--green); color: #fff; border-color: var(--green); }
.btn-success:hover { background: #128a3e; color: #fff; }
.btn-danger { background: #fff; color: var(--red); border-color: var(--red-100); }
.btn-danger:hover { background: var(--red-50); border-color: var(--red); color: var(--red); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; gap: 5px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-block { width: 100%; justify-content: center; padding: 11px; font-size: 14px; }

/* ---------- Forms ---------- */
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input, select, textarea {
    width: 100%; padding: 10px 13px; border: 1px solid #dde4ec;
    border-radius: var(--r-sm); font-size: 14px; font-family: inherit; background: #fff; color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50);
}
input:disabled { background: var(--line-2); color: var(--muted); }
input[type="date"], input[type="time"] { cursor: pointer; }
.field { margin-bottom: 17px; }
.form-row { display: flex; gap: 14px; }
.form-row > .field { flex: 1; }

/* ---------- Cards ---------- */
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: var(--shadow); padding: 22px;
}
.card + .card { margin-top: 18px; }
.card-title { font-size: 15px; font-weight: 650; color: var(--ink); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.muted { color: var(--muted); }
.text-sm { font-size: 13px; }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.no-dot::before { display: none; }
.badge-green { background: var(--green-50); color: #15803d; }
.badge-amber { background: var(--amber-50); color: var(--amber); }
.badge-red   { background: var(--red-50);   color: var(--red); }
.badge-gray  { background: #eef2f7;          color: var(--muted); }
.badge-blue  { background: var(--brand-50);  color: var(--brand-700); }

/* ---------- Alerts ---------- */
.alert { padding: 12px 15px; border-radius: var(--r-sm); margin-bottom: 18px; font-size: 13.5px; font-weight: 500;
    display: flex; align-items: center; gap: 9px; }
.alert svg { width: 18px; height: 18px; flex: none; }
.alert-error   { background: var(--red-50);   color: #991b1b; border: 1px solid var(--red-100); }
.alert-success { background: var(--green-50);  color: #166534; border: 1px solid var(--green-100); }
.alert-info    { background: var(--brand-50);  color: #1e40af; border: 1px solid var(--brand-100); }

/* ---------- Auth ---------- */
.auth-wrap { height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.auth-top { padding: 18px 30px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 9px; font-size: 15px; }
.auth-body { flex: 1; display: grid; grid-template-columns: 1fr 440px 330px; min-height: 0; overflow: hidden; }
.auth-hero { background: linear-gradient(150deg, #1e3a8a, #2563eb); position: relative; overflow: hidden; }
.auth-hero img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.auth-hero .hero-cap { position: absolute; left: 34px; bottom: 40px; color: #fff; }
.auth-hero .hero-cap h3 { color: #fff; font-size: 26px; line-height: 1.2; max-width: 320px; }
.auth-hero .hero-cap p { color: rgba(255,255,255,.85); max-width: 320px; }
.auth-center { display: flex; padding: 40px 34px; overflow-y: auto; }
.auth-card { width: 100%; max-width: 360px; margin: auto; }
.auth-logo { width: 56px; height: 56px; border-radius: 15px; background: var(--brand); color:#fff;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; box-shadow: 0 8px 20px rgba(37,99,235,.35); }
.auth-logo svg { width: 28px; height: 28px; }
.auth-side { background: #fff; border-left: 1px solid var(--line); padding: 44px 30px; overflow-y: auto; }
.rule { display: flex; gap: 13px; margin-bottom: 24px; }
.rule-ico { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--brand-50);
    color: var(--brand); display: flex; align-items: center; justify-content: center; }
.rule-ico svg { width: 19px; height: 19px; }
.rule strong { display: block; font-size: 13.5px; color: var(--ink); }
.rule span { font-size: 12.5px; color: var(--muted); }
.auth-footer { text-align: center; padding: 18px; font-size: 12px; color: var(--muted-2); }
.link-row { display: flex; justify-content: flex-end; margin-top: -6px; margin-bottom: 14px; }
@media (max-width: 980px) {
    .auth-wrap { height: auto; min-height: 100vh; }
    .auth-body { grid-template-columns: 1fr; overflow: visible; }
    .auth-hero, .auth-side { display: none; }
}

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 20px 16px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink); padding: 4px 8px 22px; font-size: 15px; letter-spacing: -0.02em; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display:flex; align-items:center; justify-content:center; box-shadow: 0 4px 10px rgba(37,99,235,.3); }
.brand .logo svg { width: 19px; height: 19px; }
.nav-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); padding: 0 10px 8px; }
.nav a {
    display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: var(--r-sm);
    color: var(--muted); font-weight: 600; font-size: 13.5px; margin-bottom: 3px; transition: background .12s, color .12s;
}
.nav a:hover { background: var(--line-2); color: var(--ink-2); }
.nav a.active { background: var(--brand-50); color: var(--brand-700); }
.nav a svg { width: 18px; height: 18px; color: inherit; }
.nav a .nav-count { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
    min-width: 19px; height: 19px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }

/* Dropdown notificări (clopoțel) */
.notif { position: relative; }
.notif summary { list-style: none; }
.notif summary::-webkit-details-marker { display: none; }
.notif summary::marker { content: ""; }
.notif-panel { position: absolute; right: 0; top: 48px; width: 268px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: 8px; z-index: 50; }
.notif-head { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); padding: 7px 10px 9px; }
.notif-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border-radius: 8px; color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
.notif-item:hover { background: var(--line-2); color: var(--ink); }
.notif-item .flex { gap: 8px; }
.notif-item svg { color: var(--muted); }
.notif-empty { padding: 14px 10px; color: var(--muted); font-size: 13px; text-align: center; }
.sidebar-help { margin-top: auto; background: var(--brand-50); border-radius: var(--r-md); padding: 15px; font-size: 12.5px; color: var(--ink-2); }
.sidebar-help .flex { color: var(--brand-700); font-weight: 700; margin-bottom: 5px; }
.sidebar-help svg { width: 18px; height: 18px; }
.sidebar-help p { margin: 0; color: var(--muted); }

.main { display: flex; flex-direction: column; min-height: 100vh; }
.topbar { min-height: 66px; background: #fff; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }
.topbar .title { font-size: 15px; font-weight: 600; color: var(--muted); }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
    display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.icon-btn .badge-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 999px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; border: 2px solid #fff; line-height: 1; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700);
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-chip .meta { text-align: right; line-height: 1.25; }
.user-chip .meta .nm { font-weight: 650; color: var(--ink); font-size: 13.5px; }
.user-chip .meta .rl { font-size: 12px; color: var(--muted); }

.content { padding: 28px; flex: 1; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.page-head h1 { font-size: 23px; margin: 0; font-weight: 700; }
.page-head p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Layout helpers ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 312px; gap: 18px; align-items: start; }
.grid-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.stat .stat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.stat .stat-ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.stat .stat-ico svg { width: 19px; height: 19px; }
.stat .num { font-size: 27px; font-weight: 750; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.stat .lbl { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ico-blue  { background: var(--brand-50); color: var(--brand); }
.ico-green { background: var(--green-50);  color: var(--green); }
.ico-amber { background: var(--amber-50);  color: var(--amber); }
.ico-red   { background: var(--red-50);    color: var(--red); }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.flex { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }

/* ---------- Tables ---------- */
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
    color: var(--muted-2); padding: 11px 12px; border-bottom: 1px solid var(--line); font-weight: 700; }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; color: var(--text); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: #fafbfd; }
.cell-strong { font-weight: 650; color: var(--ink); }
.uavatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700);
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: none; }
.u-cell { display: flex; align-items: center; gap: 11px; }

/* Tabs segmentate */
.tabs { display: inline-flex; gap: 4px; margin-bottom: 18px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-sm); padding: 4px; }
.tabs a { padding: 7px 14px; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: 13px; }
.tabs a:hover { color: var(--ink-2); }
.tabs a.active { background: var(--brand); color: #fff; }

/* Switch (toggle) */
.switch { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; border-radius: 999px;
    background: #cbd5e1; position: relative; cursor: pointer; border: none; transition: background .18s; flex: none; padding: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
    background: #fff; transition: left .18s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch.on { background: var(--green); }
.switch.on::after { left: 20px; }

/* ---------- Calendar (table) ---------- */
table.calt { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.calt th { background: #fbfcfe; padding: 9px 4px; font-size: 12px; font-weight: 650;
    border-bottom: 1px solid var(--line); border-right: 1px solid var(--line-2); text-align: center; color: var(--ink-2); }
table.calt th.today { background: var(--brand-50); color: var(--brand-700); }
table.calt th small { display: block; color: var(--muted-2); font-weight: 600; font-size: 11px; }
table.calt th.tcol, table.calt td.tcol { width: 54px; }
table.calt td.tcol { font-size: 11px; color: var(--muted-2); text-align: right; padding: 2px 8px;
    border-right: 1px solid var(--line-2); vertical-align: top; }
table.calt td.cell { height: 27px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 0; position: relative; }
table.calt td.unavailable { background: repeating-linear-gradient(45deg,#fafbfc,#fafbfc 5px,#f0f3f8 5px,#f0f3f8 10px); }
table.calt td.available a { display: block; width: 100%; height: 100%; }
table.calt td.available:hover { background: var(--brand-50); cursor: pointer; }
table.calt td.ev { vertical-align: top; padding: 5px 7px; border-left: 3px solid; border-radius: 0 5px 5px 0; }
table.calt td.ev .ev-title { font-size: 12px; font-weight: 650; line-height: 1.2; }
table.calt td.ev .ev-meta { font-size: 11px; opacity: .85; }
table.calt td.ev.confirmed { background: var(--green-50); border-left-color: var(--green); color: #166534; }
table.calt td.ev.pending  { background: var(--amber-50); border-left-color: var(--amber); color: #92400e; }
table.calt td.ev.blocked  { background: #eef2f7; border-left-color: var(--muted-2); color: var(--muted); }

.legend { display: flex; flex-direction: column; gap: 11px; }
.legend .item { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text); }
.legend .dot { width: 14px; height: 14px; border-radius: 5px; flex: none; }

/* Progres */
.bar-track { background: var(--line-2); border-radius: 6px; height: 9px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: var(--brand); }

/* Comutator de limbă */
.lang-switch { display: inline-flex; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.lang-opt { display: flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.lang-opt:hover { color: var(--ink); text-decoration: none; background: var(--line-2); }
.lang-opt.active { background: var(--brand-50); color: var(--brand-700); }
.lang-opt .flag { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.flag { display: block; }

.inline-form { display: inline; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.info-strip { background: var(--brand-50); border: 1px solid var(--brand-100); color: #1e40af;
    border-radius: var(--r-md); padding: 11px 15px; font-size: 13px; display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.info-strip svg { width: 17px; height: 17px; flex: none; }
