/* Main Wrapper */
#lvn-ngaylecuoi-section {
    /* background: rgba(255, 255, 255, 0.95); */
    padding: 0;
    position: relative;
    z-index: 1;
}

/* Filter Controls */
.lvn-filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0px;
    /* background: #f8faff; */
    border-bottom: 1px solid #e1e8ff;
    flex-wrap: wrap;
    gap: 15px;
}

.lvn-filter-toggle label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #4a5568;
}

.lvn-filter-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.lvn-filter-stats {
    font-size: 14px;
    color: #e6e8ec;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 6px 15px;
    /* border-radius: 20px; */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lvn-ngaylecuoi-count {
    color: #ddf866;
    font-weight: bold;
    font-size: 20px;
    font-family: "Playfair Display", serif;
}

.lvn-ngaylecuoi-list-header .lvn-ngaylecuoi-count {
    display: inline-block;
    margin: 0 auto;
    padding: 1rem 2rem;
    text-align: center;
    background-color: #333;
    border-radius: 50px;
}

/* List Navigation Buttons */
.lvn-ngaylecuoi-list-header h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.lvn-list-nav {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffd700;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
}

.lvn-list-nav svg {
    width: 18px;
    height: 18px;
}

.lvn-list-nav:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
    transform: scale(1.1);
}

/* Month View Styles */
/* Header đã được chuyển sang lvn-frontend-month.css */


/* Style cho Danh sách Ngày Tốt Cưới (giữ lại) */
.lvn-ngaylecuoi-list-container {
    padding: 0px;
}

.lvn-ngaylecuoi-list-header {
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    font-size: 20px;
}

.lvn-ngaylecuoi-list {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.lvn-ngaylecuoi-item {
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.lvn-ngaylecuoi-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.lvn-ngaylecuoi-item .lvn-badge {
    display: flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 14px;
    margin-top: 5px;
}

/* Day Section Styles */
#lvn-ngaylecuoi-day-section {
    margin-top: 30px;
    overflow: hidden;
}

.lvn-ngaylecuoi-header {
    padding: 10px;
}

/* Shared / Utilities */
.lvn-loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lvn-month-navigation {
    display: flex;
    justify-content: space-between;
    background: rgba(58, 57, 57, 0.2);
    padding: 0.5rem 0;
}

.lvn-month-nav {
    width: 50%;
    display: flex;
    justify-content: space-between;
}

.lvn-month-nav button {
    width: 33% !important;
    border: none;
}

.lvn-month-selector {
    display: flex;
    justify-content: space-between;
    width: 45%;
    align-items: center;
}

.lvn-month-selector>* {
    width: 33%;
}

.lvn-month-selector select {
    border: 1px solid #dbdbdb;
    border-radius: 0;
}

/*.lvn-month-nav button,*/
.lvn-month-selector select,
.lvn-month-selector button {
    height: 35px;
    font-size: 1rem;
    padding: 0 5px 0 0;
}

.lvn-ngaylecuoi-basic-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.lvn-info-row {
    display: flex;
    align-items: baseline;
    padding: 4px 0;
}

.lvn-label {
    flex: 0 0 140px;
    color: var(--gold, #c5a059);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    font-family: "Playfair Display", serif;
}

.lvn-value {
    flex: 1;
    font-weight: 500;
}

.lvn-sub-value {
    font-size: 0.95rem;
    opacity: 0.7;
    margin-left: 8px;
    font-family: inherit;
    font-weight: normal;
}

.lvn-nguhanh-badge {
    padding: 3px 12px !important;
    border-radius: 4px;
    color: #fff !important;
    font-size: 0.9rem !important;
    font-family: inherit !important;
    display: inline-block !important;
    font-weight: 600 !important;
}

.lvn-view-detail {
    display: flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    bottom: 10px;
    right: 10px;
    box-shadow: none;
    padding: 5px 10px;
}

.lvn-badge.bat-tuong::before {
    content: '';
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-right: 5px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6)
}

.lvn-badge.ngay-le-cuoi::before {
    content: '';
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-right: 5px;
    background: linear-gradient(135deg, #facc15, #f59e0b)
}

.lvn-badge.super-ngay-le-cuoi::before {
    content: '';
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-right: 5px;
    background: linear-gradient(135deg, #22c55e, #16a34a)
}

.lvn-badge.khong-tot-cuoi::before {
    content: '';
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-right: 5px;
    background: linear-gradient(135deg, #9ca3af, #6b7280)
}

.lvn-section .lvn-section-content.viec_nen_lam,
.lvn-section .lvn-section-content.viec_kieng_ky,
.lvn-section .lvn-section-content.nhi_thap_bat_tu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 1rem;
    gap: 10px;
}

.lvn-section .lvn-section-content.viec_nen_lam .viec_nen_lam-item,
.lvn-section .lvn-section-content.viec_kieng_ky .viec_kieng_ky-item,
.lvn-section .lvn-section-content.nhi_thap_bat_tu .nhi_thap_bat_tu-item {
    padding: 10px;
    border-radius: 5px;
    flex: 1 1;
    min-width: 30%;
}

@media (min-width:768px) {
    .lvn-ngaylecuoi-header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .lvn-ngaylecuoi-title {
        width: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .lvn-ngaylecuoi-nav {
        width: 50%;
        display: flex;
        justify-content: space-between;
    }

    .lvn-ngaylecuoi-nav button {
        margin: 0;
        box-shadow: none;
        width: 33%;
        text-align: center;
        height: 40px;
        line-height: 40px;
    }

    .lvn-ngaylecuoi-title {
        padding: 10px;
    }

    .lvn-ngaylecuoi-title span {
        color: #5197F8;
    }

    .lvn-ngaylecuoi-basic-info {
        display: flex;
        flex-direction: column;
    }

    .lvn-ngaylecuoi-main-content {
        padding: 10px;
    }


}

@media (max-width:768px) {

    .lvn-ngaylecuoi-list-container,
    .lvn-ngaylecuoi-header {
        padding: 0;
    }

    .lvn-ngaylecuoi-nav {
        display: flex;
        justify-content: space-between;
    }

    .lvn-ngaylecuoi-nav button {
        margin: 0;
        box-shadow: none;
        width: 33%;
        padding: 10px 0;
        text-align: center;
    }

    .lvn-ngaylecuoi-nav button .lvn-prev-day-label,
    .lvn-ngaylecuoi-nav button .lvn-next-day-label {
        display: none;
    }

    .lvn-ngaylecuoi-basic-info {
        display: flex;
        flex-direction: column;
        margin: 10px 0;
    }


    .lvn-ngaylecuoi-title {
        width: 100%;
        flex-direction: column;
    }

    .lvn-ngaylecuoi-title span {
        display: block;
        background: #165286;
        color: #6ef7a0;
        padding: 0.5rem 0;
        border-radius: 3px;
        text-align: center;
        margin: 1rem 0;
        width: 100%;
        font-size: 1rem;
    }

    .lvn-wedding-score-row {
        display: flex;
    }

    .wedding-rating-label {
        display: flex;
        flex-direction: column;
    }

    /* Style cho Danh sách Ngày Tốt Cưới trên mobile (giữ lại) */
    .lvn-filter-stats {
        width: 100%;
    }

    .lvn-section .lvn-section-content.viec_nen_lam .viec_nen_lam-item,
    .lvn-section .lvn-section-content.viec_kieng_ky .viec_kieng_ky-item,
    .lvn-section .lvn-section-content.nhi_thap_bat_tu .nhi_thap_bat_tu-item {

        min-width: 45%;

    }


}


.lvn-filter-toggle {
    display: flex;
    justify-content: flex-start;
    margin: 15px 0;
}

.lvn-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    user-select: none;
}

/* Ẩn checkbox gốc */
.lvn-toggle input {
    display: none;
}

/* Thanh toggle */
.lvn-slider {
    width: 46px;
    height: 24px;
    background: #ccc;
    border-radius: 999px;
    position: relative;
    transition: all 0.3s ease;
}

/* Nút tròn */
.lvn-slider::before {
    content: "";
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

/* Khi bật */
.lvn-toggle input:checked+.lvn-slider {
    background: linear-gradient(135deg, #ff9800, #ff5722);
}

.lvn-toggle input:checked+.lvn-slider::before {
    transform: translateX(22px);
}

/* Text khi bật */
.lvn-toggle input:checked~.lvn-toggle-label {
    color: #ff5722;
    font-weight: 600;
}

/* Hover */
.lvn-toggle:hover .lvn-slider {
    box-shadow: 0 0 0 4px rgba(255, 87, 34, .15);
}