﻿/* lunar-calendar-complete.css */
.daterangepicker {
    z-index: 3000 !important;
}

    .daterangepicker td {
        position: relative;
        min-height: 50px;
        padding: 3px !important;
        cursor: pointer;
    }

    .daterangepicker .lunar-date {
        display: block;
        font-size: 9px;
        color: #bbbaba;
        font-weight: normal;
        line-height: 1.2;
        margin-top: 2px;
        text-align: center;
    }

        /* Ngày lễ thông thường */
        .daterangepicker .lunar-date.lunar-holiday {
            color: #5bc0de;
            font-weight: bold;
        }

        /* Ngày lễ quan trọng */
        .daterangepicker .lunar-date.lunar-holiday-important {
            color: #d9534f;
            font-weight: bold;
            font-size: 10px;
        }

    /* Background cho ngày có lễ */
    .daterangepicker td.has-lunar-holiday {
        background-color: #fff9e6 !important;
    }

    /* Background cho ngày lễ quan trọng */
    .daterangepicker td.important-holiday {
        background-color: #ffe6e6 !important;
    }

    /* Ngày lễ dương lịch - viền xanh */
    .daterangepicker td.has-solar-holiday {
        /*border: 2px solid #5bc0de !important;*/
    }

        /* Ngày có cả 2 loại lễ - viền gradient */
        .daterangepicker td.has-solar-holiday.has-lunar-festival {
            border: 2px solid;
            border-image: linear-gradient(45deg, #5bc0de, #d9534f) 1;
        }

    /* Ngày off */
    .daterangepicker td.off .lunar-date {
        color: #ccc;
    }

    .daterangepicker td.off.has-lunar-holiday {
        background-color: #f9f9f9 !important;
    }

    /* Ngày hôm nay */
    .daterangepicker td.today .lunar-date {
        color: #f0ad4e;
        font-weight: bold;
    }

    .daterangepicker td.today.has-lunar-holiday .lunar-date.lunar-holiday-important {
        color: #d9534f;
    }

    /* Ngày được chọn */
    .daterangepicker td.active .lunar-date,
    .daterangepicker td.in-range .lunar-date {
        color: #999898;
    }

    .daterangepicker td.active.start-date .lunar-date,
    .daterangepicker td.active.end-date .lunar-date {
        color: #fff;
        font-weight: bold;
    }

/* Tooltip - CẢI TIẾN HƠN */
.lunar-tooltip {
    position: absolute;
    background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%);
    color: #fff;
    font-weight: bold;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    z-index: 10000 !important;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    max-width: 300px;
}

    .lunar-tooltip .holiday-title {
        font-size: 11px;
        opacity: 0.9;
        margin-bottom: 5px;
        border-bottom: 1px solid rgba(255,255,255,0.3);
        padding-bottom: 4px;
    }

    .lunar-tooltip .holiday-item {
        font-size: 12px;
        line-height: 1.6;
        white-space: normal;
        text-align: left;
    }

    .lunar-tooltip .holiday-single {
        font-size: 13px;
        line-height: 1.4;
        white-space: normal;
        text-align: center;
    }

    .lunar-tooltip:after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -6px;
        border-width: 6px;
        border-style: solid;
        border-color: #c9302c transparent transparent transparent;
    }

/* Animation khi hover */
.daterangepicker td.has-lunar-holiday:hover {
    transform: scale(1.05);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
}

/* Dấu chấm cho ngày lễ quan trọng */
.daterangepicker td.important-holiday:before {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background: #d9534f;
    border-radius: 50%;
    z-index: 1;
}

/* Icon nhỏ cho ngày lễ dương lịch */
.daterangepicker td.has-solar-holiday:after {
    content: '⭐';
    position: absolute;
    top: 1px;
    left: 2px;
    font-size: 8px;
    z-index: 1;
}

.daterangepicker .calendar-table {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .daterangepicker td {
        min-height: 45px;
    }

    .daterangepicker .lunar-date {
        font-size: 8px;
    }

    .lunar-tooltip {
        font-size: 11px;
        padding: 8px 12px;
        max-width: 250px;
    }

        .lunar-tooltip .holiday-item {
            font-size: 10px;
        }
}
