﻿/* resources/css/filament/admin/theme.css */

:root {
    --bg-dark: #0f1115;
    --sidebar-bg: #161b22;
    --card-bg: #1c2128;
    --border-color: #2d333b;
    --primary-neon: #2ea043;
    --danger: #da3633;
    --gold: #d29922;
    --blue: #388bfd;
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
}

/* GLOBAL RESET */
body, .fi-body { background-color: var(--bg-dark) !important; color: var(--text-main) !important; font-family: 'Inter', sans-serif !important; }
.fi-main { background-color: var(--bg-dark) !important; }
.fi-header-heading { color: #fff !important; }

/* ========================================
   FÄ°LAMENT WIDGET CSS'LERÄ°NÄ° TAMAMEN SIFIRLA
   TÃ¼m .fi-wi-* sÄ±nÄ±flarÄ±nÄ± engelle
======================================== */

/* TÃ¼m Filament widget stillerini sÄ±fÄ±rla */
.fi-wi-widget,
.fi-wi-stats-overview-stat,
.fi-wi-chart,
.fi-wi-stats-overview,
.fi-wi-stat,
.fi-wi-stats-overview-stat-value,
.fi-wi-stats-overview-stat-label,
.fi-wi-stats-overview-stat-description,
.fi-wi-stats-overview-stat-icon,
.fi-wi-chart-heading,
.fi-wi-chart-footer {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    --tw-bg-opacity: 0 !important;
    --tw-shadow: none !important;
    --tw-ring-opacity: 0 !important;
}

/* Widget grid container */
.fi-widgets-grid > div,
.fi-widgets-grid {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

/* Widget grid columns are controlled by Filament (Dashboard::getColumns / widget columnSpan). */

/* KPI grid container override - Dashboard iÃ§in 5'li */
.kpi-grid-container-5 {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
}

/* KPI grid container override - Dashboard iÃ§in 6'lÄ± */
.kpi-grid-container-6 {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
}

/* KPI grid container override - KullanÄ±cÄ±lar iÃ§in 4'lÃ¼ */
.kpi-grid-container-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
}

@media (max-width: 1280px) {
    .kpi-grid-container-5,
    .kpi-grid-container-6,
    .kpi-grid-container-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .kpi-grid-container-5,
    .kpi-grid-container-6,
    .kpi-grid-container-4 {
        grid-template-columns: 1fr !important;
    }
}

/* SIDEBAR TASARIMI */
.fi-sidebar { background-color: var(--sidebar-bg) !important; border-right: 1px solid var(--border-color) !important; }
.fi-sidebar-header { background-color: var(--sidebar-bg) !important; border-bottom: 1px solid var(--border-color) !important; }
.fi-sidebar-group-label span { color: #484f58 !important; font-weight: 700; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }

.fi-sidebar-item-button { 
    color: #8b949e !important; 
    border-radius: 6px !important; 
    transition: all 0.2s !important; 
}
.fi-sidebar-item-button:hover { background-color: rgba(255, 255, 255, 0.04) !important; color: #fff !important; }

.fi-sidebar-item-active .fi-sidebar-item-button {
    background-color: rgba(46, 160, 67, 0.15) !important;
    color: var(--primary-neon) !important;
    box-shadow: inset 3px 0 0 0 var(--primary-neon) !important;
}
.fi-sidebar-item-active .fi-sidebar-item-icon { color: var(--primary-neon) !important; }

/* --- Ã–ZEL BÄ°LEÅENLER --- */

/* 1. ACÄ°L DURUM BARI */
.urgent-bar {
    background: linear-gradient(to right, rgba(218, 54, 51, 0.15), rgba(218, 54, 51, 0.05));
    border: 1px solid rgba(218, 54, 51, 0.3);
    padding: 12px 20px;
    border-radius: 8px;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
}
.urgent-content { color: var(--text-main); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.urgent-amount { color: var(--danger); font-weight: 700; margin-left: 5px; }
/* Removed pulse animation (requested). */

/* 2. KPI KARTLARI (5'li Grid YapÄ±sÄ±) */
.kpi-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 EÅŸit SÃ¼tun */
    gap: 20px;
    margin-bottom: 25px;
}
@media (max-width: 1280px) { .kpi-grid-container { grid-template-columns: repeat(2, 1fr); } }

.kpi-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    display: flex; flex-direction: column;
    min-height: 160px;
    transition: border-color 0.3s;
}
.kpi-card:hover { border-color: var(--border-color); }
.kpi-card.highlight {
    background: radial-gradient(circle at top right, rgba(210, 153, 34, 0.05), var(--card-bg));
    border-color: rgba(210, 153, 34, 0.3);
}

.kpi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.kpi-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.icon-box { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.icon-box svg { width: 20px; height: 20px; }

.kpi-value { font-size: 24px; font-weight: 700; margin-bottom: 5px; color: #fff; }
.kpi-breakdown { border-top: 1px solid var(--border-color); padding-top: 10px; margin-top: auto; }
.breakdown-row { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 4px; color: var(--text-muted); }
.breakdown-row strong { color: var(--text-main); }
.breakdown-row.total-row {
    border-top: 1px solid rgba(45, 51, 59, 0.5);
    margin-top: 4px;
    padding-top: 6px;
    font-weight: 600;
}
.breakdown-row.total-row span { color: #fff; }

/* ========================================
   CHURN PAGE
======================================== */

.churn-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}
@media (max-width: 1280px) { .churn-kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .churn-kpi-grid { grid-template-columns: 1fr; } }

.churn-kpi-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.0)) , var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 18px 16px 18px;
    overflow: hidden;
    box-shadow: none;
    min-height: 120px;
}
.churn-kpi-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    opacity: 0.9;
}
.churn-kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.churn-kpi-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.churn-kpi-value {
    margin-top: 10px;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.churn-kpi-sub {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.3;
}

.churn-icon {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}
.churn-icon svg { width: 18px; height: 18px; color: #c9d1d9; }

.churn-kpi-indigo::before { background: linear-gradient(180deg, rgba(56,139,253,1), rgba(99,102,241,0.7)); }
.churn-kpi-amber::before { background: linear-gradient(180deg, rgba(210,153,34,1), rgba(210,153,34,0.6)); }
.churn-kpi-emerald::before { background: linear-gradient(180deg, rgba(46,160,67,1), rgba(46,160,67,0.6)); }

.churn-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.0)) , var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px;
    box-shadow: none;
}
.churn-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.churn-panel-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}
.churn-panel-sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.churn-reason-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (max-width: 768px) { .churn-reason-grid { grid-template-columns: 1fr; } }

.churn-reason-card {
    background: rgba(0,0,0,0.20);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 14px;
}
.churn-reason-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.churn-reason-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
.churn-reason-val {
    font-size: 12px;
    font-weight: 700;
    color: #c9d1d9;
}
.churn-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #8b949e;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.churn-bar {
    margin-top: 10px;
    height: 9px;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
    overflow: hidden;
}
.churn-bar-fill {
    height: 100%;
    border-radius: 999px;
    width: 0%;
}

.churn-amber .churn-dot { background: var(--gold); }
.churn-amber .churn-bar-fill { background: linear-gradient(90deg, rgba(210,153,34,0.95), rgba(210,153,34,0.55)); }

.churn-sky .churn-dot { background: var(--blue); }
.churn-sky .churn-bar-fill { background: linear-gradient(90deg, rgba(56,139,253,0.95), rgba(56,139,253,0.55)); }

.churn-rose .churn-dot { background: var(--danger); }
.churn-rose .churn-bar-fill { background: linear-gradient(90deg, rgba(218,54,51,0.95), rgba(218,54,51,0.55)); }

.churn-emerald .churn-dot { background: var(--primary-neon); }
.churn-emerald .churn-bar-fill { background: linear-gradient(90deg, rgba(46,160,67,0.95), rgba(46,160,67,0.55)); }

/* --- CHART VE WIDGET DÃœZELTMELERÄ° (FINAL - BALYOZ YÃ–NTEMÄ°) --- */

/*
 * PROBLEM: Filament/Tailwind "bg-white dark:bg-gray-900" sÄ±nÄ±flarÄ±
 * bizim CSS'imizi eziyor Ã§Ã¼nkÃ¼ --tw-bg-opacity deÄŸiÅŸkenini kullanÄ±yor.
 * Ã‡Ã–ZÃœM: Hem background-color hem --tw-bg-opacity'yi !important ile eziyoruz.
 */

/* 1. TÃ¼m Widget Container'larÄ±nÄ± Eziyoruz */
.fi-wi-widget,
.fi-wi-stats-overview-stat,
.fi-wi-chart {
    background-color: #1c2128 !important;
    --tw-bg-opacity: 1 !important;
    border: 1px solid #2d333b !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* 2. Chart Ä°Ã§indeki Section'lar */
.fi-wi-widget .fi-section,
.fi-wi-widget .fi-section-content-ctn,
.fi-wi-widget .fi-section-content {
    background-color: transparent !important;
    --tw-bg-opacity: 0 !important;
}

/* 3. Grafik BaÅŸlÄ±klarÄ± */
.fi-wi-widget h3,
.fi-wi-widget .fi-section-header-heading {
    color: #f0f6fc !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* 4. Canvas EtkileÅŸimi - Mouse OlaylarÄ± Ä°Ã§in Kritik */
.fi-wi-widget canvas {
    z-index: 1 !important;
    position: relative !important;
    pointer-events: auto !important;
}

/* 5. Canvas Ä°Ã§eren Widget'lar iÃ§in Ek GÃ¼venlik */
.fi-wi-widget:has(canvas) {
    background-color: #1c2128 !important;
    --tw-bg-opacity: 1 !important;
}

/* 6. Section Header Arka PlanÄ± */
.fi-wi-widget .fi-section-header {
    background-color: transparent !important;
    --tw-bg-opacity: 0 !important;
}

/* Renkler */
.bg-green { background: rgba(46, 160, 67, 0.15); color: var(--primary-neon); }
.bg-red { background: rgba(218, 54, 51, 0.15); color: var(--danger); }
.bg-gold { background: rgba(210, 153, 34, 0.15); color: var(--gold); }
.bg-blue { background: rgba(56, 139, 253, 0.15); color: var(--blue); }
.text-green { color: var(--primary-neon); } .text-red { color: var(--danger); } .text-gold { color: var(--gold); } .text-blue { color: var(--blue); }

/* 3. API KARTLARI */
.api-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}
@media (max-width: 1280px) { .api-grid-container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .api-grid-container { grid-template-columns: 1fr; } }

.api-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 15px; transition: border-color 0.3s; }
.api-card:hover { border-color: var(--border-color); }
.api-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.api-card-title { font-size: 13px; font-weight: 600; color: var(--text-main); }
.api-card-status { font-size: 10px; font-weight: 600; padding: 4px 8px; border-radius: 4px; }
.api-card-status.online { background: rgba(46, 160, 67, 0.15); color: var(--primary-neon); }
.api-card-status.offline { background: rgba(218, 54, 51, 0.15); color: var(--danger); }
.api-card-status.warning { background: rgba(210, 153, 34, 0.15); color: var(--gold); }
.api-card-stat { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.api-card-stat strong { color: var(--text-main); }
.progress-track { height: 6px; background: #2d333b; border-radius: 3px; overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; transition: width 0.5s ease; border-radius: 3px; }
.progress-fill.green { background: var(--primary-neon); }
.progress-fill.red { background: var(--danger); }
.progress-fill.gold { background: var(--gold); }
.progress-fill.gray { background: #484f58; }

/* 4. TABLOLAR */
.fi-ta-ctn { background-color: var(--card-bg) !important; border: 1px solid var(--border-color) !important; border-radius: 8px !important; }
.fi-ta-header-cell { background-color: #161b22 !important; color: var(--text-muted) !important; font-size: 11px !important; text-transform: uppercase !important; font-weight: 700 !important; }
.fi-ta-row { border-bottom: 1px solid var(--border-color) !important; background: transparent !important; }
.fi-ta-cell { color: var(--text-main) !important; font-size: 13px !important; }

/* --- TAB BUTTONS (KullanÄ±cÄ±lar sayfasÄ± tab'larÄ±) --- */
.fi-tabs {
    background-color: transparent !important;
}

.fi-tabs-tab {
    background-color: #1c2128 !important;
    border: 1px solid #2d333b !important;
    color: #8b949e !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    padding: 0.625rem 1rem !important;
}

.fi-tabs-tab:hover {
    background-color: rgba(46, 160, 67, 0.1) !important;
    border-color: rgba(46, 160, 67, 0.3) !important;
    color: #2ea043 !important;
}

.fi-tabs-tab-active,
.fi-tabs-tab[aria-selected="true"] {
    background-color: rgba(46, 160, 67, 0.15) !important;
    border-color: #2ea043 !important;
    color: #2ea043 !important;
    font-weight: 600 !important;
}

/* Tab icon renkleri */
.fi-tabs-tab-active .fi-icon,
.fi-tabs-tab[aria-selected="true"] .fi-icon {
    color: #2ea043 !important;
}

.fi-tabs-tab:not(.fi-tabs-tab-active) .fi-icon {
    color: #8b949e !important;
}

/* Tab container full width */
.fi-tabs-nav {
    width: 100% !important;
    display: flex !important;
    gap: 0.5rem !important;
}

/* 5. CHART KARTLARI */
.chart-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; transition: border-color 0.3s; }
.chart-card:hover { border-color: #484f58; }
.chart-title { font-size: 14px; font-weight: 600; color: var(--text-main); margin-bottom: 15px; }

/* 6. WINNERS/LOSERS TABLOLARI */
.table-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; transition: border-color 0.3s; }
.table-card:hover { border-color: #484f58; }
.table-header { background: #161b22; padding: 12px 15px; border-bottom: 1px solid var(--border-color); }
.table-header-title { font-size: 14px; font-weight: 600; color: var(--text-main); }
.table-body { max-height: 300px; overflow-y: auto; }
.table-row { display: flex; align-items: center; padding: 10px 15px; border-bottom: 1px solid var(--border-color); }
.table-row:last-child { border-bottom: none; }
.table-rank { width: 30px; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.table-user { flex: 1; font-size: 13px; color: var(--text-main); }
.table-amount { font-size: 13px; font-weight: 600; }
.table-amount.win { color: var(--primary-neon); }
.table-amount.loss { color: var(--danger); }

/* 7. EMPTY STATE */
.empty-state {
    display: flex; align-items: center; justify-content: center;
    padding: 40px; color: var(--text-muted); font-size: 14px;
}

/* --- CHART GÃ–RÃœNÃœM DÃœZELTMELERÄ° --- */
.fi-wi-chart {
    background-color: #1c2128 !important;
    border: 1px solid #2d333b !important;
    border-radius: 0.75rem !important;
    --tw-bg-opacity: 1 !important;
}

.fi-wi-chart canvas {
    z-index: 999 !important;
    position: relative !important;
}

/* BaÅŸlÄ±k Rengi */
.fi-wi-chart h3 {
    color: #f0f6fc !important;
}

/* --- MODAL DARK THEME --- */
/* Modal container ve content dark theme */
.fi-modal {
    background-color: #161b22 !important;
}

.fi-modal-content,
.fi-modal-content-ctn {
    background-color: #161b22 !important;
    --tw-bg-opacity: 1 !important;
}

/* Modal heading */
.fi-modal-heading {
    color: #f0f6fc !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
}

/* Modal body text */
.fi-modal-body {
    color: #d1d5db !important;
}

/* Modal input fields - dark theme */
.fi-modal input[type="text"],
.fi-modal input[type="email"],
.fi-modal input[type="password"],
.fi-modal input[type="number"],
.fi-modal input[type="datetime-local"],
.fi-modal select,
.fi-modal textarea,
input:not(.fi- *) {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
    color: #f9fafb !important;
    --tw-bg-opacity: 1 !important;
}

/* Input placeholder dark */
input::placeholder,
textarea::placeholder {
    color: #6b7280 !important;
}

/* Input focus states */
input:focus,
select:focus,
textarea:focus {
    border-color: #2ea043 !important;
    --tw-ring-color: rgba(46, 160, 67, 0.5) !important;
}

/* Labels inside modal */
.fi-modal label,
.fi-modal .fi-form-label {
    color: #d1d5db !important;
}

/* Form section inside modal */
.fi-modal .fi-section {
    background-color: transparent !important;
}

/* --- WIDGET BACKGROUND FIX (Remove extra backgrounds) --- */
/* Remove extra backgrounds from StatsOverviewWidget cards */
.fi-wi-stats-overview-stat {
    background-color: #1c2128 !important;
    border: 1px solid #2d333b !important;
    border-radius: 0.75rem !important;
    padding: 1rem !important;
    --tw-bg-opacity: 1 !important;
}

/* Remove duplicate container backgrounds */
.fi-wi-stats-overview-stat > div {
    background: transparent !important;
}

/* StatsOverviewWidget stat values */
.fi-wi-stats-overview-stat .fi-wi-sov-value {
    color: #f0f6fc !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

/* StatsOverviewWidget descriptions */
.fi-wi-stats-overview-stat .fi-wi-sov-description {
    color: #8b949e !important;
    font-size: 0.875rem !important;
}

/* StatsOverviewWidget icons */
.fi-wi-stats-overview-stat .fi-wi-sov-icon-box {
    background-color: rgba(46, 160, 67, 0.15) !important;
    color: #2ea043 !important;
}

/* Remove extra border from widget wrapper */
.fi-wi-widget-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ========================================
   KAPSAMLI FILAMENT DARK THEME OVERRIDE
   TÃ¼m eski bg-gray-900 renklerini deÄŸiÅŸtirir
======================================== */

/* GLOBAL DARK THEME - TÃ¼m dark:bg-gray-900 override */
:is(.dark .dark\:bg-gray-900),
.dark .bg-gray-900,
.dark .dark\:bg-gray-900,
:is(.dark .fi-section-content),
:is(.dark .fi-form-component-container),
:is(.dark .fi-in-text),
:is(.dark .fi-input),
:is(.dark .fi-input-wrp),
:is(.dark .fi-ta-content),
.fi-section,
.fi-section-content,
.fi-form-component-container,
.fi-in-text,
.fi-input-wrp {
    background-color: #1c2128 !important;
    --tw-bg-opacity: 1 !important;
}

/* Form input alanlarÄ± */
:is(.dark .fi-input),
.fi-input,
.fi-select,
.fi-select-container input,
.fi-textarea {
    background-color: #1c2128 !important;
    border-color: #2d333b !important;
    color: #f0f6fc !important;
}

/* Card ve Section container */
.fi-section-content-ctn,
.fi-section-header,
:is(.dark .fi-section-content-ctn),
:is(.dark .fi-section-header) {
    background-color: #1c2128 !important;
    border-color: #2d333b !important;
}

/* Widget containerlarÄ± - tam geniÅŸlik ve dÃ¼zgÃ¼n arka plan */
.fi-widgets,
.fi-page-header-widgets,
.fi-widgets-grid {
    width: 100% !important;
}

/* Filament widget arkaplan override */
.fi-widgets-grid > div,
.fi-page-header-widgets > div,
.fi-wi-widget > div {
    background: transparent !important;
}

/* Edit sayfalarÄ± iÃ§in form alanlarÄ± */
.fi-fo-component-ctn,
.fi-fo-field-wrp {
    background-color: transparent !important;
}

/* Dropdown ve select menÃ¼leri */
.fi-dropdown-panel,
.fi-select-dropdown,
:is(.dark .fi-dropdown-panel),
:is(.dark .fi-select-dropdown) {
    background-color: #1c2128 !important;
    border-color: #2d333b !important;
}

/* Dropdown item hover */
.fi-dropdown-item:hover,
.fi-select-option:hover {
    background-color: rgba(46, 160, 67, 0.1) !important;
}

/* Actions ve Button alanlarÄ± */
.fi-ac-btn-group,
.fi-actions,
.fi-header-actions {
    background-color: transparent !important;
}

/* Action dÃ¼ÄŸmeleri */
.fi-btn {
    border-color: #2d333b !important;
}

/* Page header */
.fi-page-header,
:is(.dark .fi-page-header) {
    background-color: transparent !important;
}

/* Breadcrumb */
.fi-breadcrumbs a {
    color: #8b949e !important;
}

.fi-breadcrumbs a:hover {
    color: #2ea043 !important;
}

/* Notifications */
.fi-notification {
    background-color: #1c2128 !important;
    border-color: #2d333b !important;
}

/* Tablo pagination */
.fi-ta-pagination {
    background-color: #1c2128 !important;
    border-color: #2d333b !important;
}

/* Text input fields */
.fi-input-wrapper,
:is(.dark .fi-input-wrapper) {
    background-color: #1c2128 !important;
    border-color: #2d333b !important;
}

/* Toggle switches */
.fi-toggle-off {
    background-color: #2d333b !important;
}

.fi-toggle-on {
    background-color: #2ea043 !important;
}

/* Checkbox ve radio buttons */
.fi-checkbox-input:not(:checked),
.fi-radio-input:not(:checked) {
    background-color: #1c2128 !important;
    border-color: #2d333b !important;
}

.fi-checkbox-input:checked,
.fi-radio-input:checked {
    background-color: #2ea043 !important;
    border-color: #2ea043 !important;
}

/* Placeholder text rengi */
::placeholder {
    color: #6b7280 !important;
}

/* Disabled input fields */
input:disabled,
select:disabled,
textarea:disabled {
    background-color: #161b22 !important;
    color: #6b7280 !important;
}

/* Focus ring color */
.fi-input:focus,
.fi-select:focus,
input:focus,
select:focus,
textarea:focus {
    --tw-ring-color: rgba(46, 160, 67, 0.5) !important;
    border-color: #2ea043 !important;
}

/* Label renkleri */
.fi-fo-field-label,
.fi-form-label,
label {
    color: #d1d5db !important;
}

/* Helper text */
.fi-fo-field-helper-text,
.fi-form-helper-text {
    color: #8b949e !important;
}

/* Error state */
.fi-fo-field-error,
.fi-form-error-message {
    color: #da3633 !important;
}

/* Tablo header sorting */
.fi-ta-header-cell-sorting-indicator {
    color: #2ea043 !important;
}

/* Empty state */
.fi-ta-empty-state {
    background-color: #1c2128 !important;
}

/* Pagination buttons */
.fi-pagination-item {
    background-color: #1c2128 !important;
    border-color: #2d333b !important;
    color: #f0f6fc !important;
}

.fi-pagination-item:hover {
    background-color: rgba(46, 160, 67, 0.1) !important;
    border-color: #2ea043 !important;
}

.fi-pagination-item-active {
    background-color: #2ea043 !important;
    border-color: #2ea043 !important;
}

/* Resource list header */
.fi-resource-header {
    background-color: transparent !important;
}

/* Global Actions bar */
.fi-global-search-field {
    background-color: #1c2128 !important;
    border-color: #2d333b !important;
}

/* Card header */
.fi-card-header {
    background-color: #161b22 !important;
    border-color: #2d333b !important;
}

/* InfoList items */
.fi-infolist-entry {
    background-color: transparent !important;
}

/* Table filters */
.fi-ta-filters {
    background-color: #1c2128 !important;
    border-color: #2d333b !important;
}

/* Action button hover */
.fi-icon-btn:hover {
    background-color: rgba(46, 160, 67, 0.1) !important;
}

/* Relation Manager */
.fi-rel-manager {
    background-color: #1c2128 !important;
    border-color: #2d333b !important;
}

/* Badge colors */
.fi-badge {
    border-color: #2d333b !important;
}


/* Ensure Filament modals overlay chart canvases and any custom z-indexes */
.fi-modal > div.fixed.inset-0 {
    z-index: 10000 !important;
}

/* Dashboard widget container: remove the extra wrapper when needed */
.dashboard-plain-widget.fi-wi-widget {
    background-color: transparent !important;
    --tw-bg-opacity: 0 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.dashboard-section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dashboard-section-title { font-size: 14px; font-weight: 700; color: var(--text-main); }
.dashboard-section-subtitle { font-size: 12px; color: var(--text-muted); }

.dashboard-metric-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    min-height: 300px;
}

.ftd-metric {
    height: calc(300px - 16px - 16px - 44px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.ftd-metric-rate {
    font-size: 40px;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 0.5px;
}

.ftd-metric-meta {
    display: grid;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.ftd-metric-meta strong {
    color: var(--text-main);
    font-weight: 700;
}

/* FTD widget (Dashboard) - redesigned */
.ftd-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.0)) , var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    min-height: 300px;
    overflow: hidden;
}
.ftd-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgba(210,153,34,1), rgba(210,153,34,0.55));
    opacity: 0.95;
}

.ftd-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.ftd-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}
.ftd-subtitle {
    margin-top: 3px;
    font-size: 12px;
    color: var(--text-muted);
}
.ftd-icon {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}
.ftd-icon svg { width: 18px; height: 18px; color: var(--gold); }

.ftd-body {
    height: calc(300px - 16px - 16px - 44px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
@media (max-width: 768px) {
    .ftd-body {
        height: auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }
}

.ftd-gauge {
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: conic-gradient(var(--gold) calc(var(--ftd-pct) * 1%), rgba(255,255,255,0.08) 0);
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.08);
}
.ftd-gauge-inner {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
}
.ftd-gauge-value {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0.3px;
    color: #fff;
}
.ftd-gauge-caption {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.ftd-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-content: center;
}
@media (max-width: 768px) {
    .ftd-stats { grid-template-columns: 1fr; }
}

.ftd-stat {
    background: rgba(0,0,0,0.20);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 12px 12px 10px 12px;
}
.ftd-stat-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ftd-stat-value {
    margin-top: 8px;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
}
.ftd-footnote {
    grid-column: 1 / -1;
    font-size: 12px;
    color: var(--text-muted);
    padding-left: 2px;
}

.api-card-code { font-size: 16px; font-weight: 800; letter-spacing: 0.5px; color: var(--text-main); }
.api-card-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-muted); }
.api-card-meta-value { color: var(--text-main); font-weight: 700; }
