.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1000;
}

.modal-container {
    background: white;
    padding: 30px;
    border-radius: 16px;
    min-width: 400px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.2s ease-out;
}

.modal-header {
    margin-bottom: 20px;
}

.modal-body {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    color: #374151;
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    color: #111827;
    font-size: 15px;
    outline: none;
    padding: 11px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.form-errors {
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.form-errors ul {
    margin: 0;
    padding-left: 18px;
}

.modal-help {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 14px;
}

.checkbox-list {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    max-height: 320px;
    overflow-y: auto;
}

.checkbox-item {
    align-items: flex-start;
    cursor: pointer;
    display: flex;
    gap: 12px;
    padding: 13px 14px;
}

.checkbox-item + .checkbox-item {
    border-top: 1px solid #e5e7eb;
}

.checkbox-item input {
    accent-color: #2563eb;
    flex: 0 0 auto;
    height: 18px;
    margin-top: 2px;
    width: 18px;
}

.checkbox-item strong {
    color: #111827;
    display: block;
    font-size: 15px;
}

.checkbox-item small {
    color: #6b7280;
    display: block;
    font-size: 13px;
    margin-top: 3px;
}

.empty-modal-state {
    color: #6b7280;
    margin: 0;
    padding: 16px;
}

.success-modal-text {
    color: #374151;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cancel-button,
.confirm-button,
.confirm-link-button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.confirm-button,
.confirm-link-button{
    background-color: rgba(37, 99, 235, 1);
    color: white
}

.confirm-link-button{
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
}

.cancel-button{
    background-color: rgba(209, 213, 219, 1);
    color: #1f2937
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
