

/* ============================================
КОМПОНЕНТ: УВЕДОМЛЕНИЯ И МОДАЛЬНЫЕ ОКНА
Версия: 1.1
============================================ */




/* ---------- МОДАЛЬНОЕ ОКНО ---------- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease forwards;
}

.modal-content {
    display: none;
    position: fixed;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 50%;
    left: 50%;
    max-height: 90%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-out);
    z-index: 1000;
    min-width: 320px;
    border-radius:  var(--radius-md);
    overflow-y: auto; 
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- ШАПКА МОДАЛИ ---------- */
.modal-header {
    border-bottom: var(--border-light);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}
.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--primary);
}

/* ---------- ТЕЛО МОДАЛИ ---------- */


.form-group label { 
    display: block; 
    margin-bottom: var(--spacing-xs); 
    font-size: 0.8rem;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 6px 12px;
    border: var(--border);
    border-radius: var(--radius-xs);
    box-sizing: border-box;
}
.form-group select {
    border: var(--border); 
}
.form-group input:focus,
.form-group select:focus {
    border: var(--border-focus);
    outline: none;
}


/* ---------- ПОДВАЛ МОДАЛИ ---------- */
.form-buttons { 
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin-top: 20px; 
    gap: var(--spacing-sm);
}

