﻿/* ================== Tokens ================== */
:root {
    --c-border: #efefef;
    --c-muted: #9aa0a6;
    --c-bg-soft: #fafafa;
    --c-range-1: #0d6efd; /* start/end outline */
    --c-range-2: #86b7fe; /* mid outline */

    --c-has: #198754; /* has-booking */
    --c-nobook: #f8f9fa; /* no-booking bg */
    --c-nobook-border: #e9ecef;
    --c-nobook-text: #6c757d;
    --bg-color: #ffffff;
    --text-color: #212529;
    --card-bg: #f8f9fa;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #eaeaea;
    --card-bg: #1e1e1e;
}

/* ================== Base / General ================== */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Limit “container” width similar to Bootstrap */
.container {
    max-width: 1140px;
    margin: auto;
    padding: 0 15px;
}

/* Headings: keep only sizing */
h1 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

h3 {
    font-size: 1.5em;
    margin-bottom: 0.3em;
}

/* Sections – light-mode base */
section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
}

    section ul {
        list-style-type: disc;
        margin-left: 20px;
    }

/* Footer – structural */
footer {
    text-align: center;
    padding: 20px;
}

    footer.footer {
        padding: 5px 0;
        font-size: 0.875rem;
        background-color: #f8f9fa;
        border-top: 1px solid #e0e0e0;
    }

        footer.footer .container {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 30px;
        }

/* ================== Utilities ================== */
.icon-sm {
    font-size: 1.05rem;
    line-height: 1;
}

.date-badge {
    font-weight: 600;
    display: inline-block;
    padding: .15rem .4rem;
    border-radius: 4px;
}

.button-container {
    display: flex;
    gap: 10px;
}

    .button-container .btn {
        flex: 1;
    }

/* ================== Calendar day cells ================== */
.slot-btn {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px dashed #cbd5e1;
    background: #f8fffa;
    padding: .35rem;
    border-radius: .5rem;
}

    .slot-btn.disabled {
        pointer-events: none;
        opacity: .55;
        background: #f6f6f6;
        border-style: solid;
    }

    /* Range painter */
    .slot-btn.range-start {
        border: 2px solid var(--c-range-1);
        background: #eef5ff;
    }

    .slot-btn.range-mid {
        border: 2px solid var(--c-range-2);
        background: #f2f7ff;
    }

    .slot-btn.range-end {
        border: 2px solid var(--c-range-1);
        background: #eef5ff;
    }

/* Out-of-month + Past */
.slot-outmonth {
    border: 1px solid #eee;
    background: #fafafa;
    color: var(--c-muted);
}

.slot-past {
    background: #f6f6f6;
    border: 1px solid #e5e7eb;
    color: #6c757d;
}

/* Booking status (slot-*) */
.slot-pending {
    background: #fff3cd;
    border-color: #ffe69c;
    color: #856404;
}

.slot-confirmed {
    background: #d1e7dd;
    border-color: #a3cfbb;
    color: #0f5132;
}

.slot-checkedin {
    background: #cfe2ff;
    border-color: #9ec5fe;
    color: #084298;
}

.slot-checkout {
    background: #cff4fc;
    border-color: #9eeaf9;
    color: #055160;
}

.slot-cancelled {
    background: #f8d7da;
    border-color: #f1aeb5;
    color: #842029;
}

.slot-noshow {
    background: #fde2e1;
    border-color: #fac2c1;
    color: #7a1716;
}

.slot-completed {
    background: #e2f5e9;
    border-color: #bee7d0;
    color: #176b3a;
}

/* Related & Double-booking overlays */
.slot-related {
    background: #eee;
    border-color: #ddd;
    color: #495057;
}

.slot-double {
    background: #fff;
    border-color: #ffb3b3;
    color: #b10000;
}

/* ================== Calendar table ================== */
.cal {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}

    .cal th,
    .cal td {
        border: 1px solid var(--c-border);
        padding: .5rem;
        vertical-align: top;
    }

    .cal th {
        text-align: center;
        background: var(--c-bg-soft);
        font-weight: 600;
    }

    .cal .muted {
        color: var(--c-muted);
        background: var(--c-bg-soft);
    }

    .cal .today {
        outline: 2px solid red;
        outline-offset: -2px;
        border-radius: 4px;
    }

/* ================== Multi-month cards/grid ================== */
.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 1.25rem;
}

.month-card {
    border: 1px solid #e5e5e5;
    border-radius: .5rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.month-header {
    padding: .75rem 1rem;
    font-weight: 600;
    background: #f7f7f7;
    border-bottom: 1px solid #e5e5e5;
}

/* 12-month summary matrix */
.month-grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: .5rem;
}

@@media (max-width: 992px) {
    .month-grid {
        grid-template-columns: repeat(4,1fr);
    }
}

@@media (max-width: 576px) {
    .month-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

.month-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .65rem .25rem;
    border-radius: .5rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid #dee2e6;
    min-height: 44px;
}

.has-booking {
    background: var(--c-has);
    color: #fff;
    border-color: var(--c-has);
}

.no-booking {
    background: var(--c-nobook);
    color: var(--c-nobook-text);
    border-color: var(--c-nobook-border);
}

/* ================== Misc headings ================== */
h1.cliendheading {
    font-size: 2em;
    text-align: justify;
    flex-grow: 1;
    color: lightgoldenrodyellow;
}

h1.dashboardheading {
    font-size: 2em;
    text-align: justify;
    flex-grow: 1;
}

/* ================== Navbar premium tweaks ================== */
.navbar {
    letter-spacing: .2px;
    backdrop-filter: blur(10px);
}

.navbar-brand img {
    transition: transform .2s;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: all .2s;
    border-radius: 6px;
}

    .nav-link:hover {
        background-color: rgba(255,255,255,.15);
        color: #fff !important;
    }

.dropdown-menu {
    font-size: .9rem;
}

.dropdown-item i {
    color: #0d6efd;
    margin-right: 8px;
}

.dropdown-item:hover {
    background-color: #f1f5ff;
}

.dropdown-header {
    font-size: .85rem;
    font-weight: 700;
    color: #6c63ff !important;
    text-transform: uppercase;
}

/* ================== Tables, alerts, misc ================== */
.alert {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

thead tr {
    background-color: #f2f2f2;
}

th,
td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

tbody tr:nth-child(even) {
    background-color: #fafafa;
}

tbody tr:hover {
    background-color: #f1f1f1;
}

/* Old “booking status row” colors – kept for legacy views */
.pending {
    background: #fff3cd;
}

.confirmed {
    background: #d4edda;
}

.checkedin {
    background: #c3e6cb;
}

.checkout {
    background: #bee5eb;
}

.cancelled {
    background: #f5c6cb;
}

.noshow {
    background: #f8d7da;
}

.completed {
    background: #c3e6cb;
}

.related {
    background: #e2e3e5;
}

.double-booking {
    background: red;
    color: #fff;
}

/* Responsive adjustments for some calendar views */
@@media(max-width: 600px) {
    .day-header {
        font-size: 0.3rem;
    }

    .day-cell {
        font-size: 0.4rem;
        padding: 2px;
    }
}

/* Details-control icons */
tr.shown td.details-control:after {
    content: "\2212";
}

tr td.details-control:after {
    content: "\002B";
}

/* Action buttons row */
.action-buttons {
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
    text-align: center;
}

.highlight-img {
    width: 32%;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    object-fit: cover;
}

.deleted-row {
    color: red !important;
    text-decoration: line-through;
    opacity: 0.6;
}

/* ================== Identity forms layout ================== */
form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

/* Login page layout */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f8f9fa;
    margin: 0;
}

.login-box {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

    .login-box h1 {
        text-align: center;
        margin-bottom: 20px;
    }

/* Forgot password layout */
.forgot-password-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f8f9fa;
    margin: 0;
}

.forgot-password-box {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

    .forgot-password-box h1,
    .forgot-password-box h4 {
        text-align: center;
    }

/* Change password layout */
.change-password-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f8f9fa;
    margin: 0;
}

.change-password-box {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h4 {
    margin-bottom: 20px;
    font-size: 1.5em;
}
/* ===== Header styling ===== */
.ts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.5rem;
}

/* Left section (logo + venue name) */
.ts-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Logo container */
.ts-logo-link {
    display: flex;
    align-items: center;
}

/* Logo image styling */
.ts-logo {
    height: 55px;
    width: auto;
    border-radius: 8px;
    background: #fff;
    padding: 4px 8px;
    box-shadow: 0 0 6px rgba(0,0,0,0.15);
}



/* Theme button refinement */
.ts-theme-btn {
    padding: 4px 10px;
    font-size: 0.85rem;
}

/* ===== Mobile responsive tweaks ===== */
@media (max-width: 768px) {
    .ts-header {
        padding: 0.6rem 1rem;
    }

    .ts-logo {
        height: 40px;
        padding: 3px 6px;
    }

    .ts-venue-name {
        font-size: 1.1rem;
    }
}

.helpbox-container {
    background-color: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.08);
}
/* Optional: slight weight on admin navbar links */
header nav.navbar .nav-link {
    font-weight: 500;
}

/* Keep dropdown menus clean */
header nav.navbar .dropdown-menu {
    font-size: 0.9rem;
}

/* Top admin header bar – light like public navbar */
.ts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 1.5rem;
}

.ts-header-left {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.ts-logo-link {
    display: inline-flex;
    align-items: center;
}

.ts-logo {
    height: 48px;
    border-radius: .5rem;
    background: #ffffff;
    padding: .25rem;
    box-shadow: 0 0.15rem 0.4rem rgba(0, 0, 0, 0.15);
    object-fit: contain;
}

.ts-venue-name {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

/* Theme toggle on light background */
.ts-theme-btn {
    border-color: #6c757d;
    color: #495057;
}

    .ts-theme-btn:hover {
        border-color: #495057;
        color: #212529;
        background-color: rgba(0, 0, 0, 0.03);
    }

/* Prevent nav-link inside user dropdown from turning white on hover */
.navbar .nav-item .nav-link {
    color: #212529 !important; /* default text */
}

    .navbar .nav-item .nav-link:hover,
    .navbar .nav-item .nav-link:focus {
        color: #0d6efd !important; /* blue hover */
    }

.venue-main-image {
    width: 180px;
    height: 120px;
    object-fit: cover;
}

.unit-thumb {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.match-badge {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.match-best {
    background-color: #198754; /* green */
    color: #fff;
}

.match-good {
    background-color: #0d6efd; /* blue */
    color: #fff;
}

.match-possible {
    background-color: #fd7e14; /* orange */
    color: #fff;
}
