/* ==========================================================================
   Aika Dernek — yönetim paneli görsel katmanı

   Filament'in hazır (derlenmiş) temasının üzerine biner. Ayrı bir Tailwind
   tema build'i bilinçli olarak kullanılmıyor: deploy yalnızca "git push" ile
   yapılıyor, sunucuda npm/vite yok. Bu yüzden düzeltmeler burada, saf CSS ile.

   Renkler Filament'in ürettiği CSS değişkenlerinden okunur:
   rgba(var(--primary-600), 1) → panel birincil rengi (emerald).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Genel tipografi
   -------------------------------------------------------------------------- */
.fi-body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   2. Kenar çubuğu (sidebar)
   Varsayılan tema kalemleri çok iri ve gruplar arası boşluk fazla; menü
   ekrana sığmayıp panel içinde ikinci bir kaydırma çubuğu doğuruyordu.
   -------------------------------------------------------------------------- */
/* Marka alanı ile üst çubuk aynı ince çizgiyi paylaşsın (kalın gölge yerine). */
.fi-sidebar-header {
    box-shadow: none;
    border-bottom: 1px solid rgb(243 244 246);
    padding-inline: 1.25rem;
}

.dark .fi-sidebar-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.fi-logo {
    font-size: 1.0625rem;
    line-height: 1.25rem;
    letter-spacing: -0.015em;
}

.fi-sidebar-nav {
    gap: 1rem;
    padding: 0.875rem 0.75rem 1.5rem;
    /* İç kaydırma çubuğu ince ve sessiz olsun — kalın gri çubuk "panel içinde
       panel" hissi veriyordu. */
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.fi-sidebar-nav-groups {
    gap: 1rem;
}

/* Grup başlıkları: küçük, büyük harf, seyrek — içerikten net ayrışsın. */
.fi-sidebar-group {
    gap: 0.125rem;
}

.fi-sidebar-group-button {
    padding: 0.25rem 0.625rem;
}

.fi-sidebar-group-label {
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.25rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgb(156 163 175);
}

.dark .fi-sidebar-group-label {
    color: rgb(107 114 128);
}

/* Aç/kapa oku sürekli görünmesin — sadece grubun üzerine gelince. */
.fi-sidebar-group-collapse-button {
    opacity: 0;
    transition: opacity 100ms ease;
}

.fi-sidebar-group-button:hover .fi-sidebar-group-collapse-button,
.fi-sidebar-group-button:focus-within .fi-sidebar-group-collapse-button {
    opacity: 1;
}

/* Menü kalemleri */
.fi-sidebar-item-button {
    gap: 0.625rem;
    padding: 0.4375rem 0.625rem;
    border-radius: 0.5rem;
}

.fi-sidebar-item-icon {
    height: 1.25rem;
    width: 1.25rem;
}

.fi-sidebar-item-label {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.25rem;
}

/* Aktif kalem: gri blok yerine marka renginde ince vurgu + sol şerit. */
.fi-sidebar-item.fi-active > .fi-sidebar-item-button {
    background-color: rgba(var(--primary-600), 0.09);
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-button::before {
    content: '';
    position: absolute;
    inset-inline-start: -0.125rem;
    top: 50%;
    height: 1.125rem;
    width: 0.1875rem;
    transform: translateY(-50%);
    border-radius: 9999px;
    background-color: rgba(var(--primary-600), 1);
}

.dark .fi-sidebar-item.fi-active > .fi-sidebar-item-button {
    background-color: rgba(var(--primary-400), 0.12);
}

.dark .fi-sidebar-item.fi-active > .fi-sidebar-item-button::before {
    background-color: rgba(var(--primary-400), 1);
}

/* Menüdeki sayaç rozetleri: küçük ve sessiz. */
.fi-sidebar-item .fi-badge {
    min-height: 1.125rem;
    padding-inline: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
}

.fi-sidebar-nav::-webkit-scrollbar {
    width: 0.375rem;
}

.fi-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.fi-sidebar-nav::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 9999px;
}

.fi-sidebar-nav:hover::-webkit-scrollbar-thumb {
    background-color: rgba(148, 163, 184, 0.4);
}

/* --------------------------------------------------------------------------
   3. Üst çubuk (topbar)
   -------------------------------------------------------------------------- */
.fi-topbar nav {
    box-shadow: none;
    border-bottom: 1px solid rgb(243 244 246);
}

.dark .fi-topbar nav {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------------------------------
   4. Sayfa gövdesi
   Başlık ile içerik arası varsayılan boşluk gereğinden fazlaydı.
   -------------------------------------------------------------------------- */
.fi-page > section {
    gap: 1.5rem;
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
}

.fi-header-heading {
    font-size: 1.5rem;
    line-height: 2rem;
    letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   5. Kartlar (section / widget)
   -------------------------------------------------------------------------- */
/* Not: Filament kart kenarlığını ring-1 ile, yani box-shadow üzerinden çiziyor.
   box-shadow'u tamamen ezmek kenarlığı siler — bu yüzden ezildiği yerlerde
   (hover) çizgi elle geri konuyor. */
.fi-section,
.fi-wi-stats-overview-stat {
    border-radius: 0.75rem;
}

/* Özet kartları: daha derli toplu, sayı gövdesi ölçülü. */
.fi-wi-stats-overview-stat {
    padding: 1.125rem 1.25rem;
    transition: box-shadow 150ms ease;
}

.fi-wi-stats-overview-stat:hover {
    box-shadow: 0 0 0 1px rgba(2, 6, 23, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
}

.dark .fi-wi-stats-overview-stat:hover {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.45);
}

.fi-wi-stats-overview-stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.fi-wi-stats-overview-stat-value {
    font-size: 1.75rem;
    line-height: 2.25rem;
    letter-spacing: -0.02em;
}

.fi-wi-stats-overview-stat-description {
    font-size: 0.75rem;
}

.fi-wi-stats-overview-stat-description-icon {
    height: 1rem;
    width: 1rem;
}

/* Grafikli kartın alt şeridi tüm kartın zeminini bastırmasın. */
.fi-wi-stats-overview-stat-chart canvas {
    height: 1.25rem;
}

/* --------------------------------------------------------------------------
   6. Karşılama başlığı (DernekWelcome widget'ı)
   Filament'in hazır CSS'i yalnızca kendi kullandığı Tailwind sınıflarını
   içeriyor; bu yüzden özel widget kendi sınıflarıyla, burada giydiriliyor.
   -------------------------------------------------------------------------- */
.aika-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1.125rem 1.25rem;
    border-radius: 0.75rem;
    background-color: #fff;
    --ring-color: rgba(2, 6, 23, 0.05);
    box-shadow: 0 0 0 1px var(--ring-color), 0 1px 2px 0 rgba(15, 23, 42, 0.04);
}

.dark .aika-hero {
    background-color: rgb(17 24 39);
    --ring-color: rgba(255, 255, 255, 0.1);
}

.aika-hero__identity {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
}

.aika-hero__avatar {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    height: 2.75rem;
    width: 2.75rem;
    border-radius: 9999px;
    background-color: rgba(var(--primary-600), 0.1);
    color: rgba(var(--primary-600), 1);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.dark .aika-hero__avatar {
    background-color: rgba(var(--primary-400), 0.15);
    color: rgba(var(--primary-400), 1);
}

.aika-hero__avatar--image {
    object-fit: cover;
}

.aika-hero__text {
    min-width: 0;
}

.aika-hero__greeting {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1rem;
    color: rgba(var(--primary-600), 1);
}

.dark .aika-hero__greeting {
    color: rgba(var(--primary-400), 1);
}

.aika-hero__title {
    margin-top: 0.125rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5rem;
    letter-spacing: -0.02em;
    color: rgb(3 7 18);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark .aika-hero__title {
    color: #fff;
}

.aika-hero__meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.125rem;
    font-size: 0.75rem;
    line-height: 1rem;
    color: rgb(107 114 128);
}

.dark .aika-hero__meta {
    color: rgb(156 163 175);
}

.aika-hero__dot {
    color: rgb(209 213 219);
}

.dark .aika-hero__dot {
    color: rgb(75 85 99);
}

.aika-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.aika-hero__action {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.25rem;
    color: rgb(55 65 81);
    box-shadow: inset 0 0 0 1px rgba(2, 6, 23, 0.1);
    transition: background-color 100ms ease, color 100ms ease, box-shadow 100ms ease;
}

.aika-hero__action:hover {
    background-color: rgba(var(--primary-600), 0.07);
    color: rgba(var(--primary-700), 1);
    box-shadow: inset 0 0 0 1px rgba(var(--primary-600), 0.3);
}

.dark .aika-hero__action {
    color: rgb(229 231 235);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.dark .aika-hero__action:hover {
    background-color: rgba(var(--primary-400), 0.12);
    color: rgba(var(--primary-400), 1);
}

.aika-hero__action--primary {
    background-color: rgba(var(--primary-600), 1);
    color: #fff;
    box-shadow: none;
}

.aika-hero__action--primary:hover,
.dark .aika-hero__action--primary:hover {
    background-color: rgba(var(--primary-500), 1);
    color: #fff;
    box-shadow: none;
}

.dark .aika-hero__action--primary {
    box-shadow: none;
    color: #fff;
}

.aika-hero__action-icon {
    height: 1rem;
    width: 1rem;
    flex: none;
}

/* --------------------------------------------------------------------------
   7. Filament'in derlenmiş CSS'inde bulunmayan yardımcı sınıflar
   Panel içindeki özel Blade sayfaları (Uygulamayı Paylaş, Dernek Ayarları)
   bu sınıfları kullanıyor ama Filament kendi build'inde üretmediği için
   ölçüsüz/renksiz kalıyorlardı. Yeni tasarımlarda bunlara yaslanmayın;
   member-import ve karşılama widget'ındaki gibi kendi sınıflarınızı yazın.
   -------------------------------------------------------------------------- */
.mb-1 { margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 0.75rem; }
.h-44 { height: 11rem; }
.w-44 { width: 11rem; }
.min-w-\[260px\] { min-width: 260px; }

.bg-amber-50 { background-color: rgb(255 251 235); }
.border-amber-200 { border-color: rgb(253 230 138); }
.text-amber-600 { color: rgb(217 119 6); }
.text-amber-700 { color: rgb(180 83 9); }
.text-amber-900 { color: rgb(120 53 15); }

.dark\:text-gray-100:is(.dark *) { color: rgb(243 244 246); }
.dark\:text-gray-300:is(.dark *) { color: rgb(209 213 219); }
.dark .bg-amber-50 { background-color: rgba(217, 119, 6, 0.1); }
.dark .border-amber-200 { border-color: rgba(217, 119, 6, 0.3); }
.dark .text-amber-900 { color: rgb(252 211 77); }
.dark .text-amber-700 { color: rgb(251 191 36); }

/* --------------------------------------------------------------------------
   8. Tablolar — satır yüksekliği ve başlık tonu
   -------------------------------------------------------------------------- */
.fi-ta-header-cell {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fi-ta-ctn {
    border-radius: 0.75rem;
}

/* --------------------------------------------------------------------------
   9. Üst bar — süper adminin aktif dernek seçicisi

   Yalnızca süper adminde render edilir (bkz. ActiveTenant::isSwitchable).
   Dar ekranda etiket gizlenir, seçici tek başına kalır.
   -------------------------------------------------------------------------- */
.dernek-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-inline-end: 0.5rem;
}

.dernek-switcher-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgb(107 114 128);
    white-space: nowrap;
}

.dark .dernek-switcher-label {
    color: rgb(156 163 175);
}

.dernek-switcher .fi-input-wrp {
    min-width: 12rem;
}

@media (max-width: 40rem) {
    .dernek-switcher-label {
        display: none;
    }

    .dernek-switcher .fi-input-wrp {
        min-width: 9rem;
    }
}

/* --------------------------------------------------------------------------
   N. "Uygulamayı Paylaş" — nasıl çalışır anlatımı

   Dernek yöneticilerinin çoğu süreci sözlü anlatımla öğreniyordu; aynı üç
   soru her dernekte yeniden soruluyordu. Anlatım ekrana taşındı: dört adım
   + sık sorulanlar. Filament'in derlenmiş teması rastgele Tailwind sınıfı
   içermediği için düzen buradaki saf CSS ile kuruluyor.
   -------------------------------------------------------------------------- */
.sa-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
}

.sa-step {
    position: relative;
    padding: 1.125rem 1rem 1rem;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
    background: rgb(255 255 255);
}

.dark .sa-step {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.sa-step-num {
    position: absolute;
    top: -0.6rem;
    inset-inline-start: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(var(--primary-600), 1);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.sa-step-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgba(var(--primary-600), 0.1);
    color: rgba(var(--primary-600), 1);
    margin-bottom: 0.75rem;
}

.sa-step-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.sa-step h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgb(17 24 39);
    margin-bottom: 0.25rem;
}

.dark .sa-step h4 {
    color: rgb(243 244 246);
}

.sa-step p {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgb(107 114 128);
}

.dark .sa-step p {
    color: rgb(156 163 175);
}

/* Sık sorulanlar — yöneticinin ilk gün sorduğu üç soru. */
.sa-faq {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sa-faq details {
    border: 1px solid rgb(229 231 235);
    border-radius: 0.625rem;
    background: rgb(249 250 251);
}

.dark .sa-faq details {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.sa-faq summary {
    cursor: pointer;
    padding: 0.75rem 0.9375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(31 41 55);
    list-style: none;
}

.sa-faq summary::-webkit-details-marker {
    display: none;
}

.sa-faq summary::before {
    content: "+";
    display: inline-block;
    width: 1rem;
    font-weight: 700;
    color: rgba(var(--primary-600), 1);
}

.sa-faq details[open] summary::before {
    content: "−";
}

.dark .sa-faq summary {
    color: rgb(229 231 235);
}

.sa-faq p {
    padding: 0 0.9375rem 0.875rem 1.9375rem;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: rgb(75 85 99);
}

.dark .sa-faq p {
    color: rgb(156 163 175);
}
