/* =========================================================
   Arttime Mezuniyet Panel - Buton Okunabilirlik Fix v47
   Amaç:
   - Hero/gradient alanlarda beyaz buton içinde beyaz yazı kalmasını engeller.
   - Hover/focus/disabled durumlarında yazı ve ikon kontrastını korur.
   - Önceki başlık beyaz force kuralı buton içindeki span/i etiketlerini ezmesin diye yüksek özgüllük kullanır.
   Bu dosya tüm CSS'lerden SONRA çağrılmalı.
========================================================= */

:root{
    --mezuniyet-pink:#bd1b6f;
    --mezuniyet-pink-dark:#7a123f;
    --mezuniyet-pink-soft:#fff1f7;
    --mezuniyet-border:rgba(189,27,111,.28);
}

/* Genel açık/white/light butonlar: beyaz zeminde beyaz yazı olmasın */
body .btn.btn-light,
body .btn.btn-white,
body .btn.btn-soft-light,
body a.btn.btn-light,
body a.btn.btn-white,
body button.btn.btn-light,
body button.btn.btn-white{
    background:#ffffff !important;
    border-color:rgba(189,27,111,.24) !important;
    color:var(--mezuniyet-pink-dark) !important;
    -webkit-text-fill-color:var(--mezuniyet-pink-dark) !important;
    box-shadow:0 10px 26px rgba(122,18,63,.08) !important;
}

body .btn.btn-light *,
body .btn.btn-white *,
body .btn.btn-soft-light *{
    color:var(--mezuniyet-pink-dark) !important;
    -webkit-text-fill-color:var(--mezuniyet-pink-dark) !important;
}

body .btn.btn-light:hover,
body .btn.btn-light:focus,
body .btn.btn-light:active,
body .btn.btn-white:hover,
body .btn.btn-white:focus,
body .btn.btn-white:active,
body .btn.btn-soft-light:hover,
body .btn.btn-soft-light:focus,
body .btn.btn-soft-light:active{
    background:#fff7fb !important;
    border-color:rgba(189,27,111,.42) !important;
    color:var(--mezuniyet-pink-dark) !important;
    -webkit-text-fill-color:var(--mezuniyet-pink-dark) !important;
}

body .btn.btn-light:hover *,
body .btn.btn-light:focus *,
body .btn.btn-light:active *,
body .btn.btn-white:hover *,
body .btn.btn-white:focus *,
body .btn.btn-white:active *,
body .btn.btn-soft-light:hover *,
body .btn.btn-soft-light:focus *,
body .btn.btn-soft-light:active *{
    color:var(--mezuniyet-pink-dark) !important;
    -webkit-text-fill-color:var(--mezuniyet-pink-dark) !important;
}

/* Hero içindeki light butonlar: başlık-beyaz kuralını özellikle ezer */
body [class*="hero"] .btn.btn-light,
body [class*="hero"] .btn.btn-white,
body [class*="hero"] .btn.btn-soft-light,
body .fp-print-hero .btn.btn-light,
body .member-album-hero .btn.btn-light,
body .album-admin-hero .btn.btn-light,
body .fp-dashboard-hero .btn.btn-light,
body .dash-hero .btn.btn-light{
    background:rgba(255,255,255,.96) !important;
    border-color:rgba(255,255,255,.78) !important;
    color:var(--mezuniyet-pink-dark) !important;
    -webkit-text-fill-color:var(--mezuniyet-pink-dark) !important;
    opacity:1 !important;
}

body [class*="hero"] .btn.btn-light *,
body [class*="hero"] .btn.btn-white *,
body [class*="hero"] .btn.btn-soft-light *,
body .fp-print-hero .btn.btn-light *,
body .member-album-hero .btn.btn-light *,
body .album-admin-hero .btn.btn-light *,
body .fp-dashboard-hero .btn.btn-light *,
body .dash-hero .btn.btn-light *{
    color:var(--mezuniyet-pink-dark) !important;
    -webkit-text-fill-color:var(--mezuniyet-pink-dark) !important;
}

body [class*="hero"] .btn.btn-light:hover,
body [class*="hero"] .btn.btn-light:focus,
body [class*="hero"] .btn.btn-light:active,
body [class*="hero"] .btn.btn-white:hover,
body [class*="hero"] .btn.btn-white:focus,
body [class*="hero"] .btn.btn-white:active,
body .fp-print-hero .btn.btn-light:hover,
body .member-album-hero .btn.btn-light:hover{
    background:#ffffff !important;
    border-color:#ffffff !important;
    color:var(--mezuniyet-pink-dark) !important;
    -webkit-text-fill-color:var(--mezuniyet-pink-dark) !important;
    transform:translateY(-1px);
}

body [class*="hero"] .btn.btn-light:hover *,
body [class*="hero"] .btn.btn-light:focus *,
body [class*="hero"] .btn.btn-light:active *,
body [class*="hero"] .btn.btn-white:hover *,
body [class*="hero"] .btn.btn-white:focus *,
body [class*="hero"] .btn.btn-white:active *,
body .fp-print-hero .btn.btn-light:hover *,
body .member-album-hero .btn.btn-light:hover *{
    color:var(--mezuniyet-pink-dark) !important;
    -webkit-text-fill-color:var(--mezuniyet-pink-dark) !important;
}

/* Disabled light buton: pasif görünür ama yazı kaybolmaz */
body .btn.btn-light:disabled,
body .btn.btn-light.disabled,
body .btn.btn-white:disabled,
body .btn.btn-white.disabled,
body [class*="hero"] .btn.btn-light:disabled,
body [class*="hero"] .btn.btn-light.disabled,
body [class*="hero"] .btn.btn-white:disabled,
body [class*="hero"] .btn.btn-white.disabled,
body [class*="hero"] button[disabled].btn-light,
body [class*="hero"] a.disabled.btn-light{
    background:rgba(255,255,255,.88) !important;
    border-color:rgba(255,255,255,.65) !important;
    color:#9f1d55 !important;
    -webkit-text-fill-color:#9f1d55 !important;
    opacity:.82 !important;
    cursor:not-allowed !important;
    box-shadow:none !important;
}

body .btn.btn-light:disabled *,
body .btn.btn-light.disabled *,
body .btn.btn-white:disabled *,
body .btn.btn-white.disabled *,
body [class*="hero"] .btn.btn-light:disabled *,
body [class*="hero"] .btn.btn-light.disabled *,
body [class*="hero"] .btn.btn-white:disabled *,
body [class*="hero"] .btn.btn-white.disabled *{
    color:#9f1d55 !important;
    -webkit-text-fill-color:#9f1d55 !important;
}

/* Outline-light butonlar: normalde beyaz yazı, hover'da koyu pembe yazı */
body [class*="hero"] .btn.btn-outline-light,
body .fp-print-hero .btn.btn-outline-light,
body .member-album-hero .btn.btn-outline-light,
body .album-admin-hero .btn.btn-outline-light,
body .fp-dashboard-hero .btn.btn-outline-light,
body .dash-hero .btn.btn-outline-light{
    background:rgba(255,255,255,.08) !important;
    border-color:rgba(255,255,255,.72) !important;
    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff !important;
    opacity:1 !important;
}

body [class*="hero"] .btn.btn-outline-light *,
body .fp-print-hero .btn.btn-outline-light *,
body .member-album-hero .btn.btn-outline-light *,
body .album-admin-hero .btn.btn-outline-light *,
body .fp-dashboard-hero .btn.btn-outline-light *,
body .dash-hero .btn.btn-outline-light *{
    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff !important;
}

body [class*="hero"] .btn.btn-outline-light:hover,
body [class*="hero"] .btn.btn-outline-light:focus,
body [class*="hero"] .btn.btn-outline-light:active,
body .fp-print-hero .btn.btn-outline-light:hover,
body .member-album-hero .btn.btn-outline-light:hover,
body .album-admin-hero .btn.btn-outline-light:hover,
body .fp-dashboard-hero .btn.btn-outline-light:hover,
body .dash-hero .btn.btn-outline-light:hover{
    background:#ffffff !important;
    border-color:#ffffff !important;
    color:var(--mezuniyet-pink-dark) !important;
    -webkit-text-fill-color:var(--mezuniyet-pink-dark) !important;
}

body [class*="hero"] .btn.btn-outline-light:hover *,
body [class*="hero"] .btn.btn-outline-light:focus *,
body [class*="hero"] .btn.btn-outline-light:active *,
body .fp-print-hero .btn.btn-outline-light:hover *,
body .member-album-hero .btn.btn-outline-light:hover *,
body .album-admin-hero .btn.btn-outline-light:hover *,
body .fp-dashboard-hero .btn.btn-outline-light:hover *,
body .dash-hero .btn.btn-outline-light:hover *{
    color:var(--mezuniyet-pink-dark) !important;
    -webkit-text-fill-color:var(--mezuniyet-pink-dark) !important;
}

/* Pembe/primary butonlar da hover'da beyaz yazıyı korusun */
body .btn.btn-primary,
body .btn.btn-primary:hover,
body .btn.btn-primary:focus,
body .btn.btn-primary:active,
body .btn.btn-gradient,
body .btn.btn-gradient:hover,
body .btn.btn-gradient:focus,
body .btn.btn-gradient:active,
body .btn.fp-print-submit.btn-primary,
body .btn.album-action.btn-primary{
    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff !important;
}
body .btn.btn-primary *,
body .btn.btn-primary:hover *,
body .btn.btn-gradient *,
body .btn.btn-gradient:hover *,
body .btn.fp-print-submit.btn-primary *,
body .btn.album-action.btn-primary *{
    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff !important;
}

/* Outline renkli butonlar: beyaz zeminde okunur, hover'da beyaz yazı okunur */
body .btn.btn-outline-primary,
body .btn.btn-outline-secondary,
body .btn.btn-outline-success,
body .btn.btn-outline-danger,
body .btn.btn-outline-warning,
body .btn.btn-outline-info{
    background:#ffffff !important;
    font-weight:800;
}
body .btn.btn-outline-primary{color:#bd1b6f !important;-webkit-text-fill-color:#bd1b6f !important;border-color:rgba(189,27,111,.45) !important;}
body .btn.btn-outline-secondary{color:#475569 !important;-webkit-text-fill-color:#475569 !important;border-color:rgba(71,85,105,.28) !important;}
body .btn.btn-outline-success{color:#15803d !important;-webkit-text-fill-color:#15803d !important;border-color:rgba(21,128,61,.35) !important;}
body .btn.btn-outline-danger{color:#dc2626 !important;-webkit-text-fill-color:#dc2626 !important;border-color:rgba(220,38,38,.35) !important;}
body .btn.btn-outline-warning{color:#a16207 !important;-webkit-text-fill-color:#a16207 !important;border-color:rgba(161,98,7,.35) !important;}
body .btn.btn-outline-info{color:#0369a1 !important;-webkit-text-fill-color:#0369a1 !important;border-color:rgba(3,105,161,.35) !important;}

body .btn.btn-outline-primary *,
body .btn.btn-outline-secondary *,
body .btn.btn-outline-success *,
body .btn.btn-outline-danger *,
body .btn.btn-outline-warning *,
body .btn.btn-outline-info *{
    -webkit-text-fill-color:inherit !important;
}

body .btn.btn-outline-primary:hover,
body .btn.btn-outline-primary:focus,
body .btn.btn-outline-primary:active{background:#bd1b6f !important;border-color:#bd1b6f !important;color:#ffffff !important;-webkit-text-fill-color:#ffffff !important;}
body .btn.btn-outline-secondary:hover,
body .btn.btn-outline-secondary:focus,
body .btn.btn-outline-secondary:active{background:#475569 !important;border-color:#475569 !important;color:#ffffff !important;-webkit-text-fill-color:#ffffff !important;}
body .btn.btn-outline-success:hover,
body .btn.btn-outline-success:focus,
body .btn.btn-outline-success:active{background:#15803d !important;border-color:#15803d !important;color:#ffffff !important;-webkit-text-fill-color:#ffffff !important;}
body .btn.btn-outline-danger:hover,
body .btn.btn-outline-danger:focus,
body .btn.btn-outline-danger:active{background:#dc2626 !important;border-color:#dc2626 !important;color:#ffffff !important;-webkit-text-fill-color:#ffffff !important;}
body .btn.btn-outline-warning:hover,
body .btn.btn-outline-warning:focus,
body .btn.btn-outline-warning:active{background:#a16207 !important;border-color:#a16207 !important;color:#ffffff !important;-webkit-text-fill-color:#ffffff !important;}
body .btn.btn-outline-info:hover,
body .btn.btn-outline-info:focus,
body .btn.btn-outline-info:active{background:#0369a1 !important;border-color:#0369a1 !important;color:#ffffff !important;-webkit-text-fill-color:#ffffff !important;}

body .btn.btn-outline-primary:hover *,
body .btn.btn-outline-primary:focus *,
body .btn.btn-outline-primary:active *,
body .btn.btn-outline-secondary:hover *,
body .btn.btn-outline-secondary:focus *,
body .btn.btn-outline-secondary:active *,
body .btn.btn-outline-success:hover *,
body .btn.btn-outline-success:focus *,
body .btn.btn-outline-success:active *,
body .btn.btn-outline-danger:hover *,
body .btn.btn-outline-danger:focus *,
body .btn.btn-outline-danger:active *,
body .btn.btn-outline-warning:hover *,
body .btn.btn-outline-warning:focus *,
body .btn.btn-outline-warning:active *,
body .btn.btn-outline-info:hover *,
body .btn.btn-outline-info:focus *,
body .btn.btn-outline-info:active *{
    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff !important;
}

/* fp-print-tabs: sekme butonları okunaklı kalsın */
body .fp-print-tabs a{
    color:#bd1b6f !important;
    -webkit-text-fill-color:#bd1b6f !important;
    background:rgba(255,255,255,.92) !important;
    border-color:rgba(255,255,255,.58) !important;
}
body .fp-print-tabs a *,
body .fp-print-tabs a i{
    color:#bd1b6f !important;
    -webkit-text-fill-color:#bd1b6f !important;
}
body .fp-print-tabs a.active,
body .fp-print-tabs a:hover,
body .fp-print-tabs a:focus{
    background:#ffffff !important;
    color:#7a123f !important;
    -webkit-text-fill-color:#7a123f !important;
    border-color:#ffffff !important;
}
body .fp-print-tabs a.active *,
body .fp-print-tabs a:hover *,
body .fp-print-tabs a:focus *{
    color:#7a123f !important;
    -webkit-text-fill-color:#7a123f !important;
}

/* Bootstrap disabled geneli: yazı kaybolmasın */
body .btn:disabled,
body .btn.disabled,
body fieldset:disabled .btn{
    opacity:.88 !important;
    text-shadow:none !important;
}

/* Mobilde butonlar taşmasın */
@media (max-width: 575.98px){
    body [class*="hero"] .btn,
    body .fp-print-tabs a{
        width:100%;
        justify-content:center;
        text-align:center;
    }
}
