/*
 * components.css — kullanıldığı HER view'de karakter-birebir olan paylaşılan bileşenler.
 * theme.php partial'ından SONRA yüklenir (token'lar tanımlı: var(--ifs-accent)).
 * Buraya SADECE her yerde birebir aynı kural girer; gruba göre sapan bileşenler
 * (buton padding'i, tablo, modal genişliği) grup-css'te (app.css / admin.css) kalır.
 * Analiz + grep doğrulaması: docs/superpowers/plans/_analysis/common-css.md
 */

/* Form etiketi — 22 view birebir; sapan 5 view kendi inline'ıyla tam override eder */
.field label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    color: #6b7684;
    font-weight: 600;
}

/* Girdi odak vurgusu — sade + genişletilmiş selektör view'lerinde aynı gövde */
.field input:focus {
    outline: none;
    border-color: var(--ifs-accent);
}

/* Toast bildirim — user-app/expenses/admin'de 27 view birebir */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #343232;
    color: #fff;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: opacity .2s;
    z-index: 60;
}
.toast.show { opacity: 1; }
.toast.error { background: #e5534b; }

/* Soluk metin — global yalnız renk deklare eder; varyantlar (padding/font-size) inline'da kalır */
.muted { color: #9aa4b0; }

/* Sayfa başlığı şeridi — 33 view'da ayrı ayrı tanımlıydı (7 farklı varyant).
   TAM tanım burada; kısmi tanımlar üst üste binince alttan sızıntı oluyordu,
   o yüzden view'lardaki ve grup CSS'lerindeki .header kuralları kaldırıldı.
   Standart, 18 dosyada birebir aynı olan varyant. Ayrıntı: docs/ui-karar-matrisi.md */
.header {
    background: #fff;
    padding: 18px 28px;
    border-bottom: 1px solid #e3e6ea;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

/* Marka diyaloğu — native alert/confirm yerine (common.js: ihConfirm/ihAlert).
   Native diyalog tarayıcı kimliğiyle ve sistem temasıyla çıkıyor, marka kitine
   uymuyordu. display BURADA yönetilmez; açılma .acik sınıfıyla olur. */
.ih-dialog-ortu {
    position: fixed;
    inset: 0;
    background: rgba(52, 50, 50, .55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9000;
    opacity: 0;
    transition: opacity .14s ease;
}
.ih-dialog-ortu.acik { opacity: 1; }
.ih-dialog {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
    width: 100%;
    max-width: 440px;
    padding: 22px 24px 18px;
    transform: translateY(8px) scale(.98);
    transition: transform .16s ease;
}
.ih-dialog-ortu.acik .ih-dialog { transform: none; }
.ih-dialog-bas {
    font-size: 17px;
    font-weight: 700;
    color: var(--ifs-slate, #343232);
    margin-bottom: 8px;
}
.ih-dialog-metin {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ifs-text, #3e4a58);
    white-space: pre-line;
}
.ih-dialog-alt {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
.ih-dlg-btn {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.ih-dlg-iptal {
    background: #fff;
    border-color: #d9dde3;
    color: #5c6672;
}
.ih-dlg-iptal:hover { background: #f4f5f7; }
.ih-dlg-onay {
    background: var(--ifs-accent, #fa9c28);
    color: #fff;
}
.ih-dlg-onay:hover { filter: brightness(.95); }
.ih-dlg-btn:focus-visible {
    outline: 2px solid var(--ifs-accent, #fa9c28);
    outline-offset: 2px;
}
/* Geri alınamaz işlemler (silme vb.) */
.ih-dialog.danger .ih-dlg-onay { background: #e5534b; }

/* Kısa bildirim (common.js: ihToast). Mevcut .toast'tan ayrı bir sınıf:
   .toast 27 view'de kullanılıyor, davranışı değiştirilmedi. */
.ih-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    max-width: 380px;
    background: var(--ifs-slate, #343232);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    border-left: 4px solid var(--ifs-accent, #fa9c28);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    font-size: 14px;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 9100;
    pointer-events: none;
}
.ih-toast.acik { opacity: 1; transform: none; }
.ih-toast.ok { border-left-color: #2d7d6f; }
.ih-toast.error { border-left-color: #e5534b; }
