body {
    background-color: #f4f6f9;
}

.card {
    border: none;
    border-radius: 10px;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/*
 * Archivo CSS Limpio y Optimizado (style.css)
 * Compatible con Bootstrap y Tailwind CDN.
 */

body {
    font-family: 'Mulish', 'Inter', sans-serif;
    background-color: #f4f6f9; /* Gris muy suave para resaltar las tarjetas */
}

/* ---------------------------------------------------------------------- */
/* ESTILOS DE PARKING / MAPA */
/* ---------------------------------------------------------------------- */

/* Alineación del ícono del auto y el texto */
.flex-icon-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Efectos hover para las cajas editables del mapa */
.editable-box {
    border: 2px solid transparent;
    transition: border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.editable-box:hover {
    border-color: #4CAF50; /* Borde verde al pasar el ratón */
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.editing-active {
    border: 2px solid #2196F3 !important;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

/* ---------------------------------------------------------------------- */
/* MODAL PERSONALIZADO (Solo para el Mapa de Boxes, no afecta a Bootstrap) */
/* ---------------------------------------------------------------------- */

#boxDetailModal {
    display: none; 
    position: fixed; 
    z-index: 1050; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
    backdrop-filter: blur(3px);
}

#boxDetailModal .modal-content {
    background-color: #fefefe;
    margin: 10vh auto; 
    padding: 24px;
    border: none;
    border-radius: 12px;
    width: 90%; 
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

#boxDetailModal .close-button {
    color: #9ca3af;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    transition: color 0.2s;
}

#boxDetailModal .close-button:hover,
#boxDetailModal .close-button:focus {
    color: #1f2937;
    text-decoration: none;
    cursor: pointer;
}

#boxDetailModal .confirm-button { 
    background-color: #4CAF50; 
    color: white; 
    padding: 10px 16px; 
    border: none; 
    border-radius: 6px;
    cursor: pointer; 
    font-weight: 600;
    transition: background-color 0.2s;
}
#boxDetailModal .confirm-button:hover { background-color: #45a049; }

#boxDetailModal .cancel-button { 
    background-color: #f44336; 
    color: white; 
    padding: 10px 16px; 
    border: none; 
    border-radius: 6px;
    cursor: pointer; 
    margin-left: 10px;
    font-weight: 600;
    transition: background-color 0.2s;
}
#boxDetailModal .cancel-button:hover { background-color: #da190b; }

#boxDetailModal .message-area { 
    margin-top: 15px; 
    font-weight: 600; 
    font-size: 0.9rem;
}

.close-button {
    color: #9ca3af;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    transition: color 0.2s;
}

.close-button:hover,
.close-button:focus {
    color: #1f2937;
    text-decoration: none;
    cursor: pointer;
}

.confirm-button { 
    background-color: #4CAF50; 
    color: white; 
    padding: 10px 16px; 
    border: none; 
    border-radius: 6px;
    cursor: pointer; 
    font-weight: 600;
    transition: background-color 0.2s;
}
.confirm-button:hover { background-color: #45a049; }

.cancel-button { 
    background-color: #f44336; 
    color: white; 
    padding: 10px 16px; 
    border: none; 
    border-radius: 6px;
    cursor: pointer; 
    margin-left: 10px;
    font-weight: 600;
    transition: background-color 0.2s;
}
.cancel-button:hover { background-color: #da190b; }

.message-area { 
    margin-top: 15px; 
    font-weight: 600; 
    font-size: 0.9rem;
}

/* ---------------------------------------------------------------------- */
/* ESTILOS DE ESTADO (Para la pantalla HMI / TV gigante) */
/* ---------------------------------------------------------------------- */

.status-text {
    font-size: 4.5rem;
    font-weight: 900;
    text-align: center;
    padding: 40px 60px;
    border-radius: 16px;
    white-space: nowrap;
    transition: all 0.5s ease-in-out;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.status-on { 
    color: #ffffff;
    background-color: #22c55e;
    border: 4px solid #15803d;
    box-shadow: 0 20px 25px -5px rgba(34, 197, 94, 0.4); 
}

.status-off { 
    color: #ffffff;
    background-color: #ef4444;
    border: 4px solid #b91c1c;
    box-shadow: 0 20px 25px -5px rgba(239, 68, 68, 0.4); 
}