/* css/components/modals.css - Универсальные окна подтверждения (Soft Dark Theme) */

.global-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px);
    z-index: 2000; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.global-modal-overlay.show { opacity: 1; visibility: visible; }

.global-modal-card {
    background: #141419; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px; padding: 35px; width: 400px; max-width: 90%;
    text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: translateY(20px); transition: transform 0.3s ease;
}
.global-modal-overlay.show .global-modal-card { transform: translateY(0); }

.global-modal-card h3 {
    margin: 0 0 15px; color: #ffffff; font-size: 1.5rem;
    font-weight: 800; letter-spacing: -0.5px; font-family: 'Minecraft', sans-serif;
}
.global-modal-card p {
    margin: 0 0 25px; color: #9aa0a6; line-height: 1.5; font-size: 0.95rem;
}

.global-highlight {
    color: #6a5aff; font-weight: bold; font-family: 'Minecraft', sans-serif;
}

.global-modal-actions { display: flex; gap: 12px; justify-content: center; }

.global-btn-confirm, .global-btn-cancel {
    flex: 1; padding: 12px 20px; border-radius: 12px; border: none; cursor: pointer;
    font-weight: 600; transition: all 0.3s ease; font-size: 0.95rem; font-family: 'Minecraft', sans-serif;
}

/* Кнопка "Подтвердить" (По умолчанию фирменная) */
.global-btn-confirm { background: #6a5aff; color: white; }
.global-btn-confirm:hover { background: rgba(106, 90, 255, 0.8); transform: translateY(-2px); }

/* Вариации кнопки "Подтвердить" */
.global-btn-confirm.success { background: #28c76f; }
.global-btn-confirm.success:hover { background: rgba(40, 199, 111, 0.8); }
.global-btn-confirm.danger { background: #ff5b5b; }
.global-btn-confirm.danger:hover { background: rgba(255, 91, 91, 0.8); }

/* Кнопка "Отмена" */
.global-btn-cancel { background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.06); color: #ffffff; }
.global-btn-cancel:hover { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.12); }
[data-theme="light"] .global-modal-content {
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.06);
    color: #2D2D2D;
}
[data-theme="light"] .global-modal-title {
    color: #2D2D2D;
}
[data-theme="light"] .global-modal-desc {
    color: #6C6C6C;
}
[data-theme="light"] .global-btn-cancel {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.06);
    color: #2D2D2D;
}
