@import '../../../../vendor/filament/filament/resources/css/theme.css';

@source '../../../../app/Filament/**/*';
@source '../../../../app/Providers/Filament/**/*';
@source '../../../../resources/views/filament/**/*';

/*
|--------------------------------------------------------------------------
| Fuelixa yönetim paneli — koyu, daraltılabilir yan menü + beyaz üst bant
|--------------------------------------------------------------------------
| Geri dönüş: git tag admin-filament-v1
*/

:root {
    --fx-side: #0b1f33;
    --fx-side-2: #112a43;
    --fx-side-line: rgb(255 255 255 / 0.07);
    --fx-side-text: #b7c3d0;
    --fx-side-muted: #6f8297;
}

.fi-body {
    @apply bg-[#f4f6f9] dark:bg-gray-950;
}

/* ── Yan menü ─────────────────────────────────────────────────────── */

.fi-sidebar {
    background: var(--fx-side) !important;
    @apply text-white;
}

@media (min-width: 1024px) {
    .fi-body-has-topbar .fi-sidebar {
        top: 0;
        height: 100dvh;
        margin-top: -4rem;
        z-index: 40;
    }

    .fi-body-has-topbar .fi-sidebar-header {
        display: flex !important;
    }

    .fi-body-has-topbar:has(.fi-sidebar.fi-sidebar-open) .fi-topbar {
        padding-inline-start: calc(var(--sidebar-width) + 1rem);
    }

    .fi-body-has-topbar:has(.fi-sidebar:not(.fi-sidebar-open)) .fi-topbar {
        padding-inline-start: calc(var(--collapsed-sidebar-width) + 1rem);
    }

    .fi-topbar-start .fi-logo,
    .fi-topbar-start > a {
        display: none !important;
    }

    .fi-topbar-start {
        margin-inline-end: 0;
    }
}

.fi-body-has-topbar .fi-sidebar-header {
    background: var(--fx-side) !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--fx-side-line);
    @apply h-16 px-5 ring-0;
}

.fi-sidebar .fx-wordmark-light {
    display: none !important;
}

.fi-sidebar .fx-wordmark-dark {
    display: block !important;
}

.fx-collapsed-mark {
    @apply hidden;
}

@media (min-width: 1024px) {
    .fi-sidebar:not(.fi-sidebar-open) .fx-collapsed-mark {
        @apply mx-auto block;
    }

    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-header {
        @apply justify-center px-0;
    }
}

.fi-sidebar-nav {
    @apply gap-y-5 px-4 py-5;
    scrollbar-width: thin;
    scrollbar-color: rgb(255 255 255 / 0.12) transparent;
}

.fi-sidebar-nav-groups {
    @apply gap-y-5;
}

.fi-sidebar-group-btn {
    @apply px-2 pt-1 pb-1.5;
}

.fi-sidebar-group-label {
    color: var(--fx-side-muted) !important;
    @apply text-[11px] font-semibold tracking-[0.08em] uppercase;
}

.fi-sidebar-group-btn .fi-icon,
.fi-sidebar-group-collapse-btn {
    color: var(--fx-side-muted) !important;
}

.fi-sidebar-group-items {
    @apply gap-y-0.5;
}

.fi-sidebar-item-btn {
    @apply px-3 py-2;

    & > .fi-icon {
        color: var(--fx-side-muted) !important;
    }
}

.fi-sidebar-item-label {
    color: var(--fx-side-text) !important;
    @apply font-medium;
}

.fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:hover {
    background: rgb(255 255 255 / 0.06) !important;

    & > .fi-icon,
    & > .fi-sidebar-item-label {
        color: #fff !important;
    }
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background: linear-gradient(135deg, #f05a06, #fd8a07) !important;
    box-shadow: 0 6px 16px -6px rgb(240 90 6 / 0.7);

    & > .fi-icon,
    & > .fi-sidebar-item-label {
        color: #fff !important;
    }
}

.fi-sidebar-item-badge-ctn .fi-badge {
    @apply ring-0;
}

.fi-sidebar-item.fi-active .fi-sidebar-item-badge-ctn .fi-badge {
    @apply bg-white/25 text-white;
}

.fi-sidebar-footer {
    @apply mx-3 my-3;
}

.fi-sidebar-close-collapse-sidebar-btn,
.fi-sidebar-open-collapse-sidebar-btn {
    color: var(--fx-side-text) !important;
}

/* ── Üst bant ─────────────────────────────────────────────────────── */

.fi-topbar {
    @apply min-h-16 border-b border-gray-200/80 bg-white shadow-none ring-0 dark:border-white/10 dark:bg-gray-900;
}

.fi-topbar-end {
    @apply gap-x-2;
}

.fi-topbar .fi-global-search-field {
    @apply w-36 sm:w-56 lg:w-64;
}

/* ── Sayfa başlığı ────────────────────────────────────────────────── */

.fi-main {
    @apply lg:px-8;
}

.fi-page-header-main-ctn {
    @apply gap-y-6 py-6;
}

.fi-header-heading {
    @apply text-xl font-bold tracking-tight sm:text-2xl;
}

.fi-header-subheading {
    @apply mt-1 text-sm text-gray-500;
}

.fi-breadcrumbs {
    @apply text-xs;
}

/* ── Kartlar, tablolar ────────────────────────────────────────────── */

.fi-section:not(.fi-section-not-contained),
.fi-ta-ctn,
.fi-wi-stats-overview-stat,
.fi-wi-chart .fi-section {
    @apply rounded-xl shadow-[0_1px_2px_rgb(16_24_40/0.04)] ring-gray-200/70 dark:ring-white/10;
}

.fi-section-header-heading {
    @apply text-[15px] font-semibold;
}

.fi-ta-header-cell {
    @apply bg-gray-50/80 py-3 text-[11px] font-semibold tracking-wider text-gray-500 uppercase dark:bg-white/[0.03] dark:text-gray-400;
}

.fi-ta-header-cell .fi-ta-header-cell-sort-btn {
    @apply text-[11px] uppercase;
}

.fi-ta-row:hover {
    @apply bg-gray-50/60 dark:bg-white/[0.02];
}

.fi-badge {
    @apply rounded-md;
}

.fi-btn {
    @apply rounded-lg;
}

.fi-btn.fi-color-primary:not(.fi-outlined):not(.fi-link) {
    background: linear-gradient(135deg, #f05a06, #fd8a07);
    box-shadow: 0 6px 14px -6px rgb(240 90 6 / 0.6);
}

.fi-tabs {
    @apply rounded-xl;
}

/* ── Panel bileşenleri (fx-*) ─────────────────────────────────────── */

.fx-card {
    @apply rounded-xl border border-gray-200/70 bg-white shadow-[0_1px_2px_rgb(16_24_40/0.04)] dark:border-white/10 dark:bg-gray-900;
}

.fx-card-head {
    @apply flex items-center justify-between gap-3 border-b border-gray-100 px-5 py-4 dark:border-white/10;
}

.fx-card-title {
    @apply text-[15px] font-semibold text-gray-900 dark:text-white;
}

.fx-strip {
    @apply grid grid-cols-2 gap-px overflow-hidden bg-gray-200/70 sm:grid-cols-3 xl:grid-cols-6 dark:bg-white/10;
}

.fx-strip > div {
    @apply bg-white px-5 py-4 dark:bg-gray-900;
}

.fx-icon-chip {
    @apply flex size-11 shrink-0 items-center justify-center rounded-xl;
}

.fx-icon-chip svg {
    @apply size-[22px];
}

.fx-tone-orange { @apply bg-orange-100 text-orange-600 dark:bg-orange-500/15 dark:text-orange-300; }
.fx-tone-teal { @apply bg-teal-100 text-teal-700 dark:bg-teal-500/15 dark:text-teal-300; }
.fx-tone-blue { @apply bg-sky-100 text-sky-700 dark:bg-sky-500/15 dark:text-sky-300; }
.fx-tone-violet { @apply bg-violet-100 text-violet-700 dark:bg-violet-500/15 dark:text-violet-300; }
.fx-tone-red { @apply bg-red-100 text-red-600 dark:bg-red-500/15 dark:text-red-300; }
.fx-tone-navy { @apply bg-slate-100 text-slate-700 dark:bg-white/10 dark:text-slate-200; }
.fx-tone-green { @apply bg-emerald-100 text-emerald-700 dark:bg-emerald-500/15 dark:text-emerald-300; }

.fx-pill {
    @apply inline-flex items-center gap-1 rounded-md px-1.5 py-0.5 text-[11px] font-semibold whitespace-nowrap;
}

.fi-sidebar .fx-mark-light { display: none !important; }
.fi-sidebar .fx-mark-dark { display: block !important; }

.fi-btn.fi-color-primary:not(.fi-outlined):not(.fi-link),
.fi-btn.fi-color-primary:not(.fi-outlined):not(.fi-link) .fi-icon {
    color: #fff !important;
}

/* ── Giriş ekranı ─────────────────────────────────────────────────── */

.fi-simple-layout {
    background:
        radial-gradient(60rem 30rem at 85% -10%, rgb(253 122 8 / 0.22), transparent 60%),
        radial-gradient(40rem 30rem at 0% 110%, rgb(14 138 125 / 0.18), transparent 60%),
        linear-gradient(160deg, #0b1f33 0%, #08172a 100%);
}

.fi-simple-main {
    @apply rounded-2xl shadow-2xl ring-0 sm:rounded-2xl sm:px-10 sm:py-10;
}

.fx-login-foot {
    @apply -mt-10 mb-10 text-center text-xs tracking-[0.2em] text-white/50 uppercase;
}
