/* Two-Month Calendar Styles with Liquid Glass Effect */
/* UPDATED: Dark gradient in RGBA format */

/* Navigation Bar - Liquid Glass */
.two-month-calendar-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: relative;
    z-index: 2;
}

.two-month-calendar-nav-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.two-month-calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.two-month-calendar-nav-btn:active {
    transform: scale(0.95);
}

.two-month-calendar-nav-btn svg {
    stroke: rgba(255, 255, 255, 0.95);
}

.two-month-calendar-nav-label {
    flex: 1;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    padding: 0 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Overlay - Frosted Glass */
.two-month-calendar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.two-month-calendar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Modal - Liquid Glass Effect */
.two-month-calendar-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 720px;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 80px rgba(255, 255, 255, 0.05);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.two-month-calendar-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Glossy overlay effect */
.two-month-calendar-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
    border-radius: 24px 24px 0 0;
}

/* Header - Frosted Glass */
.two-month-calendar-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 2;
}

.two-month-calendar-title {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.two-month-calendar-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.two-month-calendar-close:hover {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 1);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Summary - Frosted Glass */
.two-month-calendar-summary {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 2;
}

.two-month-calendar-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.two-month-calendar-summary-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.two-month-calendar-summary-value {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Container - Glass Background */
.two-month-calendar-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

/* Month - Individual Glass Card */
.two-month-calendar-month {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.two-month-calendar-month-header {
    margin-bottom: 16px;
}

.two-month-calendar-month-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Weekdays */
.two-month-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.two-month-calendar-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 4px;
    text-transform: uppercase;
}

/* Days */
.two-month-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.two-month-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.two-month-calendar-day::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: all 0.3s;
    border-radius: 10px;
}

.two-month-calendar-day:not(.disabled):not(.other-month):hover::before {
    background: rgba(255, 255, 255, 0.15);
}

.two-month-calendar-day:not(.disabled):not(.other-month):hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.two-month-calendar-day.today {
    border-color: rgba(218, 165, 32, 0.5);
    color: #FFD700;
    font-weight: 600;
    background: rgba(218, 165, 32, 0.15);
    box-shadow: 
        0 4px 15px rgba(218, 165, 32, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* UPDATED: Selected day with RGBA dark gradient */
.two-month-calendar-day.selected {
    background: linear-gradient(135deg, rgba(46, 46, 46, 1) 0%, rgba(18, 18, 18, 1) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #ffffff;
    font-weight: 700;
    border-color: rgba(218, 165, 32, 0.8);
    box-shadow: 
        0 4px 16px rgba(218, 165, 32, 0.4),
        0 2px 6px rgba(218, 165, 32, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.two-month-calendar-day.selected::before {
    display: none;
}

.two-month-calendar-day.selected:hover {
    background: linear-gradient(135deg, rgba(46, 46, 46, 1) 0%, rgba(18, 18, 18, 1) 100%);
    transform: scale(1.1);
    box-shadow: 
        0 6px 20px rgba(218, 165, 32, 0.5),
        0 2px 8px rgba(218, 165, 32, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.two-month-calendar-day.disabled {
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.two-month-calendar-day.disabled:hover::before {
    background: transparent;
}

.two-month-calendar-day.other-month {
    color: rgba(255, 255, 255, 0.3);
    cursor: default;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.two-month-calendar-day.other-month:hover::before {
    background: transparent;
}

/* UPDATED: Done Button with RGBA dark gradient */
.two-month-calendar-done {
    margin: 16px 24px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(46, 46, 46, 1) 0%, rgba(18, 18, 18, 1) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 20px rgba(218, 165, 32, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.two-month-calendar-done::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.4s;
}

.two-month-calendar-done:hover::before {
    transform: translateX(0);
}

.two-month-calendar-done:hover {
    background: linear-gradient(135deg, rgba(46, 46, 46, 1) 0%, rgba(18, 18, 18, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(218, 165, 32, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.two-month-calendar-done:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 10px rgba(218, 165, 32, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .two-month-calendar-modal {
        width: 95%;
        max-width: none;
        max-height: 95vh;
    }

    .two-month-calendar-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 16px;
    }

    .two-month-calendar-navigation {
        padding: 12px 16px;
    }

    .two-month-calendar-nav-label {
        font-size: 14px;
        padding: 0 8px;
    }

    .two-month-calendar-header {
        padding: 16px;
    }

    .two-month-calendar-summary {
        padding: 12px 16px;
    }

    .two-month-calendar-done {
        margin: 12px 16px;
    }

    .two-month-calendar-day {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .two-month-calendar-nav-btn {
        width: 32px;
        height: 32px;
    }

    .two-month-calendar-nav-label {
        font-size: 13px;
    }

    .two-month-calendar-weekday {
        font-size: 10px;
        padding: 6px 2px;
    }

    .two-month-calendar-day {
        font-size: 12px;
    }
}

/* Custom Scrollbar for Glass Effect */
.two-month-calendar-container::-webkit-scrollbar {
    width: 8px;
}

.two-month-calendar-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.two-month-calendar-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.two-month-calendar-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}