/* ============================================================
   GLOBAL RESET / BASE PAGE
============================================================ */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100% !important;
    overflow-x: hidden !important;
    background: #f5f5f5;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

/* ============================================================
   MAIN CONTENT WRAPPER
============================================================ */

.content {
    padding: 30px 40px;
    max-width: 1400px;
    width: 100%;
    margin: auto;
    background: white;
    margin-top: 80px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* ============================================================
   TOP NAVIGATION (FIXED)
============================================================ */

.centered-nav {
    background: #ffffff;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    gap: 28px;
    border-bottom: 1px solid #ccc;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 5000;
}

.centered-nav a {
    font-size: 28px;
    color: #000000;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    white-space: nowrap;
}

.centered-nav a:hover {
    text-decoration: underline;
}

.centered-nav a.active {
    border: 1px solid #999;
    background: #f5f5f5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.20);
}

/* ============================================================
   SETTINGS PAGE
============================================================ */

.settings-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.save-btn, .update-btn, .reset-btn-yellow {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    color: white;
}

.save-btn {
    background: #4CAF50;
}

.update-btn {
    background: #0b4fa8;
}

.reset-btn-yellow {
    background: #f0ad4e;
}

.reset-btn-yellow:hover {
    background: #ec971f;
}

.settings-field {
    margin-bottom: 15px;
}

.settings-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.price-input {
    width: 80px;
    padding: 6px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* ============================================================
   DATE ROWS + CALENDAR POPUP
============================================================ */

.date-row {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}

.date-input {
    width: 140px;
    padding: 6px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    cursor: pointer;
}

/* CALENDAR POPUP */

.calendar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.calendar-window {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.calendar-window input[type=date] {
    padding: 6px;
    font-size: 16px;
}

.calendar-close {
    margin-top: 15px;
    padding: 8px 15px;
    border: none;
    background: #666;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

/* ============================================================
   RESPONSIVE MOBILE ADJUSTMENTS
============================================================ */

@media (max-width: 900px) {

    .content {
        padding: 20px;
        margin-top: 80px !important;
    }

    .date-row {
        flex-direction: column;
        gap: 15px;
    }
}
