
        * {
            box-sizing: border-box;
        }

        html,
        body {
            margin: 0;
            padding: 0;
            min-height: 100%;
            font-family: 'Nunito', sans-serif;
            background: #f4f7f5;
            color: #26352d;
        }

        body {
            min-height: 100vh;
        }

        button,
        input,
        select {
            font-family: inherit;
        }

        button {
            cursor: pointer;
        }

        /* =========================================================
           LOGIN
           ========================================================= */

        .login-screen {
            position: fixed;
            inset: 0;
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;

            background:
                linear-gradient(
                    rgba(244, 248, 245, 0.82),
                    rgba(244, 248, 245, 0.92)
                ),
                url('movelD.png') center / cover no-repeat;
        }

        .login-card {
            width: min(420px, 100%);
            padding: 38px 34px 34px;
            background: rgba(255, 255, 255, 0.96);
            border-radius: 22px;

            box-shadow:
                0 20px 60px rgba(32, 59, 44, 0.18),
                0 3px 12px rgba(32, 59, 44, 0.08);

            text-align: center;
        }

        .login-logo {
            width: 180px;
            max-width: 75%;
            height: auto;
            margin: 0 auto 22px;
            display: block;
        }

        .login-title {
            margin: 0 0 5px;
            font-size: 25px;
            font-weight: 900;
            color: #244f38;
        }

        .login-subtitle {
            margin: 0 0 26px;
            color: #6a786f;
            font-size: 14px;
        }

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

        .field {
            text-align: left;
        }

        .field label {
            display: block;
            margin: 0 0 6px 4px;
            color: #405047;
            font-size: 14px;
            font-weight: 700;
        }

        .field input {
            width: 100%;
            height: 48px;
            padding: 0 15px;
            border: 1px solid #d7e0da;
            border-radius: 12px;
            background: #fff;
            color: #26352d;
            font-size: 15px;
            outline: none;

            transition:
                border-color .2s,
                box-shadow .2s;
        }

        .field input:focus {
            border-color: #4b9367;
            box-shadow:
                0 0 0 3px rgba(75, 147, 103, .12);
        }

        .login-button {
            width: 100%;
            height: 50px;
            margin-top: 5px;
            border: 0;
            border-radius: 12px;
            background: #347b51;
            color: #fff;
            font-size: 16px;
            font-weight: 800;

            transition:
                background .2s,
                transform .1s;
        }

        .login-button:hover {
            background: #286842;
        }

        .login-button:active {
            transform: translateY(1px);
        }

        .login-button:disabled {
            opacity: .65;
            cursor: wait;
        }

        .login-error {
            display: none;
            margin-top: 16px;
            padding: 11px 13px;
            border-radius: 10px;
            background: #fff0f0;
            border: 1px solid #f1cccc;
            color: #a52f2f;
            font-size: 14px;
            font-weight: 700;
        }

        /* =========================================================
           APP
           ========================================================= */

        #app {
            display: none;
            min-height: 100vh;
        }

        .topbar {
            position: sticky;
            top: 0;
            z-index: 50;

            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;

            min-height: 72px;
            padding: 10px 28px;

            background: rgba(255, 255, 255, .97);
            border-bottom: 1px solid #e1e9e3;

            box-shadow:
                0 3px 15px rgba(35, 66, 48, .06);
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .brand img {
            width: 130px;
            height: auto;
            display: block;
        }

        .user-area {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .user-name {
            color: #385043;
            font-size: 14px;
            font-weight: 800;
        }

        .user-type {
            color: #819087;
            font-size: 12px;
            font-weight: 700;
        }

        .logout-button {
            border: 1px solid #d8e1db;
            border-radius: 10px;
            padding: 9px 14px;
            background: #fff;
            color: #496053;
            font-weight: 800;

            transition: background .2s;
        }

        .logout-button:hover {
            background: #f1f5f2;
        }

        /* =========================================================
           MAIN
           ========================================================= */

        .page {
            width: min(1180px, calc(100% - 30px));
            margin: 0 auto;
            padding: 28px 0 45px;
        }

        .welcome {
            margin-bottom: 22px;
        }

        .welcome h1 {
            margin: 0;
            color: #244f38;
            font-size: clamp(23px, 4vw, 31px);
            font-weight: 900;
        }

        .welcome p {
            margin: 5px 0 0;
            color: #718077;
            font-size: 14px;
        }

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

        .admin-notice {
            display: none;
            margin-bottom: 18px;
            padding: 13px 16px;

            background: #fff9e9;
            border: 1px solid #eadba8;
            border-radius: 12px;

            color: #765f20;
            font-size: 13px;
            font-weight: 800;
        }

        .admin-notice strong {
            color: #604b0d;
        }

        /* =========================================================
           CONTROLS
           ========================================================= */

        .controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 18px;
        }

        .controls select {
            min-width: 155px;
            height: 44px;
            padding: 0 14px;

            border: 1px solid #d6e0d9;
            border-radius: 11px;

            background: #fff;
            color: #30443a;

            font-size: 15px;
            font-weight: 800;
            outline: none;
        }

        .controls select:focus {
            border-color: #57936e;
            box-shadow: 0 0 0 3px rgba(87, 147, 110, .12);
        }

        /* =========================================================
           CALENDAR
           ========================================================= */

        .calendar-container {
            overflow: hidden;

            background: #fff;
            border: 1px solid #e1e9e3;
            border-radius: 18px;

            box-shadow:
                0 8px 30px rgba(34, 66, 47, .07);
        }

        .calendar-header {
            display: grid;
            grid-template-columns: repeat(7, 1fr);

            background: #347b51;
            color: #fff;
        }

        .weekday {
            padding: 12px 5px;
            text-align: center;
            font-size: 13px;
            font-weight: 900;
        }

        .calendar {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
        }

        .day {
            position: relative;
            min-height: 122px;
            padding: 9px;

            border-right: 1px solid #e7ece8;
            border-bottom: 1px solid #e7ece8;

            background: #fff;

            transition: background .15s;
        }

        .day:nth-child(7n) {
            border-right: 0;
        }

        .day.empty {
            background: #fafcfb;
        }

        .day-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;

            width: 30px;
            height: 30px;
            margin-bottom: 6px;

            border-radius: 50%;

            color: #46584e;
            font-size: 14px;
            font-weight: 900;
        }

        .day.today .day-number {
            background: #e5f2e9;
            color: #287046;
        }

        .day.sunday {
            background: #fbfbfb;
        }

        .day.sunday .day-number {
            color: #a2aaa5;
        }

        .slot-list {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

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

            min-height: 28px;
            padding: 4px 6px;

            border-radius: 7px;

            font-size: 11px;
            font-weight: 900;
            user-select: none;
            text-align: center;
        }

        .slot.available {
            background: #edf7f0;
            color: #31704a;
            cursor: pointer;
        }

        .slot.available:hover {
            background: #dcefe2;
        }

        .slot.reserved {
            background: #e8edf5;
            color: #5b687b;
            cursor: default;
        }

        .slot.blocked {
            background: #f5e7e7;
            color: #9a5151;
            cursor: default;
        }

        .slot.selected {
            background: #347b51;
            color: #fff;
        }

        .slot.disabled {
            background: #f2f3f2;
            color: #a4aaa6;
            cursor: not-allowed;
        }

        /* ADMIN */

        .slot.admin-action {
            cursor: pointer;
        }

        .slot.admin-action:hover {
            filter: brightness(.96);
        }

        .slot.admin-reserved {
            flex-direction: column;
            gap: 1px;
            padding: 5px;
        }

        .slot-admin-main {
            font-weight: 900;
        }

        .slot-admin-user {
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 9px;
            font-weight: 700;
            opacity: .85;
        }

        /* =========================================================
           LEGEND
           ========================================================= */

        .legend {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 16px;
            margin: 18px 0;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 6px;

            color: #65736b;
            font-size: 12px;
            font-weight: 700;
        }

        .legend-color {
            width: 14px;
            height: 14px;
            border-radius: 4px;
        }

        .legend-available {
            background: #edf7f0;
            border: 1px solid #cfe5d6;
        }

        .legend-reserved {
            background: #e8edf5;
            border: 1px solid #d3dbe7;
        }

        .legend-blocked {
            background: #f5e7e7;
            border: 1px solid #ead0d0;
        }

        /* =========================================================
           RESERVATION BAR
           ========================================================= */

        .reservation-bar {
            display: none;
            align-items: center;
            justify-content: space-between;
            gap: 15px;

            margin-top: 20px;
            padding: 15px 18px;

            background: #fff;
            border: 1px solid #dce7df;
            border-radius: 14px;

            box-shadow:
                0 5px 20px rgba(34, 66, 47, .05);
        }

        .reservation-info {
            color: #4a5c51;
            font-size: 14px;
            font-weight: 700;
        }

        .reservation-info strong {
            color: #286a43;
        }

        .confirm-button {
            flex-shrink: 0;

            border: 0;
            border-radius: 10px;
            padding: 11px 18px;

            background: #347b51;
            color: #fff;

            font-size: 14px;
            font-weight: 900;
        }

        .confirm-button:hover {
            background: #286842;
        }

        .confirm-button:disabled {
            opacity: .6;
            cursor: wait;
        }

        /* =========================================================
           INFO CARDS
           ========================================================= */

        .info-section {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 18px;
            margin-top: 24px;
        }

        .info-card {
            overflow: hidden;

            background: #fff;
            border: 1px solid #e1e9e3;
            border-radius: 16px;

            box-shadow:
                0 5px 20px rgba(34, 66, 47, .05);
        }

        .info-card img {
            width: 100%;
            height: 160px;
            display: block;
            object-fit: cover;
        }

        .info-content {
            padding: 16px 18px 18px;
        }

        .info-content h2 {
            margin: 0 0 6px;
            color: #2d513d;
            font-size: 18px;
            font-weight: 900;
        }

        .info-content p {
            margin: 0;
            color: #718077;
            font-size: 13px;
            line-height: 1.6;
        }

        /* =========================================================
           STATUS
           ========================================================= */

        .status-message {
            position: fixed;
            right: 20px;
            bottom: 20px;
            z-index: 200;

            max-width: min(380px, calc(100% - 40px));

            display: none;

            padding: 13px 17px;
            border-radius: 12px;

            background: #263a2e;
            color: #fff;

            box-shadow:
                0 8px 30px rgba(0,0,0,.18);

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

        .status-message.success {
            background: #347b51;
        }

        .status-message.error {
            background: #a53d3d;
        }

        /* =========================================================
           ADMIN CONFIRM MODAL
           ========================================================= */

        .modal-overlay {
            position: fixed;
            inset: 0;
            z-index: 150;

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

            padding: 20px;

            background: rgba(26, 42, 33, .48);
        }

        .modal {
            width: min(430px, 100%);
            padding: 26px;

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

            box-shadow:
                0 20px 60px rgba(0,0,0,.2);
        }

        .modal h2 {
            margin: 0 0 7px;
            color: #2e513e;
            font-size: 21px;
            font-weight: 900;
        }

        .modal p {
            margin: 0 0 18px;
            color: #718077;
            font-size: 14px;
            line-height: 1.5;
        }

        .modal-actions {
            display: flex;
            gap: 10px;
        }

        .modal-action {
            flex: 1;
            min-height: 45px;

            border: 0;
            border-radius: 10px;

            font-size: 14px;
            font-weight: 900;
        }

        .modal-action.cancel {
            background: #eef2ef;
            color: #53635a;
        }

        .modal-action.primary {
            background: #347b51;
            color: #fff;
        }

        .modal-action.danger {
            background: #a53d3d;
            color: #fff;
        }

        /* =========================================================
           RESPONSIVE
           ========================================================= */

        @media (max-width: 800px) {

            .topbar {
                padding: 10px 16px;
            }

            .brand img {
                width: 105px;
            }

            .user-name {
                display: none;
            }

            .page {
                width: min(100% - 16px, 1180px);
                padding-top: 18px;
            }

            .day {
                min-height: 100px;
                padding: 5px;
            }

            .day-number {
                width: 27px;
                height: 27px;
            }

            .slot {
                font-size: 10px;
                min-height: 25px;
                padding: 3px;
            }

            .info-section {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 600px) {

            .topbar {
                min-height: 62px;
            }

            .user-area {
                gap: 6px;
            }

            .user-type {
                display: none;
            }

            .logout-button {
                padding: 7px 10px;
                font-size: 12px;
            }

            .controls {
                gap: 7px;
            }

            .controls select {
                min-width: 0;
                width: 50%;
            }

            .calendar-header .weekday {
                font-size: 10px;
                padding: 9px 2px;
            }

            .day {
                min-height: 82px;
                padding: 3px;
            }

            .day-number {
                width: 23px;
                height: 23px;
                margin-bottom: 3px;
                font-size: 11px;
            }

            .slot-list {
                gap: 3px;
            }

            .slot {
                min-height: 21px;
                border-radius: 5px;
                font-size: 8px;
            }

            .slot-admin-user {
                font-size: 7px;
            }

            .reservation-bar {
                flex-direction: column;
                align-items: stretch;
            }

            .confirm-button {
                width: 100%;
            }

            .legend {
                gap: 10px;
            }

            .modal-actions {
                flex-direction: column;
            }
        }

