#modal-root {
    position: relative;
    z-index: 9999;
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    pointer-events: none;
    transition: .2s;
}

.modal.visible {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--card);
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}


.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--card);
    z-index: 1;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-light);
    background: var(--background);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
}

.modal-body {
    padding: 10px 0;
}
