* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* MAIN */
.main-content {
    flex: 1;
    padding: 20px;
}

/* CALENDAR */
.calendar-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

/* SLOTS */
.slot {
    padding: 10px 15px;
    border-radius: 8px;
    background: #22c55e;
    color: white;
    cursor: pointer;
}

.slot.occupied {
    background: #ef4444;
    cursor: not-allowed;
}

/* EMBED MODE */
.embed-mode .sidebar {
    display: none;
}

.embed-mode .topbar {
    flex-direction: column;
    align-items: flex-start;
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);

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

    z-index: 999;
}

.hidden {
    display: none;
}


.modal-content {
    background: #fff;
    width: 90%;
    max-width: 420px;
    border-radius: 16px;
    padding: 24px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, .2);
    animation: modalShow .2s ease;
}

.modal-content h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

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

.modal-content input {
    height: 48px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 15px;
}

#formReserva button {
    height: 48px;
    border: none;
    border-radius: 10px;
    background: #0d6efd;
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: .2s;
}

#formReserva button:hover {
    opacity: .9;
}

.reserva-modal {
    max-width: 650px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;
}

.close-btn {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

#slotsModal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.slot.selected {
    outline: 3px solid #111827;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reserva-modal {
    width: 100%;
    max-width: 720px;
    border-radius: 20px;
    padding: 30px;
}

#fechaReserva {
    width: 220px;
}

#slotsModal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.slot {
    min-width: 150px;
    text-align: center;
    font-weight: 600;
    transition: .2s;
}

.slot:hover {
    transform: translateY(-2px);
}

.slot.selected {
    outline: 3px solid #111827;
    transform: scale(1.03);
}

#formReserva {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

#formReserva button {
    grid-column: span 2;
}

#nombre,
#email {
    width: 100%;
}

.close-btn {
    width: 40px;
    height: 40px;

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

    border-radius: 50%;
    transition: .2s;
}

.close-btn:hover {
    background: #f3f4f6;
}

.embed-mode body {
    background: transparent;
}

.embed-mode .main-content {
    padding: 0;
}

.embed-mode .topbar {
    margin-bottom: 10px;
}

.embed-mode .calendar-section {
    border-radius: 0;
    box-shadow: none;
}

.embed-mode .fc-toolbar-title {
    font-size: 22px;
}

@keyframes modalShow {
    from {
        transform: scale(.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

}