* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f0f1f3;

    color: #222;

    min-height: 100vh;
}


button,
select {

    font-family: inherit;

}


/* =================================
   CONTAINER
================================= */

.container {

    width: 100%;

    max-width: 1100px;

    margin: 0 auto;

    padding:
        40px 20px 60px;

}


/* =================================
   HEADER
================================= */

.header {

    text-align: center;

    margin-bottom: 30px;

}


.header-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.header-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}


.header h1 {

    font-size: 30px;

    font-weight: 700;

    margin-bottom: 8px;

}


.header p {

    color: #777;

    font-size: 15px;

}


/* =================================
   FILTER CARD
================================= */

.filter-card {

    background: #fff;

    border-radius: 14px;

    padding: 25px;

    margin-bottom: 25px;

    box-shadow:
        0 4px 18px
        rgba(0, 0, 0, 0.05);

}


.form-group {

    margin-bottom: 18px;

}


.form-group:last-child {

    margin-bottom: 0;

}


.form-group label {

    display: block;

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 8px;

}


.form-group select {

    width: 100%;

    height: 46px;

    padding:
        0 14px;

    border:
        1px solid #ddd;

    border-radius: 8px;

    background: #fff;

    font-size: 15px;

    color: #222;

    cursor: pointer;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;

}


.form-group select:focus {

    outline: none;

    border-color: #555;

    box-shadow:
        0 0 0 3px
        rgba(0, 0, 0, 0.05);

}


.form-group select:disabled {

    background: #f2f2f2;

    color: #999;

    cursor: not-allowed;

}


/* =================================
   LOADING
================================= */

.loading {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 30px;

    color: #777;

}


.loading-spinner {

    width: 18px;

    height: 18px;

    border:
        2px solid #ddd;

    border-top-color: #333;

    border-radius: 50%;

    animation:
        spin 0.8s linear infinite;

}


@keyframes spin {

    to {

        transform:
            rotate(360deg);

    }

}


/* =================================
   MENU CONTAINER
================================= */

.menu-container {

    width: 100%;

}


/* =================================
   MENU CARD
================================= */

.menu-card {

    background: #fff;

    border-radius: 14px;

    padding: 24px;

    margin-bottom: 20px;

    box-shadow:
        0 4px 18px
        rgba(0, 0, 0, 0.05);

}


/* =================================
   MENU HEADER
================================= */

.menu-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-bottom: 18px;

    margin-bottom: 20px;

    border-bottom:
        1px solid #eee;

}


.restaurant-info {

    min-width: 0;

}


.restaurant-name {

    font-size: 22px;

    font-weight: 700;

    margin-bottom: 5px;

}


.restaurant-location {

    font-size: 13px;

    color: #777;

}


.menu-price {

    flex-shrink: 0;

    font-size: 20px;

    font-weight: 700;

    white-space: nowrap;

}


/* =================================
   MENU COLUMNS
================================= */

.menu-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
}


.menu-column {

    display: flex;

    flex-direction: column;

    min-width: 0;

}


.menu-column + .menu-column {

    border-left:
        1px solid #e5e5e5;

}


/* =================================
   LANGUAGE HEADER
================================= */

.menu-language {

    display: flex;

    align-items: center;

    padding:
        13px 16px;

    background: #f8f8f8;

    border-bottom:
        1px solid #e5e5e5;

    font-size: 15px;

    font-weight: 700;

}


/* =================================
   MENU CONTENT
================================= */

.menu-content {

    padding:
        18px 16px;

    font-size: 15px;

    line-height: 1.8;

    min-height: 150px;

    word-break: break-word;

    overflow-wrap: anywhere;

}


/* =================================
   COPY BUTTON
================================= */

.copy-btn {
    margin: 0 16px 16px;
    width: calc(100% - 32px);
    margin-top: auto;
    padding: 11px 14px;
    border: none;
    border-radius: 8px;
    background: #222;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}


.copy-btn:hover {

    opacity: 0.82;

}
#backToTop {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background: #222;
    color: white;

    font-size: 25px;
    font-weight: bold;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    transform: translateY(20px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;

    z-index: 999999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background: #444;
}

.copy-btn:active {

    transform:
        scale(0.98);

}



/* =================================
   DESCRIPTION
================================= */

.menu-description {

    margin-top: 18px;

    padding:
        14px 16px;

    background: #fafafa;

    border-radius: 8px;

    color: #666;

    font-size: 14px;

    line-height: 1.6;

}


/* =================================
   EMPTY
================================= */

.empty {

    background: #fff;

    border-radius: 14px;

    padding:
        65px 20px;

    text-align: center;

    color: #777;

    box-shadow:
        0 4px 18px
        rgba(0, 0, 0, 0.04);

}


.empty-icon {

    font-size: 46px;

    margin-bottom: 15px;

}


.empty p {

    font-size: 15px;

}


/* =================================
   TOAST
================================= */

.toast {

    position: fixed;

    left: 50%;

    bottom: 50px;

    transform:
        translate(-50%, 100px);

    background: #222;

    color: #fff;

    padding:
        12px 20px;

    border-radius: 8px;

    font-size: 14px;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.25s,
        transform 0.25s;

    z-index: 9999;

}


.toast.show {

    opacity: 1;

    transform:
        translate(-50%, 0);

}


/* =================================
   MOBILE
================================= */

@media (max-width: 700px) {


    .container {

        padding:
            25px 12px 40px;

    }


    .header {

        margin-bottom: 22px;

    }


    .header h1 {

        font-size: 25px;

    }


    .filter-card {

        padding: 18px;

    }


    .menu-card {

        padding: 16px;

    }


    .menu-header {

        align-items: flex-start;

    }


    .restaurant-name {

        font-size: 19px;

    }


    .menu-price {

        font-size: 17px;

    }


    /*
       Mobile:
       chuyển 2 cột thành 1 cột
    */

    .menu-columns {

        grid-template-columns: 1fr;

    }


    .menu-column + .menu-column {

        border-left: none;

        border-top:
            1px solid #e5e5e5;

    }


}


@media (max-width: 450px) {


    .menu-header {

        flex-direction: column;

        gap: 8px;

    }


    .menu-price {

        font-size: 18px;

    }


}

/* ========================================
   LOGIN PAGE
======================================== */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;

    background: #f5f6f8;

    box-sizing: border-box;
}


/* ========================================
   LOGIN CARD
======================================== */

.login-card {

    width: 100%;

    max-width: 480px;

    padding: 50px 45px;

    background: #ffffff;

    border-radius: 20px;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.10);

    box-sizing: border-box;

}


/* ========================================
   LOGIN LOGO
======================================== */

.login-logo {

    width: 110px;

    height: 110px;

    margin: 0 auto 25px;

    display: flex;

    align-items: center;

    justify-content: center;

}


.login-logo img {

    width: 110px;

    height: 110px;

    object-fit: contain;

    display: block;

}


/* ========================================
   LOGIN TITLE
======================================== */

.login-card h1 {

    text-align: center;

    font-size: 30px;

    line-height: 1.3;

    font-weight: 700;

    color: #222;

    margin-bottom: 10px;

}


/* ========================================
   SUBTITLE
======================================== */

.login-subtitle {

    text-align: center;

    font-size: 15px;

    color: #777;

    margin-bottom: 35px;

    line-height: 1.5;

}


/* ========================================
   LOGIN FORM
======================================== */

#login-form {

    width: 100%;

}


/* ========================================
   LOGIN GROUP
======================================== */

.login-group {

    margin-bottom: 20px;

}


.login-group label {

    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 700;

    color: #333;

}


/* ========================================
   INPUT
======================================== */

.login-group input {

    width: 100%;

    height: 54px;

    padding:
        0 16px;

    border:
        1px solid #ddd;

    border-radius: 10px;

    background: #fff;

    color: #222;

    font-family: inherit;

    font-size: 16px;

    outline: none;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}


.login-group input::placeholder {

    color: #aaa;

}


.login-group input:focus {

    border-color: #555;

    box-shadow:
        0 0 0 3px
        rgba(0, 0, 0, 0.06);

}


/* ========================================
   LOGIN BUTTON
======================================== */

.login-btn {

    width: 100%;

    height: 54px;

    margin-top: 5px;

    padding:
        0 20px;

    border: none;

    border-radius: 10px;

    background: #222;

    color: #fff;

    font-family: inherit;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    transition:
        opacity 0.2s ease,
        transform 0.15s ease,
        background 0.2s ease;

}


.login-btn:hover {

    background: #333;

}


.login-btn:active {

    transform:
        scale(0.98);

}


.login-btn:disabled {

    opacity: 0.6;

    cursor: not-allowed;

}


/* ========================================
   LOGIN ERROR
======================================== */

.login-error {

    min-height: 20px;

    margin-top: 15px;

    text-align: center;

    color: #d93025;

    font-size: 14px;

    line-height: 1.5;

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    .login-page {

        padding:
            25px 15px;

    }


    .login-card {

        max-width: none;

        padding:
            38px 25px;

        border-radius: 16px;

    }


    .login-logo {

        width: 90px;

        height: 90px;

        margin-bottom: 20px;

    }


    .login-logo img {

        width: 90px;

        height: 90px;

    }


    .login-card h1 {

        font-size: 25px;

    }


    .login-subtitle {

        font-size: 14px;

        margin-bottom: 28px;

    }


    .login-group input {

        height: 52px;

    }


    .login-btn {

        height: 52px;

    }

}


/* ========================================
   VERY SMALL SCREEN
======================================== */

@media (max-width: 380px) {

    .login-card {

        padding:
            30px 20px;

    }


    .login-logo,
    .login-logo img {

        width: 80px;

        height: 80px;

    }


    .login-card h1 {

        font-size: 23px;

    }

}


/* =================================
   APP
================================= */

.app {

    display: none;

}


/* =================================
   MOBILE LOGIN
================================= */

@media (max-width: 500px) {

    .login-card {

        padding: 28px 22px;

    }

}

.menu-price {
    flex-shrink: 0;
    text-align: right;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.price-original {
    font-size: 20px;
    font-weight: 700;
}

.price-vat-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 6px;
}

.price-vat {
    margin-top: 5px;
    font-size: 16px;
    font-weight: 500;
    color: red;
}

.copy-price-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.copy-price-btn:hover {
    background: #f2f2f2;
    border-color: #bbb;
}

.copy-price-btn:active {
    transform: scale(0.92);
}