* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; color: #333; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.header, .auth-section, .main-content { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-radius: 20px; padding: 30px; margin-bottom: 30px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); }
h1 { color: #4a5568; margin-bottom: 10px; font-size: 2.5em; font-weight: 300; text-align: center; }
.subtitle { color: #718096; font-size: 1.1em; text-align: center; }
.login-form { display: flex; gap: 15px; align-items: center; justify-content: center; flex-wrap: wrap; }
input, select, button { padding: 12px 20px; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 16px; transition: all 0.3s ease; }
input:focus, select:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); }
button { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; cursor: pointer; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
button:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3); }
.tabs { display: flex; margin-bottom: 30px; background: #f7fafc; border-radius: 15px; padding: 5px; }
.tab { flex: 1; padding: 15px; text-align: center; border-radius: 10px; cursor: pointer; transition: all 0.3s ease; font-weight: 600; }
.tab.active { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); }
.calendar-container { display: none; }
.calendar-container.active { display: block; }
.date-selector { display: flex; gap: 15px; margin-bottom: 30px; align-items: center; justify-content: center; flex-wrap: wrap; }
.calendar-grid { 
    display: grid; 
    /* Con questa, più semplice: */
    grid-template-columns: auto 1fr 1fr; 
    gap: 2px; 
    background: #e2e8f0; 
    border-radius: 10px; 
    overflow: hidden; 
    margin-top: 20px; 
}
.time-header, .availability-header { background: #4a5568; color: white; padding: 15px 10px; text-align: center; font-weight: 600; }
.time-slot { background: #4a5568; color: white; padding: 15px 10px; text-align: center; font-weight: 500; }
.availability-cell { background: white; padding: 15px 10px; min-height: 60px; display: flex; flex-direction: column; gap: 5px; }
.availability-button { padding: 8px 12px; border: none; border-radius: 8px; font-size: 12px; cursor: pointer; transition: all 0.2s ease; font-weight: 500; }
.available { background: #48bb78; color: white; }
.my-slot { background: #3182ce; color: white; }
#userInfo { text-align: center; margin-bottom: 30px; }