/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    /* Ensure vertical scroll */
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px 0;
    /* Add some padding */
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-secondary);
    margin: auto;
    padding: 40px;
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 600px;
    position: relative;
    text-align: center;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}

.calendar-embed {
    margin-top: 30px;
    min-height: 700px;
    width: 100%;
    display: block;
}

.embed-placeholder {
    color: var(--text-secondary);
}

.embed-placeholder i {
    margin-bottom: 10px;
    color: var(--accent);
}