/* Dual Calendar Widget Styles */
.calendar-widget-dual {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.calendar-widget-dual__header {
    margin-bottom: 25px;
    text-align: center;
}

.calendar-widget-dual__title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #d32f2f;
}

.calendar-widget-dual__months {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.calendar-widget-dual__month {
    background: #fafafa;
    border-radius: 6px;
    padding: 15px;
}

.calendar-widget-dual__month-title {
    font-size: 16px;
    font-weight: 600;
    color: #d32f2f;
    margin: 0 0 15px 0;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.calendar-widget-dual__body {
    /* No extra styling needed */
}

.calendar-widget-dual__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 6px;
}

.calendar-widget-dual__weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    padding: 6px 0;
}

.calendar-widget-dual__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.calendar-widget-dual__day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fff;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    padding: 3px;
    min-height: 45px;
}

.calendar-widget-dual__day:hover {
    border-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(211, 47, 47, 0.2);
}

.calendar-widget-dual__day--empty {
    background: transparent;
    border: none;
    cursor: default;
}

.calendar-widget-dual__day--empty:hover {
    transform: none;
    box-shadow: none;
}

.calendar-widget-dual__day--today {
    border: 2px solid #4caf50;
    background: #e8f5e9;
}

.calendar-widget-dual__day--holiday {
    background: #ffebee;
    border-color: #ef5350;
}

.calendar-widget-dual__day--holiday .calendar-widget-dual__day-num {
    color: #d32f2f;
    font-weight: bold;
}

.calendar-widget-dual__day--special {
    background: #fff8e1;
    border-color: #ffb74d;
}

.calendar-widget-dual__day--special .calendar-widget-dual__day-num {
    color: #ff6f00;
    font-weight: bold;
}

.calendar-widget-dual__day-num {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.calendar-widget-dual__day-note {
    font-size: 8px;
    color: #666;
    text-align: center;
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-widget-dual__legend {
    display: flex;
    gap: 25px;
    justify-content: center;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
}

.calendar-widget-dual__legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-widget-dual__legend-box {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.calendar-widget-dual__legend-box--holiday {
    background: #ffebee;
    border-color: #ef5350;
}

.calendar-widget-dual__legend-box--special {
    background: #fff8e1;
    border-color: #ffb74d;
}

.calendar-widget-dual__legend-box--today {
    background: #e8f5e9;
    border-color: #4caf50;
}

.calendar-widget-dual__legend-text {
    font-size: 13px;
    color: #666;
}

/* Tablet Responsive (768px - 1024px) */
@media (max-width: 1024px) {
    .calendar-widget-dual {
        padding: 18px;
    }

    .calendar-widget-dual__months {
        gap: 20px;
    }

    .calendar-widget-dual__month {
        padding: 12px;
    }

    .calendar-widget-dual__day {
        min-height: 40px;
    }

    .calendar-widget-dual__day-num {
        font-size: 12px;
    }
}

/* Mobile Responsive - Vertical Layout */
@media (max-width: 768px) {
    .calendar-widget-dual {
        padding: 15px;
        margin: 20px 10px;
    }

    .calendar-widget-dual__title {
        font-size: 18px;
        padding-bottom: 12px;
    }

    .calendar-widget-dual__months {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 25px;
    }

    .calendar-widget-dual__month {
        padding: 12px;
    }

    .calendar-widget-dual__month-title {
        font-size: 15px;
        padding-bottom: 8px;
    }

    .calendar-widget-dual__weekday {
        font-size: 10px;
        padding: 5px 0;
    }

    .calendar-widget-dual__day {
        min-height: 42px;
        padding: 2px;
    }

    .calendar-widget-dual__day-num {
        font-size: 12px;
    }

    .calendar-widget-dual__day-note {
        font-size: 7px;
    }

    .calendar-widget-dual__legend {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .calendar-widget-dual__legend-text {
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .calendar-widget-dual {
        padding: 12px;
        margin: 15px 5px;
    }

    .calendar-widget-dual__title {
        font-size: 16px;
    }

    .calendar-widget-dual__month {
        padding: 10px;
    }

    .calendar-widget-dual__month-title {
        font-size: 14px;
    }

    .calendar-widget-dual__weekday {
        font-size: 9px;
    }

    .calendar-widget-dual__day {
        min-height: 38px;
    }

    .calendar-widget-dual__day-num {
        font-size: 11px;
    }

    .calendar-widget-dual__day-note {
        font-size: 6px;
    }
}