:root {
    --sidebar: #12263a;
    --sidebar-light: #1c3853;

    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;

    --green: #15803d;
    --green-light: #dcfce7;

    --red: #b42318;
    --red-light: #fee4e2;

    --background: #f4f7fb;
    --surface: #ffffff;

    --text: #172033;
    --muted: #6b7688;
    --border: #dfe5ec;

    --shadow:
        0 12px 30px rgba(25, 42, 70, 0.08);

    --radius: 18px;
}


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


body {
    min-height: 100vh;

    background-color: var(--background);
    color: var(--text);

    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}


a {
    color: inherit;
    text-decoration: none;
}


button {
    font: inherit;
    cursor: pointer;
}


.sidebar {
    position: fixed;
    top: 0;
    left: 0;

    width: 250px;
    height: 100vh;

    display: flex;
    flex-direction: column;

    background-color: var(--sidebar);
    color: white;

    padding: 28px 20px;
}


.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 42px;

    color: white;
    font-size: 1.05rem;
    line-height: 1.2;
}


.brand strong {
    display: block;
    color: #8db8ff;
}


.brand-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background-color: var(--primary);
    color: white;

    font-size: 1.2rem;
    font-weight: 900;
}


.sidebar-nav {
    display: grid;
    gap: 8px;
}


.nav-item {
    display: flex;
    align-items: center;
    gap: 13px;

    border-radius: 12px;

    padding: 12px 14px;

    color: #b9c7d6;
    font-weight: 700;
}


.nav-item:hover,
.nav-item.active {
    background-color: var(--sidebar-light);
    color: white;
}


.nav-icon {
    width: 22px;
    text-align: center;
}


.sidebar-footer {
    margin-top: auto;

    border-radius: 16px;

    background-color: var(--sidebar-light);

    padding: 18px;
}


.sidebar-footer p {
    margin-bottom: 12px;
    color: #cad7e4;
    font-size: 0.9rem;
}


.sidebar-footer a {
    display: block;

    border-radius: 10px;

    background-color: var(--primary);
    color: white;

    padding: 10px 14px;

    text-align: center;
    font-weight: 800;
}


.app-container {
    min-height: 100vh;
    margin-left: 250px;
}


.topbar {
    min-height: 92px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    border-bottom: 1px solid var(--border);

    background-color: var(--surface);

    padding: 18px 40px;
}


.page-label,
.section-label {
    margin-bottom: 4px;

    color: var(--primary);

    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.topbar h1 {
    font-size: 1.65rem;
}


.primary-button {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background-color: var(--primary);
    color: white;

    padding: 11px 18px;

    font-weight: 800;
}


.primary-button:hover {
    background-color: var(--primary-dark);
}


main {
    min-height: calc(100vh - 170px);

    padding: 36px 40px 70px;
}


.page-introduction {
    max-width: 750px;
    margin-bottom: 28px;
}


.page-introduction h2 {
    margin-bottom: 8px;
    font-size: 2rem;
}


.page-introduction > p:last-child {
    color: var(--muted);
}


.bookings-container {
    display: grid;
    gap: 20px;
}


.booking-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);

    background-color: var(--surface);

    padding: 26px;

    box-shadow: var(--shadow);
}


.booking-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;

    border-bottom: 1px solid var(--border);

    padding-bottom: 20px;
}


.booking-card-header h2 {
    margin-top: 9px;
    margin-bottom: 3px;
    font-size: 1.4rem;
}


.booking-card-header p {
    color: var(--muted);
}


.booking-status {
    display: inline-flex;

    border-radius: 999px;

    padding: 5px 10px;

    font-size: 0.72rem;
    font-weight: 900;
}


.booking-status.confirmed {
    background-color: var(--green-light);
    color: var(--green);
}


.booking-status.cancelled {
    background-color: var(--red-light);
    color: var(--red);
}


.booking-id {
    border-radius: 10px;

    background-color: var(--primary-light);
    color: var(--primary);

    padding: 8px 11px;

    font-size: 0.82rem;
}


.booking-information {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;

    padding: 22px 0;
}


.booking-information span,
.booking-information strong {
    display: block;
}


.booking-information span {
    margin-bottom: 3px;

    color: var(--muted);
    font-size: 0.78rem;
}


.booking-card-actions {
    display: flex;
    justify-content: flex-end;
}


.cancel-button {
    border: 1px solid #f1b4ae;
    border-radius: 10px;

    background-color: white;
    color: var(--red);

    padding: 10px 16px;

    font-weight: 800;
}


.cancel-button:hover {
    background-color: var(--red-light);
}


.cancelled-booking {
    opacity: 0.78;
}


.cancelled-message {
    color: var(--muted);
    font-size: 0.85rem;
}


.empty-state,
.loading-message {
    border: 1px solid var(--border);
    border-radius: var(--radius);

    background-color: var(--surface);

    padding: 50px 24px;

    text-align: center;

    box-shadow: var(--shadow);
}


.empty-icon {
    width: 64px;
    height: 64px;

    display: grid;
    place-items: center;

    margin: 0 auto 20px;

    border-radius: 50%;

    background-color: var(--primary-light);
    color: var(--primary);

    font-size: 1.7rem;
}


.empty-state h2 {
    margin-bottom: 8px;
}


.empty-state p {
    margin-bottom: 20px;
    color: var(--muted);
}


.loading-message {
    color: var(--muted);
}


footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    border-top: 1px solid var(--border);

    background-color: var(--surface);
    color: var(--muted);

    padding: 24px 40px;

    font-size: 0.82rem;
}


@media (max-width: 950px) {
    .booking-information {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 850px) {
    .sidebar {
        position: static;

        width: 100%;
        height: auto;
    }

    .brand {
        margin-bottom: 18px;
    }

    .sidebar-nav {
        display: flex;
        overflow-x: auto;
    }

    .nav-item {
        flex-shrink: 0;
    }

    .sidebar-footer {
        display: none;
    }

    .app-container {
        margin-left: 0;
    }
}


@media (max-width: 620px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;

        padding: 18px 24px;
    }

    main {
        padding: 28px 20px 60px;
    }

    .booking-card-header {
        flex-direction: column;
    }

    .booking-information {
        grid-template-columns: 1fr;
    }

    .booking-card-actions {
        justify-content: stretch;
    }

    .cancel-button {
        width: 100%;
    }

    footer {
        flex-direction: column;
        padding: 24px;
    }
}