html,
body {
    height: 100%;
    margin: 0;
    background: #fff;
    font-family: Arial, sans-serif;
}

body {
    position: relative;
}

main {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}


/* ==========================
   Shared Elements
   ========================== */

.logo {
    width: 420px;
    max-width: 85vw;
    height: auto;
    display: block;
}

footer {
    flex: 0 0 clamp(28px, 4vh, 45px);
    padding-bottom: clamp(4px, 1vh, 12px);

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

    color: #8b8b8b;
    font-size: 0.82rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    user-select: none;
}

footer .divider {
    opacity: 0.4;
}


/* ==========================
   Login
   ========================== */

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-logo {
    width: 180px;
    max-width: 60vw;
    margin-bottom: 35px;
}

.login-page h2 {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 25px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form input {
    width: 220px;
    padding: 12px 15px;

    border: 1px solid #ddd;
    border-radius: 8px;

    font-size: 1rem;
}

.login-form button,
.admin-button {
    background: #222;
    color: #fff;

    border: none;
    border-radius: 8px;

    cursor: pointer;
}

.login-form button {
    padding: 12px;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.login-form button:hover,
.admin-button:hover {
    background: #444;
}


/* ==========================
   Admin Layout
   ========================== */

.admin-container {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 40px 20px;

    background: #fafafa;
}

.admin-logo {
    width: 120px;
    margin-bottom: 30px;
}

.admin-nav {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

.admin-nav a {
    color: #555;
    text-decoration: none;

    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-card {
    width: 100%;
    max-width: 500px;

    padding: 35px;

    background: #fff;
    border-radius: 16px;

    box-shadow: 0 10px 30px rgba(0,0,0,.08);

    text-align: center;
}

.admin-card.wide {
    max-width: 900px;
}

.admin-card h2 {
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* ==========================
   Upload
   ========================== */

.upload-box {
    display: block;

    margin: 30px 0;
    padding: 30px;

    border: 2px dashed #ddd;
    border-radius: 12px;

    cursor: pointer;
}

.upload-box input {
    display: none;
}

.upload-box span {
    color: #555;
    font-size: 0.95rem;
}

.upload-box:hover {
    border-color: #999;
    background: #fafafa;
}

.admin-button {
    padding: 14px 35px;
}


/* ==========================
   Admin Menu
   ========================== */

.admin-menu-list,
.menu-list,
.admin-language-list {
    display: flex;
    flex-direction: column;
}

.admin-menu-list {
    gap: 25px;
}

.menu-list {
    gap: 15px;
}

.admin-language-list {
    gap: 12px;
}

.admin-menu-card {
    background: #fafafa;

    border-radius: 14px;
    border: 1px solid #eee;

    padding: 25px;
}

.admin-menu-card h3 {
    margin-top: 0;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.admin-language-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #fff;

    padding: 15px 18px;

    border-radius: 10px;
    border: 1px solid #eee;
}

.language-name {
    color: #555;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #f7f7f7;

    padding: 15px;
    border-radius: 10px;
}

.menu-item a {
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
}

.menu-actions,
.restaurant-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-actions form,
.restaurant-actions form {
    margin: 0;
}

.empty-menu {
    color: #999;
    font-size: 0.9rem;
    padding: 10px 0;
}


/* ==========================
   Buttons
   ========================== */

.action-button,
.view-button,
.toggle-button,
.delete-button {
    padding: 10px 18px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition: all .2s ease;
}

.view-button,
.toggle-button {
    background: transparent;
    border: 1px solid #999;
    color: #555;
}

.view-button:hover,
.toggle-button:hover {
    background: #555;
    color: #fff;
}

.delete-button {
    background: transparent;
    border: 1px solid #c55;
    color: #c55;
}

.delete-button:hover {
    background: #c55;
    color: #fff;
}


/* ==========================
   Messages & Progress
   ========================== */

.flash {
    margin: 20px 0;
    padding: 12px 15px;

    border-radius: 8px;

    font-size: 0.9rem;
}

.flash.success {
    background: #edf7ed;
    color: #2e7d32;
}

.flash.error {
    background: #fdecea;
    color: #c62828;
}

.progress-container {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 12px;

    background: #eee;

    border-radius: 10px;
    overflow: hidden;
}

#progress-fill {
    width: 0%;
    height: 100%;

    background: #222;

    transition: width .2s ease;
}

#progress-text {
    margin-top: 8px;

    font-size: 0.85rem;
    color: #777;
}

#upload-message {
    margin-top: 20px;
}


/* ==========================
   Home
   ========================== */

.site-body {
    min-height: 100dvh;

    display: flex;
    flex-direction: column;
}

.site-body main {
    flex:1;
    min-height:0;
}



.home-container {
    min-height: calc(100vh - 80px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.website-button {
    margin-top: 40px;

    display: inline-block;

    padding: 14px 35px;

    border-radius: 30px;
    border: 1px solid #222;

    background: transparent;
    color: #222;

    text-decoration: none;

    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    transition: all .3s ease;
}

.website-button:hover {
    background: #222;
    color: #fff;
}


/* ==========================
   Public Menu
   ========================== */

.menu-container {
    max-width: 1100px;

    margin: 0 auto;
    padding: 20px;
}

.restaurant-title {
    text-align: center;

    margin-bottom: 20px;

    font-size: 2rem;
}

.language-toggle,
.language-switch {
    display: flex;
    justify-content: center;

    gap: 10px;
    margin-bottom: 20px;
}

.language-btn,
.lang {
    border: none;

    padding: 10px 25px;

    border-radius: 30px;

    background: #eee;
    color: #333;

    cursor: pointer;

    transition: .2s;

    font-family: "Cormorant Garamond", serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.language-btn:hover {
    background: #ddd;
}

.language-btn.active,
.lang.active {
    background: #222;
    color: #fff;
}


/* ==========================
   Menu Book
   ========================== */

.book-container {
    width: 95%;
    max-width: 900px;

    margin: auto;
    padding: 20px;

    background: #fff;

    border-radius: 18px;

    box-shadow: 0 15px 40px rgba(0,0,0,.12);
}

.page-controls {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 20px;

    margin: 20px;
}

.page-controls button {
    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background: #222;
    color: #fff;

    cursor: pointer;
}