.calendar-page-wrapper {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.12), rgba(155, 89, 182, 0.18));
}

.calendar-tool-container {
    max-width: 1120px;
    margin: 0 auto;
}

.text-calendar-title {
    color: #5e2ca5;
}

.text-calendar-subtitle {
    color: rgba(32, 26, 48, 0.75);
}

.text-calendar-label {
    color: #5e2ca5;
    font-weight: 600;
}

.selector-title {
    color: #442074;
}

.calendar-hero {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.15), rgba(155, 89, 182, 0.08));
    border-radius: 1.5rem;
}

.calendar-hero-actions .btn {
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    background: rgba(94, 44, 165, 0.1);
    border: 1px solid rgba(94, 44, 165, 0.25);
    color: #442074;
    transition: all 0.2s ease-in-out;
}

.calendar-hero-actions .btn:hover,
.calendar-hero-actions .btn:focus {
    color: #fff;
    background: #6f42c1;
    border-color: #6f42c1;
    box-shadow: 0 1rem 2.5rem rgba(111, 66, 193, 0.25);
}

.calendar-card,
.calendar-info {
    border-radius: 1.5rem;
}

.calendar-form-row .form-select,
.calendar-form-row .form-control {
    border-radius: 1rem;
    border: 1px solid rgba(94, 44, 165, 0.15);
}

.calendar-date-selector {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1.25rem;
    border: 1px solid rgba(94, 44, 165, 0.18);
    padding: 1.5rem;
    backdrop-filter: blur(6px);
}

.calendar-date-selector .btn-outline-light {
    color: #5e2ca5;
    border-color: rgba(94, 44, 165, 0.35);
    background-color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    border-radius: 999px;
}

.calendar-date-selector .btn-outline-light:hover,
.calendar-date-selector .btn-outline-light:focus,
.calendar-date-selector .btn-outline-light.active {
    color: #fff;
    background-color: #6f42c1;
    border-color: #6f42c1;
    box-shadow: 0 0.5rem 1.5rem rgba(111, 66, 193, 0.3);
}

.calendar-segment-panel {
    display: none;
}

.calendar-segment-panel.active {
    display: block;
}

.btn-calendar-primary {
    background: #6f42c1;
    border-color: #6f42c1;
    color: #fff;
    border-radius: 999px;
    padding: 0.6rem 1.75rem;
    font-weight: 600;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.btn-calendar-primary:hover,
.btn-calendar-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 1rem 2.5rem rgba(111, 66, 193, 0.35);
    background-color: #5e2ca5;
    color: #fff;
}

.calendar-nav {
    border-radius: 999px;
    border-color: rgba(94, 44, 165, 0.25) !important;
    color: #5e2ca5;
    background-color: rgba(255, 255, 255, 0.85);
}

.calendar-nav:hover,
.calendar-nav:focus {
    background-color: #6f42c1;
    color: #fff;
    border-color: #6f42c1 !important;
}

.calendar-table {
    table-layout: fixed;
    text-align: center;
    border-collapse: separate;
    border-spacing: 0.5rem;
    background-color: transparent;
}

.calendar-table th {
    background-color: rgba(94, 44, 165, 0.12);
    border: none;
    color: #442074;
    font-weight: 600;
    padding: 0.85rem 0;
    border-radius: 0.75rem;
}

.calendar-day {
    height: 78px;
    vertical-align: middle;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1.1rem;
    box-shadow: inset 0 0 0 1px rgba(94, 44, 165, 0.08);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.calendar-day.empty {
    background: transparent;
    box-shadow: none;
}

.calendar-day:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.8rem 1.8rem rgba(111, 66, 193, 0.15);
}

.calendar-day.today {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.85), rgba(155, 89, 182, 0.85));
    color: #fff;
    box-shadow: 0 1rem 2.4rem rgba(111, 66, 193, 0.25);
}

.calendar-day.selected {
    box-shadow: inset 0 0 0 2px rgba(111, 66, 193, 0.9);
}

.calendar-day.holiday {
    background: linear-gradient(135deg, rgba(243, 223, 255, 0.95), rgba(222, 204, 255, 0.95));
    box-shadow: inset 0 0 0 1px rgba(111, 66, 193, 0.45);
}

.day-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    height: 100%;
}

.day-number {
    font-size: 1.25rem;
    font-weight: 600;
}

.calendar-holiday-badge {
    background: rgba(111, 66, 193, 0.16);
    color: #5e2ca5;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-legend {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(32, 26, 48, 0.7);
}

.legend-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    display: inline-block;
}

.legend-holiday {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.85), rgba(155, 89, 182, 0.85));
}

.calendar-layout {
    --calendar-panel-gap: 1.5rem;
}

.calendar-surface {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 1.25rem;
    border: 1px solid rgba(94, 44, 165, 0.12);
    padding: 1.75rem 1.5rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.calendar-holiday-panel {
    background: linear-gradient(135deg, rgba(243, 223, 255, 0.65), rgba(222, 204, 255, 0.6));
    border-radius: 1.25rem;
    border: 1px solid rgba(94, 44, 165, 0.2);
    padding: 0.35rem;
}

.calendar-holiday-panel-inner {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 1.1rem;
    padding: 1.5rem 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calendar-holiday-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calendar-holiday-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.75rem;
    border-radius: 1rem;
    background: rgba(111, 66, 193, 0.05);
    border: 1px solid rgba(94, 44, 165, 0.12);
}

.calendar-holiday-date {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(111, 66, 193, 0.16);
    color: #5e2ca5;
    font-weight: 700;
}

.calendar-holiday-details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.calendar-holiday-name {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: #442074;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    box-shadow: inset 0 0 0 1px rgba(94, 44, 165, 0.1);
}

.calendar-holiday-name::before {
    content: "\2022";
    font-size: 0.85em;
    color: rgba(94, 44, 165, 0.65);
}

@media (max-width: 767.98px) {
    .calendar-table {
        border-spacing: 0.35rem;
    }

    .calendar-day {
        height: 68px;
    }

    .calendar-date-selector {
        padding: 1.25rem;
    }

    .calendar-holiday-item {
        flex-direction: column;
    }

    .calendar-holiday-date {
        width: 2.5rem;
        height: 2.5rem;
        margin-bottom: 0.4rem;
    }
}