/* ============================================================================ */
/* MODERN CALENDAR STYLES - TROVADERMATOLOGO */
/* ============================================================================ */

#myc-container {
    width: inherit;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#myc-nav-container {
    margin-bottom: 25px;
    width: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

#myc-current-month-year-container {
    display: inline-block;
    font-size: 1.75em;
    font-weight: 600;
    text-align: center;
    text-transform: capitalize;
    vertical-align: top;
    width: 68%;
    color: #2c3e50;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#myc-prev-week-container {
    display: inline-block;
    width: 15%;
}

#myc-next-week-container {
    display: inline-block;
    width: 15%;
}

#myc-prev-week {
    border: 2px solid #e8ecf1;
    border-radius: 50%;
    color: #667eea;
    cursor: pointer;
    float: left;
    font-size: 1.4em;
    font-weight: 600;
    height: 45px;
    width: 45px;
    text-align: center;
    line-height: 41px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

#myc-next-week {
    border: 2px solid #e8ecf1;
    border-radius: 50%;
    color: #667eea;
    cursor: pointer;
    float: right;
    font-size: 1.4em;
    font-weight: 600;
    height: 45px;
    width: 45px;
    text-align: center;
    line-height: 41px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

#myc-prev-week:hover, #myc-next-week:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#myc-prev-week:active, #myc-next-week:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

#myc-week-container {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

#myc-dates-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    display: flex;
    border-bottom: 2px solid #e8ecf1;
}

.myc-date-header {
    border-right: 1px solid #e8ecf1;
    display: inline-block;
    min-height: 70px;
    padding: 15px 10px;
    vertical-align: top;
    width: 13.77%;
    text-align: center;
    transition: background-color 0.2s ease;
}

.myc-date-header:first-of-type {
    padding-left: 10px;
}

.myc-date-header:last-of-type {
    border-right: none;
    width: 13%;
}

.myc-date-header:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

#myc-available-time-container {
    border-top: none;
    min-height: 200px;
    background: #ffffff;
    display: flex;
}

.myc-day-time-container {
    display: inline-block;
    height: 100%;
    padding: 20px 10px;
    vertical-align: top;
    width: 13.77%;
    border-right: 1px solid #f0f2f5;
    min-height: 200px;
}

.myc-day-time-container:first-of-type {
    padding-left: 10px;
}

.myc-day-time-container:last-of-type {
    border-right: none;
    width: 13%;
}

.myc-date-number {
    font-size: 2em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.2;
}

.myc-date-display {
    font-weight: 500;
    font-size: 0.85em;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.myc-available-time {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #ffffff;
    display: block;
    margin-bottom: 12px;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.myc-available-time::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.myc-available-time:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
}

.myc-available-time:hover::before {
    left: 100%;
}

.myc-available-time.selected {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
}

.myc-available-time.selected::after {
    content: '✓';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1em;
}

/* Evidenzia il giorno corrente */
.myc-date-header.today {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-bottom: 3px solid #667eea;
}

.myc-date-header.today .myc-date-number {
    color: #667eea;
    position: relative;
}

.myc-date-header.today .myc-date-number::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Animazione di entrata per gli slot */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.myc-available-time {
    animation: slideInUp 0.3s ease-out;
    animation-fill-mode: both;
}

.myc-available-time:nth-child(1) { animation-delay: 0.05s; }
.myc-available-time:nth-child(2) { animation-delay: 0.1s; }
.myc-available-time:nth-child(3) { animation-delay: 0.15s; }
.myc-available-time:nth-child(4) { animation-delay: 0.2s; }
.myc-available-time:nth-child(5) { animation-delay: 0.25s; }
.myc-available-time:nth-child(n+6) { animation-delay: 0.3s; }

/* Stato disabilitato per slot non disponibili (se necessario in futuro) */
.myc-available-time.disabled {
    background: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
    opacity: 0.5;
}

.myc-available-time.disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* ============================================================================ */
/* RESPONSIVE STYLES */
/* ============================================================================ */

@media only screen and (max-width: 768px) {
    #myc-current-month-year-container {
        font-size: 1.4em;
        width: 60%;
    }
    
    #myc-prev-week, #myc-next-week {
        height: 40px;
        width: 40px;
        font-size: 1.2em;
        line-height: 36px;
    }
    
    .myc-date-header, .myc-day-time-container {
        width: 13.5%;
        padding: 10px 5px;
    }
    
    .myc-date-header:last-of-type, .myc-day-time-container:last-of-type {
        width: 13%;
    }
    
    .myc-date-number {
        font-size: 1.5em;
    }
    
    .myc-date-display {
        font-size: 0.75em;
    }
    
    .myc-available-time {
        padding: 10px 5px;
        font-size: 0.85em;
        margin-bottom: 8px;
    }
    
    #myc-week-container {
        border-radius: 12px;
    }
}

@media only screen and (max-width: 480px) {
    #myc-nav-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    #myc-current-month-year-container {
        width: 100%;
        order: 2;
        font-size: 1.2em;
        margin-top: 10px;
    }
    
    #myc-prev-week-container, #myc-next-week-container {
        width: 45%;
    }
    
    .myc-date-header {
        min-height: 60px;
        padding: 8px 3px;
    }
    
    .myc-day-time-container {
        padding: 15px 5px;
        min-height: 150px;
    }
    
    .myc-available-time {
        padding: 8px 4px;
        font-size: 0.8em;
        margin-bottom: 6px;
    }
}
