.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 20, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-box {
    background-color: var(--ui-surface);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-large {
    max-width: 700px;
}

.modal-small {
    max-width: 400px;
}

.modal-box h2 {
    margin-bottom: 8px;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
}

.modal-box label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--ui-text-muted);
}

.modal-box input[type="text"],
.modal-box select,
.modal-box textarea {
    background-color: var(--ui-bg);
    border: 1px solid var(--ui-border);
    color: var(--ui-text);
    padding: 8px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.modal-btns {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

.modal-btns button {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: opacity 0.2s;
}
.modal-btns button:hover {
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}
.btn-secondary {
    background-color: var(--ui-surface-hover);
    color: var(--ui-text);
}
.btn-danger {
    background-color: #ef4444;
    color: white;
}
