/* Kurumsal tema: mavi, siyah, gri */
:root {
    --ft-primary: #1e3a8a;
    --ft-accent: #2563eb;
    --ft-bg: #f3f4f6;
    --ft-surface: #FFFFFF;
    --ft-muted: #6b7280;
    --ft-danger: #b91c1c;
    --ft-shell-max: 420px;
    --ft-header-h: 54px;
    --ft-bottom-h: 62px;
    --ft-safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
    height: 100%;
    touch-action: pan-x pan-y;
}

.app-body {
    margin: 0;
    min-height: 100%;
    background: var(--ft-bg);
    color: #111827;
    font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.app-shell {
    max-width: var(--ft-shell-max);
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: var(--ft-bg);
    box-shadow: 0 0 0 1px rgba(26, 35, 126, 0.06);
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: var(--ft-header-h);
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 35, 126, 0.08);
}

.app-header-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ft-primary);
    letter-spacing: 0.02em;
}

.app-header-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--ft-primary);
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.app-header-menu-btn:hover {
    background: rgba(26, 35, 126, 0.08);
    color: var(--ft-primary);
}

.app-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.28);
    overflow: hidden;
    background: linear-gradient(145deg, #e8ecff, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ft-primary);
    font-weight: 700;
    font-size: 0.85rem;
}

.app-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

.app-main {
    padding-bottom: calc(var(--ft-bottom-h) + 30px + (var(--ft-safe-bottom) * 0.55));
    padding-top: 4px;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
}

.fin-card {
    border-radius: 18px;
    border: 0;
    box-shadow: 0 8px 24px rgba(26, 35, 126, 0.08);
}

.fin-card .card-body {
    padding: 12px 13px;
}

.text-ft-muted {
    color: var(--ft-muted) !important;
    font-size: 0.76rem;
}

.badge-soft-success {
    background: rgba(0, 200, 83, 0.12);
    color: var(--ft-accent);
    font-weight: 600;
    border-radius: 8px;
}

.btn-kurumsal {
    border-radius: 12px;
    padding: 9px 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    min-height: 40px;
}

.btn-kurumsal:active {
    transform: scale(0.98);
}

.btn-primary.ft-btn {
    background: linear-gradient(135deg, #1A237E 0%, #283593 100%);
    border: none;
    box-shadow: 0 6px 16px rgba(26, 35, 126, 0.25);
}

.btn-primary.ft-btn:hover {
    background: linear-gradient(135deg, #283593 0%, #1A237E 100%);
}

.form-control, .form-select {
    border-radius: 10px;
    padding: 9px 11px;
    border: 1px solid rgba(26, 35, 126, 0.12);
    min-height: 40px;
    font-size: 0.92rem;
}

.form-control:focus, .form-select:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.app-bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: var(--ft-shell-max);
    z-index: 1040;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.06);
    padding-bottom: calc(var(--ft-safe-bottom) * 0.6);
    border-top: 1px solid rgba(26, 35, 126, 0.06);
}

.app-bottom-nav a {
    text-decoration: none;
    color: var(--ft-muted);
    flex: 1;
    padding: 6px 4px;
    border-radius: 12px;
    transition: color 0.15s ease, background 0.15s ease;
}

.app-bottom-nav a.active {
    color: var(--ft-primary);
    background: rgba(26, 35, 126, 0.06);
}

.app-bottom-nav a:focus-visible {
    outline: 2px solid var(--ft-accent);
    outline-offset: 2px;
}

.fab-nfc:focus-visible {
    outline: 3px solid var(--ft-primary);
    outline-offset: 3px;
}

.app-header-menu-btn:focus-visible {
    outline: 2px solid var(--ft-accent);
    outline-offset: 2px;
}

.app-bottom-nav a .bi {
    display: block;
    margin: 0 auto 2px;
}

.app-bottom-nav .nav-label {
    font-size: 10px;
    font-weight: 600;
}

/* FAB — NFC odaklı pulse */
.fab-nfc {
    position: fixed;
    left: 50%;
    margin-left: calc(var(--ft-shell-max) / 2 - 56px);
    bottom: calc(var(--ft-bottom-h) + 12px + var(--ft-safe-bottom));
    z-index: 1050;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1d4ed8, #2563eb);
    color: #fff;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

@media (max-width: 420px) {
    .fab-nfc {
        left: auto;
        right: 16px;
        margin-left: 0;
        transform: none;
    }
}

.fab-nfc .pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.35);
    animation: ft-pulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes ft-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.35);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* Splash */
#app-splash {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: linear-gradient(165deg, #1A237E 0%, #283593 45%, #F4F7FE 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

#app-splash.ft-hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-logo {
    width: 86px;
    height: 86px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.splash-logo img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.splash-title {
    margin-top: 16px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* Skeleton */
.skeleton {
    background: linear-gradient(90deg, #e8ecf7 0%, #f6f8ff 50%, #e8ecf7 100%);
    background-size: 200% 100%;
    animation: ft-shimmer 1.2s ease-in-out infinite;
    border-radius: 12px;
}

@keyframes ft-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-line {
    height: 14px;
    margin-bottom: 8px;
}

.tx-row {
    border-bottom: 1px solid rgba(26, 35, 126, 0.06);
    padding: 12px 0;
}

.tx-row:last-child {
    border-bottom: 0;
}

.amount-negative {
    color: var(--ft-danger);
    font-weight: 700;
}

.amount-positive {
    color: #1e40af;
    font-weight: 700;
}

.modal-content.ft-modal {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

/* Utilities */
.pb-safe {
    padding-bottom: var(--ft-safe-bottom);
}

/* Raporlar — Chart.js alanı (mobil) */
.rapor-chart-wrap {
    position: relative;
    height: 260px;
    max-width: 100%;
}

.rapor-chart-wrap--donut {
    height: 280px;
}

.ft-progress {
    height: 8px;
    border-radius: 6px;
    background: rgba(26, 35, 126, 0.08);
    overflow: hidden;
}

/* Okunabilirlik — ana içerik satır uzunluğu */
.app-main .p-3,
.app-main .px-3 {
    max-width: 100%;
}

/* Dashboard — hesaplar: tek panel, satır altı çizgi (kurumsal liste) */
.ft-dash-hesap-shell {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.07);
    border: 1px solid rgba(26, 35, 126, 0.07);
}

.ft-dash-hesap-colhead {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ft-muted);
    background: rgba(26, 35, 126, 0.04);
    border-bottom: 1px solid rgba(26, 35, 126, 0.1);
}

.ft-dash-hesap-row {
    border-bottom: 1px solid rgba(26, 35, 126, 0.1);
    min-height: 52px;
    transition: background-color 0.12s ease;
}

.ft-dash-hesap-row:last-child {
    border-bottom: none;
}

.ft-dash-hesap-row:hover {
    background: rgba(26, 35, 126, 0.045);
}

.ft-dash-hesap-row:active {
    background: rgba(26, 35, 126, 0.07);
}

.ft-dash-hesap-row:focus-visible {
    outline: 2px solid var(--ft-accent);
    outline-offset: -2px;
    z-index: 1;
    position: relative;
}

.ft-dash-hesap-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1b2559;
    letter-spacing: 0.01em;
}

.ft-dash-hesap-type {
    font-size: 0.72rem;
    color: var(--ft-muted);
    margin-top: 2px;
    letter-spacing: 0.02em;
}

.ft-dash-hesap-amount {
    font-variant-numeric: tabular-nums;
}

.ft-dash-hesap-amount .fw-bold,
.ft-dash-hesap-amount .text-danger {
    font-size: 0.95rem;
}

.ft-dash-hesap-amount .small {
    font-size: 0.65rem;
    line-height: 1.25;
}

.ft-kredi-inline {
    white-space: nowrap;
}

.ft-dash-hesap-chev {
    font-size: 0.85rem;
    color: rgba(92, 107, 138, 0.55);
}

.ft-dash-hesap-row:hover .ft-dash-hesap-chev {
    color: var(--ft-primary);
}

/* Bölüm başlığı + sağ aksiyon (kurumsal) */
.ft-section-head {
    gap: 8px;
}

.ft-section-title {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--ft-primary);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.ft-section-sub {
    font-size: 0.72rem;
    letter-spacing: 0.01em;
}

.ft-section-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    text-decoration: none;
    color: #22305f;
    background: transparent;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.ft-section-action:hover {
    color: #162044;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ft-section-action:active {
    transform: scale(0.98);
}

.ft-section-action:focus-visible {
    outline: 2px solid var(--ft-accent);
    outline-offset: 2px;
}

.ft-section-action .bi-chevron-right {
    font-size: 0.6rem;
    margin-top: 0;
    opacity: 0.62;
}

.ft-yaklasan-tutar {
    margin-top: 4px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ft-primary);
    font-variant-numeric: tabular-nums;
}

.ft-toplam-mini {
    margin-top: 2px;
    font-size: 0.72rem;
    color: var(--ft-muted);
    font-weight: 600;
}

.ft-kat-ozet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    font-size: 0.74rem;
    padding: 5px 4px;
    border-radius: 8px;
    border-bottom: 1px dashed rgba(30, 58, 138, 0.12);
}

.ft-kat-ozet-row:last-child {
    border-bottom: 0;
}

.ft-kat-ozet-row:hover {
    background: rgba(30, 58, 138, 0.06);
    color: inherit;
}

.ft-kat-ozet-row strong {
    font-variant-numeric: tabular-nums;
    font-size: 0.73rem;
}

.ft-sankey-meta .ft-sankey-chip {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(30, 58, 138, 0.18);
    background: rgba(30, 58, 138, 0.06);
    font-size: 0.68rem;
    font-weight: 600;
    color: #1f2937;
}

.ft-inline-action {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ft-primary);
    opacity: 0.85;
}

.ft-inline-action:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ft-inline-action .bi {
    font-size: 0.65rem;
}

/* Dashboard — özet: iki sütun yan yana */
.ft-dash-ozet-row {
    --ft-ozet-pad: 8px 8px;
}

.ft-dash-ozet-tile {
    border-radius: 14px;
    padding: var(--ft-ozet-pad);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 254, 0.92) 100%);
    border: 1px solid rgba(26, 35, 126, 0.09);
    box-shadow: 0 2px 10px rgba(26, 35, 126, 0.06);
    border-left: 3px solid rgba(0, 200, 83, 0.45);
}

.ft-dash-ozet-tile--borc {
    border-left-color: rgba(198, 40, 40, 0.45);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 248, 0.88) 100%);
}

.ft-dash-ozet-label {
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ft-muted);
    margin-bottom: 4px;
    line-height: 1.2;
}

.ft-dash-ozet-value {
    font-size: 0.9rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--ft-primary);
    letter-spacing: 0.02em;
    line-height: 1.25;
    word-break: break-word;
}

.ft-dash-ozet-value--borc {
    color: var(--ft-danger);
}

/* İşlemler — detaylı satır kartı */
.ft-islem-card .ft-islem-amount {
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.ft-islem-card .ft-islem-actions {
    gap: 0.35rem;
}

.ft-islem-card {
    position: relative;
    overflow: visible;
    z-index: 1;
}

.ft-islem-card .card-body {
    position: relative;
    overflow: visible;
}

.ft-islem-card:focus-within {
    z-index: 1100;
}

.ft-islem-card .dropdown {
    position: relative;
    z-index: 5;
}

.ft-islem-card .dropdown.show {
    z-index: 1300;
}

.ft-islem-card .dropdown-menu {
    z-index: 1400;
}

.ft-islem-menu-btn {
    border-radius: 10px;
    min-width: 92px;
    font-weight: 600;
}

.ft-income-expense-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ft-income-expense-toggle input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ft-income-expense-toggle label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin: 0;
    border-radius: 11px;
    border: 1px solid rgba(30, 58, 138, 0.18);
    background: #f8fafc;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.16s ease;
}

.ft-income-expense-toggle input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    border-color: #1d4ed8;
    color: #fff;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.22);
}

.ft-income-expense-toggle label:hover {
    border-color: rgba(30, 58, 138, 0.35);
}

.ft-compact-acc-btn {
    font-size: 0.84rem;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

.ft-nakit-card {
    border-radius: 12px;
}

.ft-nakit-card .accordion-button {
    min-height: 26px;
    line-height: 1.05;
}

.ft-nakit-card .card-body {
    line-height: 1.22;
}

.ft-nakit-card .fw-bold {
    font-size: 0.82rem;
}

.ft-nakit-card .small {
    font-size: 0.68rem;
    margin-bottom: 0.18rem;
}

.ft-nakit-card .alert {
    margin-bottom: 0.3rem !important;
    padding: 0.35rem 0.45rem;
}

.ft-nakit-card-body {
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
}

.ft-link-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(30, 58, 138, 0.2);
    background: rgba(30, 58, 138, 0.06);
    color: var(--ft-primary);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
}

.ft-link-chip:hover {
    color: var(--ft-primary);
    background: rgba(30, 58, 138, 0.1);
}

.ft-ayarlar-card .accordion-item {
    border-bottom: 1px solid rgba(30, 58, 138, 0.08) !important;
}

.ft-ayarlar-card .accordion-item:last-child {
    border-bottom: 0 !important;
}

.ft-ayarlar-card .accordion-button {
    font-size: 0.84rem;
    font-weight: 700;
    border-radius: 0;
}

.ft-ayarlar-card .accordion-button:not(.collapsed) {
    color: var(--ft-primary);
    background: rgba(30, 58, 138, 0.04);
    box-shadow: none;
}

.ft-yeniislem-card .form-label {
    margin-bottom: 4px;
}

.ft-form-section {
    border: 1px solid rgba(30, 58, 138, 0.08);
    border-radius: 12px;
    padding: 7px 8px;
    background: rgba(255, 255, 255, 0.62);
}

.ft-form-section-title {
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5b6b93;
    margin-bottom: 6px;
}

.ft-yeniislem-card .input-group-text {
    min-width: 34px;
    justify-content: center;
    color: #4f5f8f;
}

.ft-calc-inline-btn {
    min-width: 38px;
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ft-calc-modal {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(30, 58, 138, 0.16);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.22);
}

.ft-calc-header {
    padding-top: 12px;
    padding-bottom: 4px;
}

.ft-calc-body {
    padding-top: 8px !important;
}

.ft-calc-screen {
    min-height: 54px;
    border-radius: 12px;
    border: 1px solid rgba(30, 58, 138, 0.16);
    background: linear-gradient(180deg, #fbfcff 0%, #f1f4fb 100%);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #142347;
}

.ft-calc-grid .calc-btn {
    min-height: 42px;
    border-radius: 10px;
    font-weight: 700;
    border-width: 1px;
}

.ft-calc-grid .btn-light.calc-btn {
    background: #f6f8fc;
    border-color: rgba(20, 35, 71, 0.12);
    color: #142347;
}

.ft-calc-grid .btn-outline-secondary.calc-btn {
    border-color: rgba(30, 58, 138, 0.3);
    color: #1e3a8a;
}

.ft-calc-grid .btn-warning.calc-btn {
    background: #fff7db;
    border-color: #f6d269;
    color: #8a5b00;
}

.ft-calc-eq-btn,
.ft-calc-apply-btn {
    border-radius: 11px;
    min-height: 38px;
    font-size: 0.8rem;
}

.ft-coklu-mini-wrap {
    position: relative;
    width: 34px;
    height: 34px;
}

.ft-coklu-mini-check {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0 !important;
    z-index: 2;
    cursor: pointer;
}

.ft-coklu-mini-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ft-coklu-mini-check:checked + .ft-coklu-mini-btn {
    background: rgba(30, 58, 138, 0.14);
    border-color: rgba(30, 58, 138, 0.45);
    color: var(--ft-primary);
}

.ft-yeniislem-card .calc-btn {
    min-height: 38px;
    padding: 6px 0;
    font-size: 0.9rem;
}

.ft-mini-btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.78rem;
}

/* FAB menü */
.fab-wrap {
    position: fixed;
    left: 50%;
    margin-left: calc(var(--ft-shell-max) / 2 - 56px);
    bottom: calc(var(--ft-bottom-h) + 12px + var(--ft-safe-bottom));
    z-index: 1050;
}

.fab-wrap .fab-nfc {
    position: static;
    margin-left: 0;
    bottom: auto;
}

.fab-wrap .dropdown-toggle::after {
    display: none;
}

.fab-wrap .dropdown-menu.fin-card {
    border-radius: 14px;
    min-width: 250px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid rgba(30, 58, 138, 0.12) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.08);
}

.fab-wrap .dropdown-menu.fin-card .dropdown-item {
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.14s ease, color 0.14s ease, transform 0.08s ease;
}

.fab-wrap .dropdown-menu.fin-card .dropdown-item i {
    color: var(--ft-primary);
    font-size: 0.92rem;
}

.fab-wrap .dropdown-menu.fin-card .dropdown-item:hover,
.fab-wrap .dropdown-menu.fin-card .dropdown-item:focus {
    background: rgba(30, 58, 138, 0.08);
    color: #0f172a;
}

.fab-wrap .dropdown-menu.fin-card .dropdown-item:active {
    transform: scale(0.99);
}

@media (max-width: 420px) {
    .fab-wrap {
        left: auto;
        right: 16px;
        margin-left: 0;
    }
}

/* Command palette */
.ft-palette {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
}

.ft-palette[hidden] {
    display: none !important;
}

.ft-palette-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.ft-palette-panel {
    position: relative;
    width: min(100%, 380px);
    max-height: 70vh;
    overflow: hidden;
    border-radius: 16px;
    z-index: 1;
}

.ft-palette-list {
    max-height: 52vh;
    overflow-y: auto;
}

.ft-palette-list a {
    color: inherit;
    text-decoration: none;
}

.ft-palette-list a:hover {
    background: rgba(26, 35, 126, 0.08);
}

/* Dashboard widget sürükleme */
.ft-dash-widget.ft-dragging {
    opacity: 0.85;
    outline: 2px dashed var(--ft-accent);
}

/* Karanlık tema */
html[data-ft-theme="dark"] {
    color-scheme: dark;
}

html[data-ft-theme="dark"] .app-body {
    background: #0d1117;
    color: #e6edf3;
}

html[data-ft-theme="dark"] .app-shell {
    background: #0d1117;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

html[data-ft-theme="dark"] {
    --ft-bg: #0d1117;
    --ft-surface: #161b22;
    --ft-muted: #8b9cb5;
    --ft-primary: #9fa8da;
}

html[data-ft-theme="dark"] .app-header {
    background: rgba(22, 27, 34, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-ft-theme="dark"] .fin-card,
html[data-ft-theme="dark"] .card {
    background: var(--ft-surface) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #e6edf3;
}

html[data-ft-theme="dark"] .text-ft-muted {
    color: var(--ft-muted) !important;
}

html[data-ft-theme="dark"] .glass-effect {
    background: rgba(22, 27, 34, 0.9);
    border-color: rgba(255, 255, 255, 0.06) !important;
}

html[data-ft-theme="dark"] .form-control,
html[data-ft-theme="dark"] .form-select {
    background: #0d1117;
    border-color: rgba(255, 255, 255, 0.12);
    color: #e6edf3;
}

html[data-ft-theme="dark"] .form-control::placeholder {
    color: #7d8aa1;
}

html[data-ft-theme="dark"] .btn-light {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e6edf3;
}

html[data-ft-theme="dark"] .btn-outline-secondary {
    color: #c7d2fe;
    border-color: rgba(199, 210, 254, 0.4);
}

html[data-ft-theme="dark"] .btn-outline-secondary:hover {
    color: #fff;
    background: rgba(99, 102, 241, 0.2);
}

html[data-ft-theme="dark"] .accordion-button {
    background: transparent;
    color: #e6edf3;
}

html[data-ft-theme="dark"] .accordion-button:not(.collapsed) {
    background: rgba(99, 102, 241, 0.14);
    color: #dbe4ff;
}

html[data-ft-theme="dark"] .accordion-item {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-ft-theme="dark"] .ft-income-expense-toggle label {
    background: #111827;
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.14);
}

html[data-ft-theme="dark"] .ft-income-expense-toggle input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #3346b6 0%, #4860e0 100%);
    border-color: rgba(159, 168, 218, 0.65);
    color: #f8fbff;
    box-shadow: 0 4px 14px rgba(79, 99, 230, 0.28);
}

html[data-ft-theme="dark"] .ft-form-section {
    background: rgba(17, 24, 39, 0.72);
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-ft-theme="dark"] .ft-form-section-title {
    color: #9fb0d3;
}

html[data-ft-theme="dark"] .ft-yeniislem-card .input-group-text {
    color: #b8c6ea;
}

html[data-ft-theme="dark"] .ft-calc-inline-btn {
    border-color: rgba(159, 168, 218, 0.38);
    color: #dbe4ff;
    background: #111827;
}

html[data-ft-theme="dark"] .ft-calc-modal {
    border-color: rgba(159, 168, 218, 0.22);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
}

html[data-ft-theme="dark"] .ft-calc-screen {
    background: linear-gradient(180deg, #0f1624 0%, #141d2f 100%);
    border-color: rgba(159, 168, 218, 0.24);
    color: #e9efff;
}

html[data-ft-theme="dark"] .ft-calc-grid .btn-light.calc-btn {
    background: #172034;
    border-color: rgba(159, 168, 218, 0.18);
    color: #e1e8ff;
}

html[data-ft-theme="dark"] .ft-calc-grid .btn-outline-secondary.calc-btn {
    border-color: rgba(159, 168, 218, 0.42);
    color: #dbe4ff;
}

html[data-ft-theme="dark"] .ft-calc-grid .btn-warning.calc-btn {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.46);
    color: #ffd98b;
}

html[data-ft-theme="dark"] .ft-coklu-mini-btn {
    border-color: rgba(159, 168, 218, 0.38);
    color: #dbe4ff;
}

html[data-ft-theme="dark"] .ft-coklu-mini-check:checked + .ft-coklu-mini-btn {
    background: rgba(159, 168, 218, 0.22);
    border-color: rgba(159, 168, 218, 0.58);
    color: #ffffff;
}

html[data-ft-theme="dark"] .ft-link-chip {
    border-color: rgba(159, 168, 218, 0.35);
    background: rgba(159, 168, 218, 0.14);
    color: #dbe4ff;
}

html[data-ft-theme="dark"] .ft-kat-ozet-row {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

html[data-ft-theme="dark"] .ft-kat-ozet-row:hover {
    background: rgba(159, 168, 218, 0.12);
}

html[data-ft-theme="dark"] .ft-section-action {
    color: #dbe4ff;
    background: transparent;
    border-color: transparent;
}

html[data-ft-theme="dark"] .ft-section-action:hover {
    color: #ffffff;
    background: transparent;
    border-color: transparent;
}

html[data-ft-theme="dark"] .app-bottom-nav {
    background: rgba(22, 27, 34, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-ft-theme="dark"] .fab-nfc {
    box-shadow: 0 10px 28px rgba(0, 200, 83, 0.35);
}

html[data-ft-theme="dark"] .text-muted {
    color: #8b9cb5 !important;
}

html[data-ft-theme="dark"] .text-dark,
html[data-ft-theme="dark"] a.text-dark,
html[data-ft-theme="dark"] .app-main .text-dark {
    color: #e6edf3 !important;
}

html[data-ft-theme="dark"] .bg-light,
html[data-ft-theme="dark"] .table-light {
    background-color: #1b2430 !important;
    color: #e6edf3 !important;
}

html[data-ft-theme="dark"] .border-light {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-ft-theme="dark"] .badge.bg-light {
    background-color: #1f2937 !important;
    color: #dbe4ff !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

html[data-ft-theme="dark"] .alert-warning {
    color: #ffe9a8;
    background-color: rgba(255, 193, 7, 0.14);
    border-color: rgba(255, 193, 7, 0.25);
}

html[data-ft-theme="dark"] .alert-info {
    color: #c9e8ff;
    background-color: rgba(13, 202, 240, 0.14);
    border-color: rgba(13, 202, 240, 0.25);
}

html[data-ft-theme="dark"] .modal-content {
    background: #161b22;
    color: #e6edf3;
}

html[data-ft-theme="dark"] .modal-header,
html[data-ft-theme="dark"] .modal-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-ft-theme="dark"] .input-group-text {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.12);
    color: #dbe4ff;
}

html[data-ft-theme="dark"] .dropdown-menu {
    background: #161b22;
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-ft-theme="dark"] .dropdown-item {
    color: #d7dfec;
}

html[data-ft-theme="dark"] .dropdown-item:hover,
html[data-ft-theme="dark"] .dropdown-item:focus {
    background: rgba(99, 102, 241, 0.18);
    color: #fff;
}
