:root {
    --honey-yellow: #f4c430;
    --honey-yellow-dark: #d79d00;
    --honey-pale: #fff7d7;
    --honey-soft: #f8e8a1;
    --bee-black: #111111;
    --bee-white: #fffdf7;
    --bee-cream: #fff6db;
    --bee-gray: #6a6a6a;
    --bee-border: rgba(17, 17, 17, 0.12);
    --bee-shadow: 0 24px 60px rgba(17, 17, 17, 0.12);
}

html,
body {
    min-height: 100%;
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--bee-black);
    background-image: url("../images/background.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

a {
    color: inherit;
}

.admin-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 1rem 0;
}

.admin-auth__container {
    max-width: 540px;
}

.login-card {
    width: 100%;
    position: relative;
    padding: 1.4rem;
    border-radius: 28px;
    background: rgba(255, 253, 247, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--bee-shadow);
    backdrop-filter: blur(10px);
}

.theme-auth,
.theme-dashboard {
    position: relative;
}

.theme-auth::before,
.theme-dashboard::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 248, 222, 0.58), rgba(248, 232, 161, 0.48));
    pointer-events: none;
    z-index: -1;
}

.login-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bee-black);
    background: rgba(244, 196, 48, 0.14);
    border: 1px solid rgba(244, 196, 48, 0.3);
    margin-bottom: 1rem;
}

.login-card__logo {
    width: 92px;
    height: 92px;
    margin: 0 auto 1.25rem;
    border-radius: 26px;
    display: grid;
    place-items: center;
    font-size: 2.05rem;
    color: var(--bee-black);
    background: linear-gradient(180deg, rgba(244, 196, 48, 0.95), rgba(215, 157, 0, 0.95));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.36),
        0 16px 30px rgba(215, 157, 0, 0.24);
}

.login-card__header h1 {
    font-size: clamp(1.75rem, 5.5vw, 2.35rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.login-card__header p {
    color: var(--bee-gray);
    margin: 0 auto;
    max-width: 30rem;
    line-height: 1.65;
    font-size: 0.98rem;
}

.login-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.75rem;
}

.form-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.93rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.input-icon {
    position: relative;
}

.input-icon__symbol {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: rgba(17, 17, 17, 0.44);
    font-size: 0.98rem;
    pointer-events: none;
}

.form-control {
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid var(--bee-border);
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--bee-black);
}

.form-control::placeholder {
    color: #8b8b8b;
}

.form-control:focus,
.form-check-input:focus {
    border-color: rgba(215, 157, 0, 0.62);
    box-shadow: 0 0 0 0.25rem rgba(244, 196, 48, 0.22);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: auto;
}

.form-check-input {
    margin-top: 0;
    border-color: rgba(17, 17, 17, 0.25);
}

.form-check-input:checked {
    background-color: var(--honey-yellow);
    border-color: var(--honey-yellow);
}

.form-check-label {
    color: var(--bee-gray);
    font-size: 0.95rem;
}

.login-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.2rem;
}

.login-form__note {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--bee-gray);
    font-size: 0.9rem;
    font-weight: 600;
}

.invalid-feedback {
    font-size: 0.84rem;
    font-weight: 600;
}

.btn-login {
    min-height: 56px;
    border: 0;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--honey-yellow), var(--honey-yellow-dark));
    color: var(--bee-black);
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 14px 26px rgba(215, 157, 0, 0.28);
}

.btn-login:hover,
.btn-login:focus {
    color: var(--bee-black);
    transform: translateY(-1px);
    filter: saturate(1.05);
    box-shadow: 0 18px 30px rgba(215, 157, 0, 0.34);
}

.btn-login--sm {
    min-height: 46px;
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
}

.dashboard-shell {
    min-height: 100vh;
    padding: 1rem 0 2rem;
}

.dashboard-shell__container {
    display: grid;
    gap: 1rem;
}

.dashboard-hero,
.dashboard-panel,
.table-card,
.placeholder-card {
    border-radius: 28px;
    background: rgba(255, 253, 247, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--bee-shadow);
    backdrop-filter: blur(10px);
}

.dashboard-hero,
.dashboard-panel {
    padding: 1.2rem;
}

.dashboard-hero {
    display: grid;
    gap: 1rem;
}

.dashboard-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(244, 196, 48, 0.14);
    border: 1px solid rgba(244, 196, 48, 0.3);
}

.dashboard-hero h1 {
    margin: 0.8rem 0 0.5rem;
    font-size: clamp(1.8rem, 5vw, 2.7rem);
    font-weight: 800;
}

.dashboard-hero p {
    margin: 0;
    color: var(--bee-gray);
    max-width: 42rem;
    line-height: 1.7;
}

.dashboard-user {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1rem;
    border-radius: 16px;
    background: rgba(17, 17, 17, 0.06);
    font-weight: 700;
}

.dashboard-tabs-wrapper {
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin-bottom: 1rem;
}

.dashboard-tabs {
    display: flex;
    gap: 0.7rem;
    flex-wrap: nowrap;
    min-width: max-content;
}

.dashboard-tabs__link {
    min-height: 50px;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.65);
    color: var(--bee-black);
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dashboard-tabs__link.active,
.dashboard-tabs__link:hover,
.dashboard-tabs__link:focus {
    background: linear-gradient(135deg, var(--honey-yellow), var(--honey-yellow-dark));
    color: var(--bee-black);
    box-shadow: 0 14px 26px rgba(215, 157, 0, 0.22);
}

.dashboard-content {
    display: grid;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.section-heading h2,
.placeholder-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 800;
}

.section-heading p,
.placeholder-card p {
    margin: 0;
    color: var(--bee-gray);
    line-height: 1.65;
}

.table-card {
    overflow: hidden;
}

.booking-accordion {
    display: grid;
    gap: 0.85rem;
}

.booking-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    box-shadow: var(--bee-shadow);
    background: rgba(255, 253, 247, 0.92);
}

.booking-card .accordion-header {
    margin: 0;
}

.booking-card__toggle {
    padding: 1rem 1.1rem;
    font-weight: 700;
    background-color: transparent;
    box-shadow: none;
}

.booking-card__toggle:not(.collapsed) {
    box-shadow: none;
}

.booking-card__toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(244, 196, 48, 0.18);
}

.booking-card__toggle::after {
    background-size: 1rem;
}

.booking-card--pending .booking-card__toggle,
.booking-card--pending .booking-card__toggle:not(.collapsed) {
    background: rgba(220, 53, 69, 0.16);
    color: #8c1d18;
}

.booking-card--processing .booking-card__toggle,
.booking-card--processing .booking-card__toggle:not(.collapsed) {
    background: rgba(255, 193, 7, 0.22);
    color: #8a5a00;
}

.booking-card--completed .booking-card__toggle,
.booking-card--completed .booking-card__toggle:not(.collapsed) {
    background: rgba(25, 135, 84, 0.18);
    color: #146c43;
}

.booking-card__head {
    display: grid;
    gap: 0.25rem;
}

.booking-card__title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

.booking-card__subtitle {
    font-size: 0.82rem;
    opacity: 0.8;
}

.booking-card__body {
    padding: 1rem;
    background: rgba(255, 253, 247, 0.94);
}

.booking-list {
    display: grid;
    gap: 0.95rem;
}

.booking-list__item {
    display: grid;
    gap: 0.45rem;
}

.booking-list__label {
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bee-gray);
}

.booking-list__value--client {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.booking-table {
    --bs-table-bg: transparent;
    min-width: 1200px;
}

.booking-table thead th {
    background: rgba(17, 17, 17, 0.04);
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    padding: 1rem;
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bee-gray);
}

.booking-table tbody td {
    padding: 1rem;
    vertical-align: top;
    border-color: rgba(17, 17, 17, 0.08);
}

.booking-table__client {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 200px;
}

.booking-table__editor {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.booking-table__editor--client {
    min-width: 250px;
}

.booking-table__client-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(244, 196, 48, 0.16);
    color: var(--bee-black);
}

.form-control--table,
.status-field {
    min-width: 140px;
    min-height: 46px;
    padding-left: 0.95rem;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.94);
}

.input-icon--table .input-icon__symbol {
    left: 0.9rem;
}

.input-icon--table .form-control--table {
    padding-left: 2.4rem;
}

.input-icon--textarea .input-icon__symbol {
    top: 1rem;
    transform: none;
}

.form-control--table-textarea {
    min-width: 260px;
    min-height: 108px;
    padding-top: 0.85rem;
    resize: vertical;
}

.input-group-table .input-group-text {
    border-radius: 16px 0 0 16px;
    border: 1px solid var(--bee-border);
    background: rgba(244, 196, 48, 0.14);
    color: var(--bee-black);
    font-weight: 700;
}

.input-group-table .form-control--table {
    border-left: 0;
    border-radius: 0 16px 16px 0;
    min-width: 120px;
}

.status-field {
    border-radius: 16px;
    font-weight: 700;
    border: 1px solid transparent;
    padding-right: 2.75rem;
    background-position: right 0.95rem center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.status-field--pending {
    color: #8c1d18;
    background-color: rgba(220, 53, 69, 0.14);
    border-color: rgba(220, 53, 69, 0.24);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%238c1d18' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.status-field--processing {
    color: #8a5a00;
    background-color: rgba(255, 193, 7, 0.18);
    border-color: rgba(255, 193, 7, 0.3);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%238a5a00' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.status-field--completed {
    color: #146c43;
    background-color: rgba(25, 135, 84, 0.16);
    border-color: rgba(25, 135, 84, 0.24);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23146c43' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.booking-total {
    min-width: 130px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(17, 17, 17, 0.05);
    border: 1px solid rgba(17, 17, 17, 0.08);
}

.booking-total__value {
    font-weight: 800;
    white-space: nowrap;
}

.booking-table__client-text {
    display: grid;
    gap: 0.2rem;
}

.booking-table__client-text strong {
    font-size: 0.96rem;
}

.booking-table__client-text span {
    color: var(--bee-gray);
    font-size: 0.8rem;
    line-height: 1.4;
}

.placeholder-card {
    padding: 2rem 1.2rem;
    text-align: center;
}

.placeholder-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--honey-yellow-dark);
}

@media (min-width: 768px) {
    .login-card {
        padding: 2.35rem;
        border-radius: 32px;
    }

    .dashboard-shell {
        padding-top: 1.5rem;
        padding-bottom: 2.5rem;
    }

    .dashboard-hero,
    .dashboard-panel,
    .placeholder-card {
        padding: 1.7rem;
    }
}

@media (max-width: 767.98px) {
    body {
        background-attachment: scroll;
    }

    .dashboard-panel {
        padding: 1rem;
    }

    .dashboard-tabs-wrapper {
        margin-bottom: 0.85rem;
    }

    .section-heading {
        margin-bottom: 0.85rem;
    }

    .section-heading .btn-login--sm {
        width: 100%;
    }

    .booking-table__editor--client {
        min-width: 0;
    }

    .form-control--table,
    .status-field,
    .form-control--table-textarea,
    .booking-total,
    .input-group-table .form-control--table {
        min-width: 0;
        width: 100%;
    }
}

@media (min-width: 992px) {
    .dashboard-hero {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
}
