/* ============================================================
   Fuse Meeting Rooms — Stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green:        #0F6E56;
    --green-dark:   #085041;
    --green-light:  #E1F5EE;
    --green-border: #9FE1CB;
    --blue-light:   #E6F1FB;
    --blue-text:    #185FA5;
    --amber-light:  #FAEEDA;
    --amber-text:   #854F0B;
    --red-light:    #FCEBEB;
    --red-text:     #A32D2D;
    --red-border:   #F7C1C1;
    --grey-bg:      #F4F4F2;
    --border:       rgba(0,0,0,0.12);
    --border-med:   rgba(0,0,0,0.2);
    --text:         #1a1a1a;
    --text-muted:   #666;
    --radius:       8px;
    --radius-lg:    12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--grey-bg);
    line-height: 1.6;
}

/* ---- NAV ---- */
.navbar {
    background: #fff;
    border-bottom: 0.5px solid var(--border);
    position: sticky; top: 0; z-index: 50;
}
.nav-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; gap: 16px;
    padding: 0 16px; height: 56px;
}
.nav-logo {
    font-size: 16px; font-weight: 600;
    text-decoration: none; color: var(--text);
    white-space: nowrap; margin-right: 8px;
}
.green { color: var(--green); }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link {
    padding: 6px 12px; border-radius: var(--radius);
    text-decoration: none; color: var(--text-muted); font-size: 13px;
    transition: background 0.15s;
}
.nav-link:hover, .nav-link.active {
    background: var(--green-light); color: var(--green);
}
.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-user-name { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* ---- MAIN ---- */
.main-content {
    max-width: 1000px; margin: 0 auto;
    padding: 1.5rem 16px 3rem;
}
.page-header { margin-bottom: 1.5rem; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-header h1 { font-size: 22px; font-weight: 600; }
.page-header .sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; width: 100%; }
.section-title { font-size: 16px; font-weight: 500; margin-bottom: 0.75rem; }

/* ---- CARDS ---- */
.card {
    background: #fff;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

/* ---- ALERTS ---- */
.alert {
    padding: 10px 14px; border-radius: var(--radius);
    font-size: 13px; margin-bottom: 1rem;
}
.alert-success { background: var(--green-light); color: var(--green-dark); border: 0.5px solid var(--green-border); }
.alert-error   { background: var(--red-light);   color: var(--red-text);   border: 0.5px solid var(--red-border); }

/* ---- FORMS ---- */
.form-group { margin-bottom: 1rem; }
label {
    display: block; font-size: 12px;
    color: var(--text-muted); margin-bottom: 4px;
}
input[type=text], input[type=email], input[type=password],
input[type=number], input[type=date], select, textarea {
    width: 100%; padding: 8px 10px;
    border: 0.5px solid var(--border-med);
    border-radius: var(--radius);
    font-size: 13px; background: #fff;
    color: var(--text); font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(15,110,86,0.12);
}
textarea { resize: vertical; min-height: 72px; }
.req { color: var(--red-text); }
.hint { font-size: 12px; color: var(--text-muted); margin-bottom: 0.75rem; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 0.5rem; }

/* ---- GRIDS ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 600px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: var(--radius);
    font-size: 13px; cursor: pointer; font-weight: 500;
    border: 0.5px solid var(--border-med);
    background: #fff; color: var(--text);
    font-family: inherit; text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}
.btn:hover   { background: var(--grey-bg); }
.btn:active  { transform: scale(0.98); }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); }
.btn-danger  { background: var(--red-light); color: var(--red-text); border-color: var(--red-border); }
.btn-danger:hover { background: var(--red-border); }
.btn-sm      { padding: 4px 10px; font-size: 12px; }
.btn-full    { width: 100%; justify-content: center; }

/* ---- BADGES ---- */
.badge {
    display: inline-block; padding: 2px 8px;
    border-radius: var(--radius); font-size: 11px; font-weight: 500;
    white-space: nowrap;
}
.badge-green  { background: var(--green-light); color: var(--green-dark); }
.badge-blue   { background: var(--blue-light);  color: var(--blue-text); }
.badge-amber  { background: var(--amber-light); color: var(--amber-text); }
.badge-grey   { background: #eee; color: #666; }

/* ---- BOOKING ROWS ---- */
.booking-row {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 12px;
    padding: 10px 0;
    border-bottom: 0.5px solid var(--border);
}
.booking-row:last-child { border-bottom: none; }
.booking-info { flex: 1; min-width: 0; }
.booking-title { font-weight: 500; font-size: 13px; margin-bottom: 2px; }
.booking-meta  { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.booking-actions { display: flex; gap: 6px; flex-shrink: 0; padding-top: 2px; }

/* ---- SLOT GRID ---- */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 6px;
}
.slot {
    padding: 6px 4px; border-radius: var(--radius);
    font-size: 11px; text-align: center; cursor: pointer;
    border: 0.5px solid var(--border);
    background: var(--grey-bg); color: var(--text-muted);
    transition: background 0.1s;
}
.slot.booked { background: var(--red-light); color: var(--red-text); border-color: var(--red-border); cursor: default; }
.slot.free:hover { background: var(--green-light); color: var(--green); border-color: var(--green-border); }

/* ---- CALENDAR ---- */
.cal-header {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: 8px;
}
.week-nav { display: flex; align-items: center; gap: 8px; }
.week-label { font-size: 13px; min-width: 160px; text-align: center; }
.cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.cal-day { min-width: 0; }
.cal-day-header {
    font-size: 11px; font-weight: 500; text-align: center;
    padding: 5px 2px; background: var(--grey-bg);
    border-radius: var(--radius); margin-bottom: 4px;
    color: var(--text-muted);
}
.cal-day-header.today { background: var(--green-light); color: var(--green); }
.cal-booking {
    font-size: 10px; padding: 3px 5px; border-radius: 4px;
    margin-bottom: 2px; background: var(--blue-light); color: var(--blue-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    cursor: default;
}
@media (max-width: 700px) { .cal-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .cal-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- FILTER ROW ---- */
.filter-row { margin-bottom: 1rem; }
.filter-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.filter-form input, .filter-form select { margin-top: 0; flex: 1; min-width: 140px; }

/* ---- STATS ---- */
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 12px; margin-bottom: 1rem;
}
@media (max-width: 600px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
    background: #fff; border: 0.5px solid var(--border);
    border-radius: var(--radius); padding: 1rem; text-align: center;
}
.stat-num   { font-size: 28px; font-weight: 600; line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ---- ROOM CHIPS ---- */
.room-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: var(--radius);
    background: var(--grey-bg); border: 0.5px solid var(--border);
    font-size: 13px;
}
.muted { color: var(--text-muted); font-size: 12px; }

/* ---- MODALS ---- */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45); z-index: 200;
    display: flex; align-items: center; justify-content: center;
}
.modal {
    background: #fff; border-radius: var(--radius-lg);
    border: 0.5px solid var(--border-med);
    padding: 1.5rem; width: 100%; max-width: 520px;
    margin: 1rem; max-height: 90vh; overflow-y: auto;
}
.modal h3 { margin-bottom: 1rem; }
.modal-sm { max-width: 380px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 1.25rem; }
.modal-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 1rem; }

/* ---- MISC ---- */
.divider { border: none; border-top: 0.5px solid var(--border); margin: 1rem 0; }
.empty-msg { font-size: 13px; color: var(--text-muted); padding: 0.5rem 0; }
.empty-state { font-size: 13px; color: var(--text-muted); }
.inline-form .grid-3 { align-items: end; }

/* ---- LOGIN PAGE ---- */
body.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-wrap { width: 100%; max-width: 380px; padding: 1rem; }
.login-card {
    background: #fff; border-radius: var(--radius-lg);
    border: 0.5px solid var(--border); padding: 2rem;
}
.login-logo  { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.login-sub   { font-size: 13px; color: var(--text-muted); margin-bottom: 1.5rem; }
.login-help  { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 1rem; }

/* ---- FOOTER ---- */
.site-footer {
    border-top: 0.5px solid var(--border); background: #fff;
    padding: 12px 16px; margin-top: 2rem;
}
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    font-size: 12px; color: var(--text-muted);
}

/* ---- EXTRAS ---- */
.extras-grid { display: flex; flex-direction: column; gap: 8px; }
.extra-item  { border: 0.5px solid var(--border); border-radius: var(--radius); padding: 10px 12px; background: var(--grey-bg); }
.extra-check { display: flex; align-items: flex-start; gap: 10px; }
.extra-check input[type=checkbox] { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; accent-color: var(--green); }
.extra-label { display: flex; flex-direction: column; gap: 2px; cursor: pointer; flex: 1; }
.extra-label strong { font-size: 13px; font-weight: 500; }
.extra-desc  { font-size: 12px; color: var(--text-muted); }
.extra-price { font-size: 12px; color: var(--green); font-weight: 500; }
.extra-qty   { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px;
               border-top: 0.5px solid var(--border); font-size: 12px; color: var(--text-muted); }

/* ---- COST SUMMARY ---- */
.cost-summary { background: var(--grey-bg); border: 0.5px solid var(--border); border-radius: var(--radius);
                padding: 1rem 1.25rem; margin: 1rem 0; }
.cost-row     { display: flex; justify-content: space-between; align-items: center;
                padding: 5px 0; font-size: 13px; border-bottom: 0.5px solid var(--border); }
.cost-row:last-child { border-bottom: none; }
.cost-total   { font-weight: 600; font-size: 15px; padding-top: 10px; color: var(--green); }

/* ---- PRICE CARDS ---- */
.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 0.5rem;
}
.price-card {
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.25rem;
    background: var(--grey-bg);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.price-card-name { font-size: 15px; font-weight: 500; color: var(--text); }
.price-card-cap  { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.price-card-main {
    font-size: 26px; font-weight: 600; color: var(--green); line-height: 1;
}
.price-card-main span { font-size: 13px; font-weight: 400; color: var(--text-muted); margin-left: 2px; }
.price-card-breakdown {
    display: flex; flex-direction: column; gap: 3px;
    margin-top: 8px; padding-top: 8px;
    border-top: 0.5px solid var(--border);
}
.price-card-breakdown div {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: var(--text-muted);
}
.price-card-breakdown div strong { color: var(--text); font-weight: 500; }
.price-card-vat {
    font-size: 11px; color: var(--text-muted);
    margin-top: 8px; padding-top: 6px;
    border-top: 0.5px solid var(--border);
}

/* ---- EXTRAS PRICE LIST ---- */
.extras-price-list   { display: flex; flex-direction: column; gap: 0; }
.extras-price-row    {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 0; border-bottom: 0.5px solid var(--border);
    font-size: 13px;
}
.extras-price-row:last-child { border-bottom: none; }
.extras-price-amount { font-weight: 500; color: var(--green); white-space: nowrap; margin-left: 1rem; }
.extras-price-amount span { font-size: 11px; color: var(--text-muted); font-weight: 400; }
