/* Estilos PWA ForjApp */
body {
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.brand-logo {
    font-weight: bold;
}

/* Card Improvements */
.card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.card .card-image img {
    height: 200px;
    object-fit: cover;
}

/* Auth Pages */
.login-container {
    max-width: 400px;
    margin: 50px auto;
}

/* Status Icon Animation */
@keyframes pulse-green {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.status-abierta {
    background-color: #4caf50 !important;
    animation: pulse-green 2s infinite;
}

.status-cerrada {
    background-color: #f44336 !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(211, 47, 47, 0.8), rgba(211, 47, 47, 0.8)), url('../icons/bg.jpg');
    background-size: cover;
    color: white;
    padding: 40px 20px;
    border-radius: 0 0 20px 20px;
    margin-bottom: 20px;
}

/* Estilos Calendario Estilo Android */
.calendar-container {
    background: white;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
}

#calendar {
    max-height: none !important;
    border: none;
}

.fc-theme-standard td, .fc-theme-standard th {
    border: none !important;
}

.fc-day-number {
    font-weight: bold;
}

.fc-daygrid-day-number {
    padding: 0 !important;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    margin: 5px auto;
    display: block;
}

/* Forzamos que la celda no se estire raro */
.fc .fc-daygrid-day-top {
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Círculos de colores para los días */
.fc-daygrid-day.reserva-completa .fc-daygrid-day-number {
    background-color: #ffb74d; /* Naranja suave */
    border-radius: 50%;
    color: white;
}

.fc-daygrid-day.reserva-parcial .fc-daygrid-day-number {
    background-color: #fff176; /* Amarillo suave */
    border-radius: 50%;
    color: #333;
}

.fc-daygrid-day.reserva-seleccionada .fc-daygrid-day-number {
    background-color: #81d4fa; /* Azul claro */
    border-radius: 50%;
    color: white;
}

/* Listado de salas debajo del calendario */
.sala-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sala-info .sala-name {
    font-weight: bold;
    font-size: 1.1rem;
}

.sala-status-libre {
    background: #e0e0e0;
    color: #757575;
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.sala-info .reserva-detalle {
    color: #d32f2f;
    font-size: 0.9rem;
}

.btn-reserva-footer {
    background-color: #8d3b2a !important; /* Marrón rojizo del screenshot */
    margin-top: 20px;
    width: 100%;
    text-transform: uppercase;
}

/* Banner iOS */
.ios-banner {
    position: fixed;
    top: 10px;
    left: 5%;
    right: 5%;
    background: #333;
    color: white;
    padding: 15px;
    border-radius: 15px;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: slideInDown 0.5s ease-out;
}

.ios-banner-content {
    position: relative;
    padding-right: 30px;
}

.ios-close {
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
}

@keyframes slideInDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Badges and sections */
.section-title {
    border-left: 5px solid #d32f2f;
    padding-left: 15px;
    margin: 30px 0 20px 0;
    font-weight: bold;
}

/* Espaciado extra al final para scroll en móviles */
main#app-content {
    padding-bottom: 80px;
}

/* Bottom Nav for mobile feel if needed */
@media only screen and (max-width: 600px) {
    .hero h4 { font-size: 1.8rem; }
}
