/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Oswald', sans-serif;
    background-image: url('../DISPLAY KINESIS/display.kinesis-fisioterapia.ch/logo-01.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-color: #ffffff;
    color: #333;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    color: #e74c3c;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.logo-image {
    height: 64px;
    width: auto;
}

.clock {
    font-size: 2.5rem;
    font-weight: 500;
    color: #2c3e50;
}

/* Main content */
.main-content {
    padding: 40px;
    height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Grid delle stanze */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    padding: 20px;
}

@media (max-width: 768px) {
    .rooms-grid {
        grid-template-columns: 1fr;
    }
}

/* Card stanza */
.room-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.room-card.free::before {
    background: linear-gradient(90deg, #27ae60, #229954);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Numero stanza */
.room-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

/* Informazioni terapista */
.therapist-info {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.therapist-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #e74c3c;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.therapist-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
}

.status-text {
    font-size: 1.8rem;
    font-weight: 500;
    color: #e74c3c;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 20px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 10px;
}

/* Stato stanza libera */
.room-status {
    text-align: center;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.status-text-large {
    font-size: 4rem;
    font-weight: 700;
    color: #27ae60;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.room-card.free .status-text-large {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .logo {
        font-size: 2rem;
    }

    .logo-image {
        height: 48px;
    }
    
    .clock {
        font-size: 1.8rem;
    }
    
    .therapist-name {
        font-size: 2rem;
    }
    
    .status-text-large {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    
    .logo {
        font-size: 1.5rem;
    }

    .logo-image {
        height: 36px;
    }
    
    .clock {
        font-size: 1.3rem;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .rooms-grid {
        gap: 20px;
        padding: 10px;
    }
    
    .room-card {
        padding: 20px;
        min-height: 300px;
    }
    
    .therapist-photo {
        width: 120px;
        height: 120px;
    }
    
    .therapist-name {
        font-size: 1.5rem;
    }
    
    .status-text {
        font-size: 1.3rem;
    }
    
    .status-text-large {
        font-size: 2.5rem;
    }
}

/* Scrollbar personalizzata */
.main-content::-webkit-scrollbar {
    width: 10px;
}

.main-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.main-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
