.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #E8E8E8;
}

.month-link {
    padding: 8px 16px;
    background: linear-gradient(135deg, #6A8AAA 0%, #5A7A9A 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(106, 138, 170, 0.3);
    font-size: 0.95em;
}

.month-link:hover {
    background: linear-gradient(135deg, #5A7A9A 0%, #4A6A8A 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(106, 138, 170, 0.4);
}

.calendar-nav .current-date {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F8 100%);
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    border: 1px solid #C0C0C0;
    caret-color: transparent;
}

th {
    background: linear-gradient(180deg, #6A8AAA 0%, #5A7A9A 100%);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid #3D5A6C;
}

th:first-child {
    border-radius: 12px 0 0 0;
}

th:last-child {
    border-radius: 0 12px 0 0;
}

td {
    padding: 15px;
    text-align: center;
    border: 1px solid #E8E8E8;
    transition: all 0.3s ease;
    font-size: 0.95em;
    color: #4A4A4A;
    position: relative;
}

td:hover {
    background: linear-gradient(135deg, #E8F0F5 0%, #D8E8F0 100%);
    transform: translateY(-1px);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

td.today {
    background: linear-gradient(135deg, #FFE8E8 0%, #FFD8D8 100%);
    color: #E74C3C;
    font-weight: 600;
    border: 1px solid #FFB8B8;
}

td.today:hover {
    background: linear-gradient(135deg, #FFD8D8 0%, #FFC8C8 100%);
}

td.other-month {
    color: #C0C0C0;
    background: linear-gradient(135deg, #F8F8F8 0%, #F0F0F0 100%);
}

td.other-month:hover {
    background: linear-gradient(135deg, #F0F0F0 0%, #E8E8E8 100%);
}

td.has-event {
    position: relative;
}

td.has-event::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: linear-gradient(180deg, #6A8AAA 0%, #5A7A9A 100%);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .calendar-nav {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .month-link {
        padding: 6px 12px;
        font-size: 0.85em;
    }
    
    .calendar-nav .current-date {
        font-size: 1em;
    }
    
    table {
        font-size: 0.85em;
    }
    
    th,
    td {
        padding: 10px;
    }
    
    th {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .calendar-nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 10px;
    }
    
    .month-link {
        width: 100%;
        display: inline-block;
        text-align: center;
    }
    
    table {
        font-size: 0.75em;
    }
    
    th,
    td {
        padding: 8px;
    }
}

/* Dialog styles */
dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: hidden;
    max-width: 90vw;
    max-height: 80vh;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9F9F9 100%);
    border: 1px solid #E8E8E8;
    z-index: 1000;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.dialog_content {
    padding: 30px;
    text-align: center;
}

.dialog_content h2 {
    margin: 0 0 20px;
    font-size: 1.5em;
    color: #333;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.dialog_content p {
    margin: 0 0 30px;
    font-size: 1.1em;
    color: #666;
    line-height: 1.5;
}

.dialog_content button {
    padding: 10px 30px;
    background: linear-gradient(135deg, #6A8AAA 0%, #5A7A9A 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(106, 138, 170, 0.3);
}

.dialog_content button:hover {
    background: linear-gradient(135deg, #5A7A9A 0%, #4A6A8A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(106, 138, 170, 0.4);
}

.dialog_content button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(106, 138, 170, 0.3);
}

@media (max-width: 768px) {
    .dialog_content {
        padding: 20px;
    }
    
    .dialog_content h2 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }
    
    .dialog_content p {
        font-size: 1em;
        margin-bottom: 20px;
    }
    
    .dialog_content button {
        padding: 8px 25px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .dialog_content {
        padding: 15px;
    }
    
    .dialog_content h2 {
        font-size: 1.2em;
    }
    
    .dialog_content p {
        font-size: 0.9em;
    }
}