/* ==========================================================================
   FEEDBACK & DELETE MODAL — Merkezi geri bildirim / silme onay modal stilleri
   Panel + Admin + Auth alanlarında ortak kullanılır (tek kaynak).
   Kendine yeterlidir; başka CSS dosyasına bağımlı değildir.
   ========================================================================== */

.feedback-modal-icon,
.delete-modal-icon {
    width: 80px;
    height: 80px;
    /* Dikey boşluk TEK KAYNAK burada: ikonun dışında genişleyen nabız
       halkaları (::after ~30px taşar) üst modal kenarına ve alttaki başlığa
       değmesin diye üstten/alttan ferah boşluk. Component'lerde/JS'te mb-3 YOK. */
    margin: 16px auto 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    position: relative;
    animation: feedback-pop 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dışında genişleyen halka (pulse ring) */
.feedback-modal-icon::before,
.delete-modal-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    animation: feedback-ring 1.8s ease-out 0.4s infinite;
}
.feedback-modal-icon::after,
.delete-modal-icon::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    animation: feedback-ring 1.8s ease-out 0.9s infinite;
}

/* Success (yeşil) */
.feedback-modal-icon--success {
    background: rgba(34, 197, 94, 0.18);
    color: #22c55e;
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.08);
}
/* Error + Delete (kırmızı) */
.feedback-modal-icon--error,
.delete-modal-icon {
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0.08);
}
/* Warning (turuncu) */
.feedback-modal-icon--warning {
    background: rgba(245, 158, 11, 0.18);
    color: #f59e0b;
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.08);
}
/* Info (mavi) */
.feedback-modal-icon--info {
    background: rgba(59, 130, 246, 0.18);
    color: #3b82f6;
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0.08);
}

@keyframes feedback-pop {
    0%   { transform: scale(0);    opacity: 0; }
    60%  { transform: scale(1.12); opacity: 1; }
    100% { transform: scale(1);    opacity: 1; }
}
@keyframes feedback-ring {
    0%   { transform: scale(0.85); opacity: 0.6; }
    100% { transform: scale(1.35); opacity: 0; }
}

/* Modal başlık + açıklama */
.feedback-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.75rem 0 0.5rem;
}
.feedback-modal-message {
    font-size: 0.95rem;
    color: var(--clr-secondary, #94a3b8);
    margin: 0;
    line-height: 1.55;
}

/* Birden fazla validation hatası — modal içinde liste */
.feedback-modal-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    text-align: left;
    display: inline-block;
}
.feedback-modal-list li {
    position: relative;
    padding: 0.25rem 0 0.25rem 1.25rem;
    font-size: 0.9rem;
    color: var(--clr-secondary, #94a3b8);
    line-height: 1.5;
}
.feedback-modal-list li::before {
    content: '\2022';
    position: absolute;
    left: 0.25rem;
    color: #ef4444;
    font-weight: 700;
}

/* Feedback modal CTA butonu — tipe göre gradient */
.feedback-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.75rem;
    min-width: 140px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.35);
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}
.feedback-modal-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 12px 28px rgba(20, 184, 166, 0.45);
}
.feedback-modal-btn:active { transform: translateY(0); }
.feedback-modal-btn--success { background: linear-gradient(135deg, #14b8a6, #0d9488); box-shadow: 0 8px 20px rgba(20, 184, 166, 0.35); }
.feedback-modal-btn--error   { background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35); }
.feedback-modal-btn--warning { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35); color: #1a1a1a; }
.feedback-modal-btn--info    { background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35); }
/* İptal (cam görünümlü, nötr) — confirm modal'da onay butonunun yanında */
.feedback-modal-btn--cancel {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
}
.feedback-modal-btn--cancel:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: none;
}

/* Delete modal butonları — kendine yeterli (btn-glass tanımı olmayan
   admin/auth alanlarında da düzgün görünsün diye modal'a scope'lu) */
#deleteModal .btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 1.4rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}
#deleteModal .btn-glass:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}
.btn-glass-danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}
.btn-glass-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fff;
}
