* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100%;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: #100b0d;
    color: #ffffff;
}


body {
    min-height: 100vh;
}


button,
input {
    font: inherit;
}


button {
    border: none;
    cursor: pointer;
}


.hidden {
    display: none !important;
}


.screen {
    width: 100%;
    min-height: 100vh;
}


/* ========================================================= */
/* HEADER */
/* ========================================================= */

.header {

    padding: 22px 18px 18px;

    background:
        linear-gradient(
            180deg,
            #211116 0%,
            #140c0f 100%
        );

    border-bottom:
        1px solid rgba(
            255,
            255,
            255,
            0.06
        );
}


.brand {

    display: flex;
    align-items: center;
    gap: 13px;
}


.brand-icon {

    width: 46px;
    height: 46px;

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

    border-radius: 14px;

    background: #3a1b25;

    font-size: 25px;
}


.brand-title {

    font-size: 19px;
    font-weight: 700;
}


.brand-subtitle {

    margin-top: 3px;

    font-size: 13px;

    color: #a9949a;
}


/* ========================================================= */
/* CONTENT */
/* ========================================================= */

.content {

    padding: 18px;

    max-width: 650px;

    margin: 0 auto;
}


/* ========================================================= */
/* WELCOME */
/* ========================================================= */

.welcome-card {

    padding: 24px 20px;

    margin-bottom: 24px;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #321821,
            #1d1014
        );

    border:
        1px solid rgba(
            255,
            255,
            255,
            0.07
        );

    text-align: center;
}


.welcome-icon {

    font-size: 40px;

    margin-bottom: 10px;
}


.welcome-card h1 {

    margin: 0;

    font-size: 24px;
}


.welcome-card p {

    margin: 10px 0 0;

    color: #b9a8ad;

    line-height: 1.5;
}


/* ========================================================= */
/* SECTION */
/* ========================================================= */

.section {

    margin-bottom: 24px;
}


.section-title {

    margin-bottom: 12px;

    font-size: 17px;

    font-weight: 700;
}


/* ========================================================= */
/* DATES */
/* ========================================================= */

.date-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 10px;
}


.date-button {

    padding: 16px 10px;

    border-radius: 14px;

    background: #241419;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.07
        );

    color: #ffffff;

    font-weight: 600;

    transition: 0.15s;
}


.date-button:active {

    transform: scale(0.97);
}


.date-button.selected {

    background: #713247;

    border-color: #a74b68;
}


/* ========================================================= */
/* TIMES */
/* ========================================================= */

.time-grid {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 10px;
}


.time-button {

    padding: 14px 8px;

    border-radius: 13px;

    background: #241419;

    color: #ffffff;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.07
        );

    font-weight: 600;
}


.time-button:active {

    transform: scale(0.97);
}


/* ========================================================= */
/* BUTTONS */
/* ========================================================= */

.primary-button,
.secondary-button,
.warning-button,
.danger-button {

    width: 100%;

    padding: 15px;

    margin-top: 10px;

    border-radius: 14px;

    font-weight: 700;

    color: #ffffff;
}


.primary-button {

    background: #74334a;
}


.primary-button:active {

    background: #8b3e58;
}


.secondary-button {

    background: #2a1b20;
}


.warning-button {

    background: #69551f;
}


.danger-button {

    background: #742936;
}


/* ========================================================= */
/* RESULT */
/* ========================================================= */

.result-card {

    padding: 25px 20px;

    margin-top: 20px;

    text-align: center;

    border-radius: 20px;

    background: #201317;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.07
        );
}


.result-icon {

    width: 55px;
    height: 55px;

    margin: 0 auto 12px;

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

    border-radius: 50%;

    background: #513044;

    font-size: 28px;
}


.result-card h2 {

    margin: 0 0 10px;
}


#booking-info {

    color: #c9b9be;

    line-height: 1.7;
}


/* ========================================================= */
/* ADMIN */
/* ========================================================= */

.admin-actions {

    margin-bottom: 24px;
}


.appointment-list {

    display: flex;

    flex-direction: column;

    gap: 10px;
}


.appointment-card {

    padding: 16px;

    border-radius: 16px;

    background: #241419;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.07
        );

    transition: 0.15s;
}


.appointment-card:active {

    transform: scale(0.985);
}


.appointment-date {

    font-size: 15px;

    color: #b99fa7;
}


.appointment-time {

    margin-top: 4px;

    font-size: 20px;

    font-weight: 700;
}


.appointment-client {

    margin-top: 9px;

    color: #d5c7cc;

    font-size: 14px;
}


/* ========================================================= */
/* ADMIN FORM */
/* ========================================================= */

.admin-form,
.details-card {

    margin-top: 20px;

    padding: 18px;

    border-radius: 18px;

    background: #211418;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.07
        );
}


.admin-form label {

    display: block;

    margin-top: 14px;
    margin-bottom: 7px;

    color: #bdaab0;

    font-size: 14px;
}


.admin-form input {

    width: 100%;

    padding: 14px;

    border: none;

    border-radius: 12px;

    background: #120d0f;

    color: #ffffff;

    outline: none;
}


/* ========================================================= */
/* DETAILS */
/* ========================================================= */

#appointment-info {

    margin-bottom: 15px;

    line-height: 1.8;

    color: #d8cbd0;
}


/* ========================================================= */
/* LOADING */
/* ========================================================= */

#loading {

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 15px;
}


.loader {

    width: 38px;
    height: 38px;

    border:
        3px solid
        rgba(
            255,
            255,
            255,
            0.15
        );

    border-top-color: #9a4561;

    border-radius: 50%;

    animation:
        spin 0.8s linear infinite;
}


.loading-text {

    color: #a9959b;
}


@keyframes spin {

    to {
        transform: rotate(360deg);
    }
}


/* ========================================================= */
/* MOBILE */
/* ========================================================= */

@media (max-width: 380px) {

    .date-grid {

        grid-template-columns:
            1fr;
    }

    .time-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}
