/* Centralized Calendar Page Style */
/* Used across multiple templates for consistent date display */

.calendar-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 70px;
    min-width: 50px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 -2px 4px rgba(0,0,0,0.05);
    position: relative;
    padding: 8px;
    box-sizing: border-box;
    flex-shrink: 0;
    margin: 0 auto;
}

.calendar-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc3545 0%, #dc3545 50%, transparent 50%);
    border-radius: 8px 8px 0 0;
}

.calendar-month {
    font-size: 0.7rem;
    font-weight: 600;
    color: #dc3545;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.calendar-day {
    font-size: 1.8rem;
    font-weight: 700;
    color: #212529;
    line-height: 1;
}

.calendar-year {
    font-size: 0.65rem;
    color: #6c757d;
    margin-top: 2px;
}

/* Variant: Taller calendar for profile headers */
.profile-header-calendar .calendar-page {
    height: 80px;
}

.profile-header-calendar .calendar-page::before {
    background: linear-gradient(90deg, #dc3545 0%, #dc3545 50%, transparent 50%);
}

.profile-header-calendar .calendar-page i.fa-birthday-cake {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #dc3545;
}

/* Variant: Dashboard items (hp-home.php) */
.dashboard-item .calendar-page {
    flex-shrink: 0;
}

/* Variant: Unknown date (sabbaticals) */
.calendar-page-unknown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 70px;
    min-width: 50px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #adb5bd;
    border-radius: 8px;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 -2px 4px rgba(0,0,0,0.05);
    position: relative;
    padding: 8px;
    box-sizing: border-box;
    flex-shrink: 0;
    margin: 0 auto;
}

.calendar-page-unknown i {
    font-size: 2rem;
    color: #6c757d;
}

/* Mobile responsive: Smaller on mobile devices */
@media (max-width: 768px) {
    .calendar-page {
        width: 45px;
        height: 60px;
        min-width: 45px;
        padding: 6px;
    }
    
    .calendar-month {
        font-size: 0.65rem;
    }
    
    .calendar-day {
        font-size: 1.5rem;
    }
    
    .calendar-year {
        font-size: 0.6rem;
    }
}

