/* ============================================================
   BASE GENERAL
============================================================ */

.nereida-obrador-body {
    font-family: Arial, sans-serif;
    background: #f4f7f6;
    margin: 0;
    padding: 0;
    color: #2c3e50;
}

.nereida-app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================================
   CABECERA (CONTRASTE ALTO)
============================================================ */

.nereida-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #E2A7B1;
    color: BLACK;
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.nereida-topbar h1 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 0.5px;
    color: #ffffff !important;
}

/* ============================================================
   BOTONES NAVEGACION
============================================================ */

.nereida-nav-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nereida-nav-tabs button,
.nereida-nav-tabs .tab-btn,
.logout-btn {
    background: #5c4333;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: background 0.2s;
}

.nereida-nav-tabs button:hover,
.nereida-nav-tabs .tab-btn:hover,
.logout-btn:hover {
    background: #735541;
}

.nereida-nav-tabs .active {
    background: #a67c52 !important;
    color: white !important;
}

.nereida-btn-lista {
    background: #2980b9 !important;
    color: white !important;
}

#nereida-btn-nuevo-pedido {
    background: #27ae60 !important;
    color: #fff !important;
}

/* ============================================================
   CALENDARIO
============================================================ */

#nereida-calendario-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

#nereida-calendario-container h2 {
    margin-top: 0;
    color: #3b2b22;
}

#nereida-calendario {
    margin-top: 15px;
}

/* FULLCALENDAR */

.fc {
    background: #E2A7B1;
    border-radius: 10px;
}

.fc-toolbar-title {
    color: #3b2b22 !important;
    font-weight: 700;
}

.fc-daygrid-day {
    min-height: 120px;
}

.fc-daygrid-day-number {
    color: #2c3e50 !important;
    font-weight: bold;
    font-size: 14px;
}

/* ============================================================
   EVENTOS DEL CALENDARIO (MÁXIMA LEGIBILIDAD)
============================================================ */

.fc-event,  
.fc-daygrid-event,  
.fc-event-main {
    border-radius: 6px !important;
    padding: 6px 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.fc-event .fc-event-title,
.fc-event-main {
    color: #ffffff !important;
}

/* ============================================================
   COLORES ESPECÍFICOS POR ESTADO DE OBRADOR (ESTADO.PHP)
============================================================ */

/* 1. Pendiente producción (#f0ad4e) */
.fc-event.estado-pendiente {
    background-color: #f0ad4e !important;
}

/* 2. En preparación (#f39c12) */
.fc-event.estado-preparando {
    background-color: #8e44ad !important;
}

/* 3. Listo para recoger (#5cb85c) */
.fc-event.estado-listo {
    background-color: #5cb85c !important;
}

/* 4. Entregado (#337ab7) */
.fc-event.estado-entregado {
    background-color: #337ab7 !important;
}

/* ============================================================
   FICHA PEDIDO MODAL
============================================================ */

#nereida-ficha-pedido {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.6);
    z-index: 9999;
    display: none;
}

.nereida-modal-contenido {
    background: white;
    width: 90%;
    max-width: 600px;
    margin: 60px auto;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

#nereida-cerrar-ficha {
    position: absolute;
    right: 15px;
    top: 15px;
    border: none;
    background: #c0392b;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

/* ============================================================
   DATOS PEDIDO Y ESTADOS
============================================================ */

#nereida-detalle-pedido h2 {
    color: #3b2b22;
}

#nereida-detalle-pedido h3 {
    color: #a67c52;
    margin-top: 20px;
}

#nereida-cambiar-estado {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #d8c2ab;
    width: 70%;
    font-size: 14px;
}

#nereida-guardar-estado {
    margin-left: 10px;
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

/* ============================================================
   LOGIN
============================================================ */

.login-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    width: 100%;
    max-width: 350px;
    text-align: center;
    margin: 100px auto;
}

.login-box h2 {
    color: #3b2b22;
}

.login-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #d8c2ab;
    border-radius: 5px;
    box-sizing: border-box;
}

.login-box button {
    width: 100%;
    padding: 10px;
    background: #3b2b22;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media(max-width: 800px) {
    .nereida-topbar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .nereida-nav-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    #nereida-ficha-pedido .nereida-modal-contenido {
        width: 95%;
        margin-top: 20px;
    }
}