/* ======================================================
   GLOBALT
   ====================================================== */

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: #f6f4f2;
    color: #222;
}

/* ======================================================
   HEADER / LOGO / NAVIGATION
   ====================================================== */

.page-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 30px 14px; /* <-- mer luft höger/vänster */
}

.page-logo {
    max-width: 220px;
    align-self: center;
}

.login-info {
    margin: 4px 0 0;
    color: #555;
    align-self: center;
}

/* Navigation tiles */

.header-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 12px;
    margin: 10px 0 6px;
}

.header-tile {
    display: block;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f5f6f7;
    color: #222;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e3e5e8;
    transition: background .15s ease, box-shadow .15s ease;
}

.header-tile:hover {
    background: #eef1f4;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.header-tile.active {
    background: #ffffff;
    border-color: #7b1f1f;
    box-shadow: 0 2px 10px rgba(0,0,0,.10);
}

/* ======================================================
   TEXTER
   ====================================================== */

.page-title,
.booking-title,
h1 {
    color: #7b1f1f;
}

.muted {
    color: #777;
    font-size: 14px;
}

/* ======================================================
   CONTAINER & KOLUMNER
   ====================================================== */

.bk-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px 40px;
}

.bk-columns {
    display: grid;
    grid-template-columns: 320px 1fr 360px;
    gap: 24px;
    align-items: start;
}

/* ======================================================
   KORT / KOLUMNER
   ====================================================== */

.bk-col {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.bk-block {
    margin-bottom: 20px;
}

.bk-block:last-child {
    margin-bottom: 0;
}

.bk-block h4 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #7b1f1f;
}

/* ======================================================
   KNAPPAR
   ====================================================== */

button {
    font-family: inherit;
    cursor: pointer;
}

.meeting-btn,
#btn-confirm,
#btn-back {
    background: #7b1f1f;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
}

.meeting-btn:hover,
#btn-confirm:hover,
#btn-back:hover {
    background: #641818;
}

/* ======================================================
   FORMULÄR
   ====================================================== */

select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Textruta – GENERELLT */
textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
}

/* Textruta – BOKNING (högerkolumn) */
#col-right textarea {
    min-height: 80px;
    resize: none;
    margin-top: 6px;
    margin-bottom: 12px;
}

#col-right textarea:focus {
    outline: none;
    border-color: #7b1f1f;
    box-shadow: 0 0 0 2px rgba(123,31,31,0.12);
}

/* ======================================================
   SAMTALSLÄNGD
   ====================================================== */

.bk-radio-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.bk-radio-list li {
    margin-bottom: 8px;
}

/* ======================================================
   KALENDER (ISO – Måndag först)
   ====================================================== */

/* ---------- Header ---------- */

.calendar-header {
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #f0ecea;
    border-radius: 10px;
}

.cal-title {
    text-align: center;
    font-weight: 700;
    color: #7b1f1f;
    font-size: 15px;
}

.cal-nav {
    background: transparent;
    border: none;
    color: #7b1f1f;
    font-size: 16px;
    font-weight: 700;
    padding: 4px 6px;
    cursor: pointer;
}

.cal-nav:hover {
    background: rgba(123,31,31,0.10);
    border-radius: 6px;
}

/* ---------- Grid ---------- */

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

/* ---------- Weekday row ---------- */

.calendar-weekdays {
    margin-bottom: 6px;
}

.calendar-weekdays .calendar-day {
    font-weight: 600;
    font-size: 12px;
    color: #7b1f1f;
    background: transparent;
    cursor: default;
}

/* ---------- Day cells ---------- */

.calendar-day {
    text-align: center;
    padding: 9px 0;
    border-radius: 8px;
    font-size: 13px;
    user-select: none;
    cursor: default;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    transition: background 0.15s ease, transform 0.05s ease;
}

/* Empty / disabled days */
.calendar-day.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f7f7f7;
}

/* Selectable days */
.calendar-day.has-slots {
    background: #D8C5A7;
    border: 1px solid #b79f7e;
    font-weight: 600;
    cursor: pointer;
    color: #5a3b2e; /* bättre kontrast */
}

.calendar-day.has-slots:hover {
    background: #cbb492;
    transform: translateY(-1px);
}


/* Optional: active click effect */
.calendar-day.has-slots:active {
    transform: translateY(0);
}
.calendar-mode-info {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}
.calendar-mode-info strong {
    color: #7b1f1f;
}

.meeting-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}
.calendar-mode-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.calendar-mode-text {
    font-size: 15px;
    font-weight: 600;
    color: #7b1f1f;
}

.channel-label {
    font-size: 14px;
    font-weight: 600;
    color: #7b1f1f;
}

/* ======================================================
   TIDER
   ====================================================== */

.time-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.time-slot {
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 999px;
    background: #f1e9e8;
    cursor: pointer;
    font-size: 14px;
}

.time-slot:hover {
    background: #e2d0ce;
}

/* ======================================================
   BOOKINGS VIEW
   ====================================================== */

#bookings-view {
    margin-top: 8px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.tab-btn {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #e3e5e8;
    background: #f5f6f7;
    font-weight: 600;
}

.tab-btn.active {
    background: #ffffff;
    border-color: #7b1f1f;
}

/* Bokningskort */

#bookings-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.booking-block {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.booking-row {
    margin-bottom: 10px;
}

.booking-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.booking-value {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.booking-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

/* Avboka */

.booking-block .btn-cancel {
    align-self: flex-end;
    margin-top: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #7b1f1f;
    background: #fff;
    color: #7b1f1f;
    font-size: 13px;
    font-weight: 600;
}

.booking-block .btn-cancel:hover {
    background: #7b1f1f;
    color: #fff;
}

/* Kvitto */

.booking-block .btn-receipt {
    align-self: flex-end;
    margin-top: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #7b1f1f;
    background: #fff;
    color: #7b1f1f;
    font-size: 13px;
    font-weight: 600;
}

.booking-block .btn-receipt:hover {
    background: #7b1f1f;
    color: #fff;
}
/* ======================================================
   EMPTY STATES
   ====================================================== */

.empty-state {
    grid-column: 1 / -1;
    padding: 18px;
    border-radius: 10px;
    background: #fafbfc;
    border: 1px dashed #d9dde3;
    color: #666;
}

/* ======================================================
   PROFILE
   ====================================================== */

.profile-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.profile-table td {
    padding: 6px 4px;
    vertical-align: top;
}

.profile-table .label {
    width: 45%;
    color: #777;
    font-size: 14px;
}

.profile-table .value {
    color: #222;
    font-weight: 600;
    font-size: 14px;
}
/* ================================
   HEADER ACTIONS (Hem / Logout)
================================ */

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-header {
    display: inline-block;
    padding: 6px 14px;
    background: #7b1f1f;
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.15s ease;
}

.btn-header:hover {
    background: #641818;
}

.btn-logout {
    background: #641818;
}
.page-logo {
    display: block;
    margin: 0 auto;
}
.site-footer {
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-top: 40px;
}

/* ======================================================
   PRIMARY BUTTON (CTA)
   ====================================================== */

.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    background: #7b1f1f;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background: #641818;
    transform: translateY(-1px);
}

.btn-pay {
    width: 100%;
    margin-top: 10px;
}
.wallet-warning {
    background: #fdecea;
    border: 1px solid #e2a3a3;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 14px;
    color: #7b1f1f;
}

.wallet-warning p {
    margin: 0 0 8px;
    font-size: 14px;
}

.wallet-missing {
    font-weight: 600;
}

