/* Calendar Rendering Styles */

.calendar-month {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.calendar-month:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.calendar-header {
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-weekdays {
    margin-bottom: 12px;
    font-weight: 600;
}

.calendar-weekdays > div {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 8px;
}

.calendar-days > div {
    transition: all 0.2s ease;
}

.calendar-day {
    position: relative;
    overflow: hidden;
}

.calendar-day::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.03);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.calendar-day:hover::after {
    opacity: 1;
}

/* Year View */
.calendar-year {
    width: 100%;
}

.calendar-year h2 {
    font-size: 2.5rem;
    margin: 0 0 24px 0;
}

/* Template Cards */
.template-card {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.template-preview {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 16px;
}

.template-name {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-month {
        width: 100% !important;
    }

    .calendar-header {
        font-size: 1.5rem;
    }

    .calendar-weekdays > div,
    .calendar-day {
        font-size: 0.9rem;
    }

    .calendar-year {
        padding: 12px;
    }
}

@media print {
    .calendar-month,
    .calendar-year {
        box-shadow: none;
        page-break-inside: avoid;
    }

    .calendar-day:hover {
        background-color: transparent;
        color: inherit;
    }
}
