/* Custom Modal Styles - Matching Cookie Banner */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
    line-height: 1;
    padding: 5px;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #212529;
    font-weight: 500;
    line-height: 1.5;
    margin-top: 1rem;
}

.modal-ok-btn {
    background: #6c757d;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-width: 120px;
    box-shadow: 0 2px 5px rgba(108, 117, 125, 0.2);
}

.modal-ok-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Dark Mode Support */
html.dark-mode .modal-content {
    background: rgba(20, 20, 20, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

html.dark-mode .modal-close {
    color: #aaa;
}

html.dark-mode .modal-close:hover {
    color: #fff;
}

html.dark-mode .modal-body {
    color: #e9ecef;
}

html.dark-mode .modal-ok-btn {
    background: #6c757d;
}

html.dark-mode .modal-ok-btn:hover {
    background: #5a6268;
}