/* 
    ORION BAHIAS ULTRA TOP - CENTER OF COMMAND
    Focus: High Impact Visuals, Industrial Aesthetics, Real-time pulses
*/

.bahias-ultra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 3rem;
    padding: 4rem;
    width: 100%;
}

.bahia-ultra-card {
    background: #ffffff;
    border-radius: 2.5rem;
    border: 1px solid #e2e8f0;
    padding: 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 550px; /* Force space for buttons */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 45px -15px rgba(0, 0, 0, 0.1);
}

.bahia-ultra-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

/* Status Pulsating Indicators */
.status-indicator-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.status-pulsating {
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.bahia-type-icon {
    font-size: 5rem;
    color: #3b82f6;
    opacity: 0.08;
    position: absolute;
    right: 2rem;
    top: 2rem;
}

.bahia-ultra-header {
    margin-bottom: 2rem;
}

.bahia-ultra-header h3 {
    font-size: 1.75rem;
    font-weight: 900;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.02em;
}

.bahia-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 0.75rem;
    border: 1px solid rgba(0,0,0,0.03);
}

/* State Specific Badges */
.badge-disponible { background: #dcfce7; color: #15803d; }
.badge-en_servicio { background: #dbeafe; color: #1d4ed8; }
.badge-mantenimiento { background: #fef3c7; color: #b45309; }
.badge-limpieza { background: #e0f2fe; color: #0369a1; }
.badge-bloqueada { background: #fee2e2; color: #b91c1c; }

.bahia-active-info {
    background: #f8fafc;
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px dashed #cbd5e1;
}

.active-case-code {
    font-size: 0.85rem;
    font-weight: 900;
    color: #3b82f6;
    display: block;
    margin-bottom: 0.5rem;
}

.bahia-footer-metrics {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 2rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 900;
    color: #334155;
}

/* ACTION BAR - GUARANTEED VISIBILITY */
.card-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 0.8rem;
    z-index: 1000;
}

.card-actions button {
    cursor: pointer;
    transition: all 0.2s;
}

.card-actions button:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Modals */
.bahia-manage-modal {
    width: 550px;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.4);
    background: #ffffff;
}
