/* ========================================
   Çiftçi Finans Kontrolü — Ana Stil Dosyası
   ======================================== */

:root {
  --primary: #043d2c; 
  --primary-dark: #022c1f;
  --primary-hover: #065740;
  --income: #059669; --income-bg: rgba(5,150,105,.1);
  --expense: #dc2626; --expense-bg: rgba(220,38,38,.1);
  --gold: #d97706; --indigo: #6366f1;
  --text: #0f172a; --muted: #64748b;
  --border: rgba(0,0,0,.08);
  --radius: 12px;
  --shadow: 0 4px 16px rgba(0,0,0,.05);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #e6f4ea 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.app-layout { 
    display: flex; 
    min-height: 100vh; 
}

/* =========================================
   SOL SIDEBAR
   ========================================= */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(rgba(12, 45, 30, 0.85), rgba(4, 25, 17, 0.95)), url('assets/images/sidebar1.png') center/cover; 
  border-right: 1px solid rgba(255,255,255,0.1);
  z-index: 50; 
  color: white;
  box-shadow: 2px 0 12px rgba(0,0,0,.04);
}

.sidebar-logo-container {
    padding: 1.25rem 1.15rem 1.1rem 1.15rem; 
    background: linear-gradient(180deg, rgba(1, 16, 3, 0.51) 0%, transparent 100%); 
    display: flex;
    justify-content: flex-start; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-icon {
    width: 32px; 
    height: 32px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.brand-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    font-size: 1.3rem; 
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1;
}

.c-green { color: #78b943; } 
.c-blue { color: #002d5b; } 

.brand-subtitle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.6rem;
    font-weight: 600;
    color: #002d5b;
    margin-top: 0.2rem;
    white-space: nowrap;
}

.sub-line {
    height: 2px;
    background: #78b943;
    flex-grow: 1;
    border-radius: 2px;
}

.sidebar-season {
    width: 100%;
    box-sizing: border-box;
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0.4rem 0.8rem; 
    margin-bottom: 0.65rem; 
    background: rgba(0, 0, 0, 0.28); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 7px; 
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.sidebar-season:hover {
    background: rgba(43, 43, 43, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.sidebar-season svg {
    color: rgba(255, 255, 255, 0.45);
    transition: all 0.2s ease;
}

.sidebar-season:hover svg {
    color: #34d399;
    transform: translateY(1px);
}

.sidebar-nav { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    padding: 0.85rem 0.8rem; 
}

.sidebar-link[data-view="dashboard"] {
    --btn-color: #4ade80; /* Acik Fistik / Taze Nane Yesili */
    --btn-glow: rgba(74, 222, 128, 0.35);
    --btn-bg-active: linear-gradient(90deg, rgba(74, 222, 128, 0.18) 0%, rgba(74, 222, 128, 0.04) 100%);
}

.sidebar-link[data-view="ledger"] {
    --btn-color: #22c55e; /* Canli Yesil */
    --btn-glow: rgba(34, 197, 94, 0.35);
    --btn-bg-active: linear-gradient(90deg, rgba(34, 197, 94, 0.18) 0%, rgba(34, 197, 94, 0.04) 100%);
}

.sidebar-link[data-view="fields"] {
    --btn-color: #16a34a; /* Orta Koyu Cim / Tarla Yesili */
    --btn-glow: rgba(22, 163, 74, 0.35);
    --btn-bg-active: linear-gradient(90deg, rgba(22, 163, 74, 0.20) 0%, rgba(22, 163, 74, 0.05) 100%);
}

.sidebar-link[data-view="journal"] {
    --btn-color: #15803d; /* Koyu Zumrut / Orman Yesili */
    --btn-glow: rgba(21, 128, 61, 0.35);
    --btn-bg-active: linear-gradient(90deg, rgba(21, 128, 61, 0.22) 0%, rgba(21, 128, 61, 0.06) 100%);
}

.sidebar-link[data-view="settings"] {
    --btn-color: #34d399; /* Ferah ve Canli Zumrut / Nane Yesili */
    --btn-glow: rgba(52, 211, 153, 0.35);
    --btn-bg-active: linear-gradient(90deg, rgba(52, 211, 153, 0.20) 0%, rgba(52, 211, 153, 0.04) 100%);
}
.sidebar-link {
    width: 100%; box-sizing: border-box;
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.68rem 0.85rem; margin-bottom: 0.35rem;
    font-size: 0.88rem; font-weight: 600; font-family: inherit;
    color: rgba(255, 255, 255, 0.65); background: transparent;
    border: none; border-radius: 8px; cursor: pointer;
    text-align: left;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    user-select: none;
    transition: color 0.25s ease, background 0.3s ease, transform 0.15s ease;
}

.sidebar-link svg {
    width: 19px; height: 19px; flex-shrink: 0;
    color: rgba(255, 255, 255, 0.35);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.sidebar-link span {
    z-index: 2;
    transition: color 0.25s ease, transform 0.2s ease;
}

.sidebar-link:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.sidebar-link:hover:not(.active) svg {
    color: var(--btn-color);
    filter: drop-shadow(0 0 6px var(--btn-glow));
    transform: scale(1.08);
}

.sidebar-link.active {
    background: var(--btn-bg-active);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.sidebar-link.active svg {
    color: var(--btn-color);
    filter: drop-shadow(0 0 8px var(--btn-glow));
    transform: scale(1.15);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 3.5px;
    background: var(--btn-color);
    border-radius: 0 4px 4px 0;
    z-index: 3;
}

/* =========================================
   SOL SIDEBAR KULLANICI ALANI VE ÇIKIŞ BUTONU
   ========================================= */
.sidebar-bottom {
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    padding-top: 0.9rem;
    padding-bottom: 0.25rem;
    padding-left: 0;
    padding-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* Modern & Ferah Kullanıcı Profil Kartı */
.sidebar-user-card {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.55rem 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-user-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 222, 128, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* Üst Satır: Profil Avatarı ve İsim Aynı Satırda, Aynı Boyda */
.sidebar-user-top-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

/* Avatar Kapsayıcı */
.user-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.user-avatar-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #15803d 0%, #064e3b 100%);
    border: 1.5px solid rgba(74, 222, 128, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.user-avatar-emoji {
    font-size: 1.05rem;
    line-height: 1;
    display: none;
}

.user-avatar-initials {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.user-online-pulse {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 7.5px;
    height: 7.5px;
    background: #22c55e;
    border: 1.5px solid #062817;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.85);
}

.sidebar-user-name {
    font-size: 0.70rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    flex: 1;
    letter-spacing: -0.15px;
}

.sidebar-user-action-icon {
    color: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sidebar-user-action-icon svg {
    width: 13px;
    height: 13px;
}

.sidebar-user-card:hover .sidebar-user-action-icon {
    color: #86efac;
    transform: translateX(2px);
}

/* Alt Satır: Kullanıcı E-Posta Adresi */
.sidebar-user-bottom-row {
    width: 100%;
    padding-top: 0.2rem;
    padding-left: 0.1rem;
    display: flex;
    align-items: center;
}

.sidebar-user-email {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    letter-spacing: -0.1px;
}

/* Üstteki Menü Butonlarıyla %100 Birebir Uyumlu Modern Çıkış Butonu */
.sidebar-logout-btn {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.68rem 0.85rem;
    margin-top: 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    color: rgba(252, 165, 165, 0.8);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    position: relative;
    overflow: hidden;
    user-select: none;
    transition: color 0.25s ease, background 0.3s ease, transform 0.15s ease;
}

.sidebar-logout-btn svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    color: rgba(248, 113, 113, 0.65);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar-logout-btn span {
    transition: color 0.25s ease, transform 0.2s ease;
}

.sidebar-logout-btn:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

.sidebar-logout-btn:hover svg {
    color: #f87171;
    filter: drop-shadow(0 0 7px rgba(239, 68, 68, 0.5));
    transform: scale(1.12);
}

/* --- Kullanıcı Profil & Hesap Ayarları Modalı --- */
/* --- Kullanıcı Profil & Hesap Ayarları Modalı (Geniş ve Ferah Tasarım - Referans Görseli Uyumlu) --- */
#profile-settings-modal .profile-modal-card,
.profile-modal-card {
    width: 780px !important;
    max-width: min(780px, 94vw) !important;
    min-height: auto !important;
    height: auto !important;
    max-height: 92vh !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff;
    border-radius: 22px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden !important;
    position: relative;
    padding: 0 !important;
    margin: auto;
    animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.profile-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 2rem;
    background: #143d2b;
    color: #ffffff;
    flex-shrink: 0;
}

.profile-modal-header-left {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.profile-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.profile-modal-card .profile-modal-title,
.profile-modal-header .profile-modal-title,
.profile-modal-title {
    margin: 0;
    padding: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.profile-modal-card .profile-modal-subtitle,
.profile-modal-header .profile-modal-subtitle,
.profile-modal-subtitle {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.3;
}

.profile-modal-close {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.profile-modal-close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.05);
}

/* Üst Sekmeler */
.profile-modal-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem 0.5rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 0;
}
.profile-modal-tabs::-webkit-scrollbar {
    display: none;
}

.profile-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 10px 10px;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
}

.profile-tab-btn:hover {
    color: #0f172a;
    background: #f8fafc;
}

.profile-tab-btn.active {
    color: #065f46;
    background: #ffffff;
    border-color: #d1fae5;
    font-weight: 750;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.profile-tab-btn.tab-btn-danger:hover {
    color: #dc2626;
    background: #fef2f2;
}

.profile-tab-btn.tab-btn-danger.active {
    color: #dc2626;
    border-color: #fecaca;
    background: #ffffff;
    font-weight: 750;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}

/* Sekme İçerik Alanı */
.profile-tab-content {
    flex: 1;
    min-height: 0;
    padding: 1.25rem 2rem 1.75rem 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.profile-tab-pane {
    display: none;
    height: 100%;
    flex: 1;
}

.profile-tab-pane.active {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    animation: fadeIn 0.2s ease;
}

.profile-tab-pane form {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

/* Form Izgaraları ve İkonlu Girdi Alanları */
.pfl-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.15rem;
}

.pfl-form-group {
    display: flex;
    flex-direction: column;
}

.pfl-cks-group {
    max-width: calc(50% - 0.625rem);
    width: 100%;
    margin-bottom: 1.25rem;
}

.pfl-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.pfl-req {
    color: #ef4444;
    margin-left: 2px;
}

.pfl-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.pfl-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
    flex-shrink: 0;
}

.pfl-input-wrap input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 42px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.pfl-input-wrap input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    outline: none;
}

/* Profil Görseli Kutusu (Ferah Mint Kart) */
.pfl-avatar-card {
    background: #f4fbf7;
    border: 1.5px solid #dcfce7;
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.pfl-avatar-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.pfl-box-title {
    margin: 0 0 3px 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.pfl-box-sub {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
}

.pfl-format-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.pfl-avatar-card-body {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.pfl-avatar-preview-box {
    width: 82px;
    height: 82px;
    min-width: 82px;
    border-radius: 22px;
    background: #1c4b37;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 14px rgba(28, 75, 55, 0.22);
}

.pfl-avatar-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
}

.pfl-avatar-initials {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.pfl-status-dot {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 15px;
    height: 15px;
    background: #10b981;
    border: 2.5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.pfl-avatar-actions-col {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pfl-avatar-btn-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pfl-btn-upload {
    background: #ffffff;
    border: 1.5px solid #d1fae5;
    color: #065f46;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.pfl-btn-upload:hover {
    background: #ecfdf5;
    border-color: #a7f3d0;
    transform: translateY(-1px);
}

.pfl-btn-remove {
    background: #fef2f2;
    border: 1.5px solid #fee2e2;
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pfl-btn-remove:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    transform: translateY(-1px);
}

.pfl-preset-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pfl-preset-label {
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 600;
}

.pfl-preset-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pfl-preset-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.pfl-preset-btn:hover {
    transform: scale(1.12);
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

/* Modal Alt Aksiyon Butonları */
.pfl-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
}

.pfl-btn-cancel {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pfl-btn-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.pfl-btn-save {
    background: #143d2b;
    border: none;
    color: #ffffff;
    font-size: 0.90rem;
    font-weight: 750;
    padding: 10px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(20, 61, 43, 0.25);
}

.pfl-btn-save:hover {
    background: #0f3022;
    box-shadow: 0 6px 18px rgba(20, 61, 43, 0.35);
    transform: translateY(-1px);
}

.profile-alert-box {
    padding: 0.5rem 0.85rem;
    border-radius: 9px;
    font-size: 0.80rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.35;
    animation: fadeIn 0.2s ease;
}

.profile-alert-box.success {
    display: flex;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.profile-alert-box.error {
    display: flex;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.profile-security-hint {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.65rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.72rem;
    color: #475569;
    margin-bottom: 0.55rem;
    line-height: 1.3;
}
.profile-security-hint svg {
    flex-shrink: 0;
    color: #15803d;
}

/* =========================================
   ANA İÇERİK
   ========================================= */
.main-content {
    margin-left: 260px; width: calc(100% - 260px);
    flex: 1; background: transparent;
    padding: 1.5rem 2.5rem; min-height: 100vh;
}
.view { display: none; }
.view.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.card { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { padding: 1.5rem; margin-bottom: 1.5rem; }
.panel-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 1rem; padding-bottom: .65rem; border-bottom: 1px solid #f1f5f9; color: var(--text); }
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 24px; height: 24px; }
.muted-text { font-size: .85rem; color: var(--muted); }

/* --- Bilgi Çubuğu --- */
.info-bar {
    padding: 1.05rem 1.45rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(rgba(12, 45, 30, 0.82), rgba(4, 25, 17, 0.92)), url('assets/images/header-bg1.jpg') center/cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.info-bar-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.welcome-text {
    font-size: 1.02rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.season-pill {
    background: rgba(16, 185, 129, 0.22);
    color: #a7f3d0;
    border: 1px solid rgba(52, 211, 153, 0.45);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
}

.info-bar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    padding: 0;
}

.date-display-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    backdrop-filter: blur(6px);
}

.date-display-box svg {
    color: #34d399;
    flex-shrink: 0;
}

.notification-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f1f5f9;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
    flex-shrink: 0;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.notification-dot {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444; 
    border: 2px solid #064e3b;
    border-radius: 50%;
    display: block;
}

.notification-btn:hover .notification-dot {
    border-color: #042d1f;
}

/* --- Özet Kartları --- */
.cards-row { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; 
}
.summary-card { position: relative; overflow: hidden; padding: 1rem .25rem; }
.summary-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; z-index: 10; transition: background 0.4s ease;
}

.card-header-label { font-size: 0.72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .65rem; margin-left: 0.2rem; }
.card-body-row { display: flex; align-items: center; gap: 0.5rem; }
.card-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.income-bg { background: var(--income-bg); color: var(--income); }
.expense-bg { background: var(--expense-bg); color: var(--expense); }
.balance-bg { background: rgba(217,119,6,.1); color: var(--gold); }
.field-bg { background: rgba(99,102,241,.1); color: var(--indigo); }

.card-value { font-size: 1rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.income-val { color: var(--income); } 
.expense-val { color: var(--expense); } 
.balance-val { color: var(--gold); } 
.field-val { color: var(--indigo); }

.cards-row .summary-card:nth-child(1)::before { background: var(--indigo); }
.cards-row .summary-card:nth-child(2)::before { background: linear-gradient(to right, #16a34a, #15803d); }
.cards-row .summary-card:nth-child(3)::before { background: linear-gradient(to right, #dc2626, #991b1b); }

/* Dinamik Net Bakiye Seviye Sınıfları */
#view-dashboard .cards-row .summary-card.net-tier-p1::before { background: linear-gradient(to right, #86efac, #22c55e); }
#view-dashboard .cards-row .summary-card.net-tier-p2::before { background: linear-gradient(to right, #22c55e, #16a34a); }
#view-dashboard .cards-row .summary-card.net-tier-p3::before { background: linear-gradient(to right, #16a34a, #15803d); }
#view-dashboard .cards-row .summary-card.net-tier-p4::before { background: linear-gradient(to right, #15803d, #064e3b); }

#view-dashboard .cards-row .summary-card.net-tier-n1::before { background: linear-gradient(to right, #fca5a5, #ef4444); }
#view-dashboard .cards-row .summary-card.net-tier-n2::before { background: linear-gradient(to right, #ef4444, #dc2626); }
#view-dashboard .cards-row .summary-card.net-tier-n3::before { background: linear-gradient(to right, #dc2626, #991b1b); }
#view-dashboard .cards-row .summary-card.net-tier-n4::before { background: linear-gradient(to right, #991b1b, #450a0a); }

#view-dashboard .cards-row .summary-card.net-tier-p1 .balance-val, 
#view-dashboard .cards-row .summary-card.net-tier-p1 .balance-bg { color: #22c55e; }
#view-dashboard .cards-row .summary-card.net-tier-p1 .balance-bg { background: rgba(34, 197, 94, 0.15); }

#view-dashboard .cards-row .summary-card.net-tier-p2 .balance-val, 
#view-dashboard .cards-row .summary-card.net-tier-p2 .balance-bg { color: #16a34a; }
#view-dashboard .cards-row .summary-card.net-tier-p2 .balance-bg { background: rgba(22, 163, 74, 0.15); }

#view-dashboard .cards-row .summary-card.net-tier-p3 .balance-val, 
#view-dashboard .cards-row .summary-card.net-tier-p3 .balance-bg { color: #15803d; }
#view-dashboard .cards-row .summary-card.net-tier-p3 .balance-bg { background: rgba(21, 128, 61, 0.15); }

#view-dashboard .cards-row .summary-card.net-tier-p4 .balance-val, 
#view-dashboard .cards-row .summary-card.net-tier-p4 .balance-bg { color: #064e3b; }
#view-dashboard .cards-row .summary-card.net-tier-p4 .balance-bg { background: rgba(6, 78, 59, 0.15); }

#view-dashboard .cards-row .summary-card.net-tier-n1 .balance-val, 
#view-dashboard .cards-row .summary-card.net-tier-n1 .balance-bg { color: #ef4444; }
#view-dashboard .cards-row .summary-card.net-tier-n1 .balance-bg { background: rgba(239, 68, 68, 0.15); }

#view-dashboard .cards-row .summary-card.net-tier-n2 .balance-val, 
#view-dashboard .cards-row .summary-card.net-tier-n2 .balance-bg { color: #dc2626; }
#view-dashboard .cards-row .summary-card.net-tier-n2 .balance-bg { background: rgba(220, 38, 38, 0.15); }

#view-dashboard .cards-row .summary-card.net-tier-n3 .balance-val, 
#view-dashboard .cards-row .summary-card.net-tier-n3 .balance-bg { color: #991b1b; }
#view-dashboard .cards-row .summary-card.net-tier-n3 .balance-bg { background: rgba(153, 27, 27, 0.15); }

#view-dashboard .cards-row .summary-card.net-tier-n4 .balance-val, 
#view-dashboard .cards-row .summary-card.net-tier-n4 .balance-bg { color: #7f1d1d; }
#view-dashboard .cards-row .summary-card.net-tier-n4 .balance-bg { background: rgba(127, 29, 29, 0.15); }

/* --- İkili Düzen (Grafikler) --- */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.chart-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; justify-content: center; padding: 1rem 0; }

#view-dashboard .chart-wrap .donut { position: relative; display: flex; flex-direction: column; align-items: center; height: auto; }
#view-dashboard .chart-wrap .donut svg { transform: rotate(-90deg); width: 150px; height: 150px; flex-shrink: 0; }
#view-dashboard .chart-wrap .donut-center { position: static; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: 1rem; }
#view-dashboard .chart-wrap .donut-amount { font-size: 1.15rem; font-weight: 800; color: #0f172a; }
#view-dashboard .chart-wrap .donut-label { font-size: 0.7rem; font-weight: 600; color: #64748b; text-transform: uppercase; }

.legend { flex: 1; display: flex; flex-direction: column; gap: 0.1rem; width: 100%; max-height: 180px; overflow-y: auto; overflow-x: hidden; padding-right: 0.5rem; min-width: 180px; }
.legend::-webkit-scrollbar { width: 4px; }
.legend::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 10px; }
.legend-item { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid #f1f5f9; }
.legend-item:last-child { border-bottom: none; }
.legend-left { display: flex; align-items: center; gap: 0.5rem; min-width: 0; flex: 1; }
.legend-cat-name { font-size: 0.8rem; font-weight: 600; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend-right { display: flex; align-items: center; gap: 0.5rem; }
.legend-amt { font-size: 0.85rem; font-weight: 700; color: #0f172a; }
.legend-pct { font-size: 0.7rem; font-weight: 800; color: #64748b; background: #f1f5f9; padding: 0.2rem 0.4rem; border-radius: 6px; min-width: 38px; text-align: center; }

/* --- Genelde Kullanılan Tablo Stilleri --- */
.table-wrapper { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
thead th { padding: .75rem .65rem; font-size: .75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; border-bottom: 2px solid #e2e8f0; background: #f8fafc; }
tbody tr:hover { background: #f1f5f9; }
tbody td { padding: 0.6rem 0.4rem; font-size: 0.8rem; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }
.text-center { text-align: center; } .text-right { text-align: right; }

/* --- Butonlar & Form Yapıları --- */
.btn-primary { padding: .7rem 1.15rem; font-size: .9rem; font-weight: 700; font-family: inherit; color: #fff; background: var(--primary); border: none; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .45rem; width: 100%; transition: all .2s ease; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-auto { width: auto; }
.btn-secondary { padding: .65rem 1rem; font-size: .85rem; font-weight: 700; font-family: inherit; color: var(--text); background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 0.4rem; }
.btn-secondary:hover { background: #f8fafc; }
.btn-text-link { background: none; border: none; color: var(--primary); font-weight: 700; font-size: 0.85rem; cursor: pointer; padding: 0.5rem; width: 100%; }
.btn-text-link:hover { text-decoration: underline; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .8rem; font-weight: 700; color: #334155; margin-bottom: .4rem; }
.form-group input:not([type="radio"]):not([type="checkbox"]), .form-group select { width: 100%; padding: .7rem .85rem; font-size: .9rem; font-family: inherit; background: #fff; border: 2px solid #e2e8f0; border-radius: 8px; color: var(--text); outline: none; transition: all 0.2s ease; }
.form-group input:not([type="radio"]):not([type="checkbox"]):hover, .form-group select:hover { border-color: #cbd5e1; }
.form-group input:not([type="radio"]):not([type="checkbox"]):focus, .form-group select:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(4, 61, 44, 0.08); }
.readonly-highlight { background: #f0fdf4; border-color: #86efac; color: #166534; font-weight: 800; pointer-events: none; }

/* Radyo Butonları Yuvarlak & Temiz Reset (Yeşil Dikdörtgen Kutu Çıkmasını Kesin Engelleme) */
.radio-label input[type="radio"],
.form-group:not(.transaction-type-toggle) input[type="radio"]:not(.type-radio input) {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    border: 1.5px solid #cbd5e1 !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    background: transparent !important;
    accent-color: #10b981 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    -webkit-appearance: radio !important;
    appearance: radio !important;
}

/* Gelir / Gider kartlarındaki radyo butonlarını gizleme (nokta görünmesini kesin engeller) */
.type-radio input,
.type-radio input[type="radio"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* --- Yeni Kayıt Ekranı Form Tasarımı (Doğal, Ferah ve Dengeli) --- */
#view-add-entry .add-entry-layout { 
    display: flex; 
    flex-direction: column; 
    gap: 2.25rem; 
}
#view-add-entry .panel { 
    padding: 1.75rem 2rem; 
    margin-bottom: 0.75rem; 
}
#view-add-entry .info-bar { 
    padding: 0.95rem 1.35rem; 
    margin-bottom: 1.25rem; 
}
#view-add-entry .panel-title { 
    margin-bottom: 1.25rem; 
    padding-bottom: 0.75rem; 
    font-size: 1.2rem; 
    font-weight: 800;
}
#view-add-entry .form-panel, #view-add-entry .widget-panel { 
    display: flex; 
    flex-direction: column; 
}
#view-add-entry #entry-form { 
    display: flex; 
    flex-direction: column; 
    gap: 1.25rem; 
    flex-grow: 1; 
}
#view-add-entry .form-grid { 
    display: grid;
    gap: 1.15rem 1.35rem; 
}
.form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.form-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

#view-add-entry #entry-form .form-group { margin-bottom: 0; }
#view-add-entry #entry-form .form-group label { 
    display: block;
    margin-bottom: 0.45rem; 
    font-size: 0.84rem; 
    font-weight: 700;
    color: #334155;
}
#view-add-entry #entry-form .form-group input, 
#view-add-entry #entry-form .form-group select { 
    width: 100%;
    height: 48px;
    padding: 0 1rem; 
    font-size: 0.95rem; 
    font-weight: 500;
    font-family: inherit;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

#view-add-entry #entry-form .form-group select {
    padding-right: 2rem;
    cursor: pointer;
}

#view-add-entry #entry-form .form-group input:focus,
#view-add-entry #entry-form .form-group select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.14);
    outline: none;
}

#view-add-entry #entry-form .currency-symbol { font-size: 1.05rem; left: 1rem; }
#view-add-entry #entry-form .input-with-icon input { padding-left: 2.4rem; font-weight: 700; }

/* Entry Modal ve Genel Form Focus Çerçeve Stili (Siyah yerine açık yeşil) */
#entry-modal input,
#entry-modal select {
    border: 1.5px solid var(--border, #cbd5e1);
    border-radius: 8px;
    background: var(--card-bg, #ffffff);
    color: var(--text, #0f172a);
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#entry-modal input:focus,
#entry-modal select:focus,
#entry-modal .clearable-input-wrapper:focus-within input,
.form-group input:focus,
.form-group select:focus,
.clearable-input-wrapper:focus-within input {
    outline: none !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18) !important;
}
body.theme-dark #entry-modal input,
body.theme-dark #entry-modal select {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
}
body.theme-monochrome #entry-modal input,
body.theme-monochrome #entry-modal select {
    background: #ffffff;
    border-color: #000000;
    color: #000000;
}

/* Gelir / Gider Dikey Kısaltma */
#entry-modal .type-card {
    padding: 0.42rem 0.85rem;
    height: 38px;
    min-height: 38px;
    font-size: 0.88rem;
}
#entry-modal .type-card .tc-icon svg {
    width: 16px;
    height: 16px;
}

/* Seri Ekleme Butonu Aktif Durum */
.continuous-add-toggle input:checked + .continuous-toggle-box {
    background: #ecfdf5 !important;
    border-color: #10b981 !important;
    color: #047857 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

/* Bilgisayarda / Geniş Ekranda: mob-ledger-calc GİZLİDİR (Miktar ve Birim Fiyat zaten kendi sütunlarında yer alır) */
.mob-ledger-calc {
    display: none !important;
}

/* Modal Açıkken Arka Plan Kaydırmasını Engelleme */
body.modal-open {
    overflow: hidden !important;
}

.transaction-type-toggle { display: flex; gap: 1rem; margin-bottom: 0.5rem; }
#view-add-entry .transaction-type-toggle { margin-bottom: 0.5rem; gap: 0.85rem; }
.type-radio { flex: 1; cursor: pointer; }
.type-radio input { display: none; }
.type-card { display: flex; align-items: center; justify-content: center; gap: 0.55rem; padding: 0.8rem 1.15rem; border: 1.5px solid #e2e8f0; border-radius: 10px; background: #f8fafc; color: #64748b; font-weight: 700; font-size: 0.92rem; transition: all 0.2s ease; }
#view-add-entry .type-card { padding: 0.75rem 1.15rem; font-size: 0.92rem; }
.tc-icon svg { width: 18px; height: 18px; }
#view-add-entry .tc-icon svg { width: 18px; height: 18px; }
.type-card:hover { border-color: #cbd5e1; background: #fff; }

.type-radio input:checked#type-income + .income-card { border-color: #10b981; background: rgba(16, 185, 129, 0.08); color: #047857; box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12); }
.type-radio input:checked#type-expense + .expense-card { border-color: #ef4444; background: rgba(239, 68, 68, 0.08); color: #b91c1c; box-shadow: 0 2px 6px rgba(239, 68, 68, 0.12); }

.input-with-icon { position: relative; display: flex; align-items: center; width: 100%; }
.currency-symbol { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); font-size: 0.95rem; font-weight: 800; color: #64748b; pointer-events: none; z-index: 2; line-height: 1; }
.input-with-icon input,
.form-group .input-with-icon input,
.entry-modal-card .input-with-icon input { padding-left: 2.45rem !important; font-weight: 700; }
.full-width { grid-column: 1 / -1; }

.form-actions-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.95rem;
    margin-top: 1.15rem;
    width: 100%;
}

.btn-reset-form {
    width: auto;
    flex: 0 0 auto;
    height: 46px;
    padding: 0 1.5rem;
    min-width: 120px;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.btn-reset-form:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.15);
}

.btn-save-entry {
    width: auto;
    flex: 0 0 auto;
    height: 46px;
    padding: 0 1.95rem;
    min-width: 175px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.btn-save-entry:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.btn-save-entry svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
    .form-grid-3 { grid-template-columns: 1fr 1fr; }
    .form-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .form-grid-3, .form-grid-4 { grid-template-columns: 1fr; }
    .form-actions-row { justify-content: stretch; }
    .btn-reset-form, .btn-save-entry { flex: 1; }
}

/* --- Son Kayıtlar Widget --- */
.widget-panel { background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); }
.recent-entries-wrapper { display: flex; flex-direction: column; max-height: 450px; overflow-y: auto; padding-right: 0.5rem; }
.recent-entries-wrapper::-webkit-scrollbar { width: 6px; }
.recent-entries-wrapper::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 10px; }

#view-add-entry .recent-entries-wrapper { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    flex-grow: 1; 
    max-height: none; 
    min-height: 150px; 
} 

.recent-entry-card { display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; align-items: center; padding: 0.85rem 0; border-bottom: 1px solid #f1f5f9; }
.recent-entry-card:last-child { border-bottom: none; }
#view-add-entry .recent-entry-card { 
    padding: 1rem; 
    gap: 0.75rem; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.re-icon-box { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#view-add-entry .re-icon-box { width: 32px; height: 32px; border-radius: 8px; }
.re-icon-box.expense { background: #fee2e2; color: #b91c1c; }
.re-icon-box.income { background: #d1fae5; color: #047857; }
.re-icon-box svg { width: 20px; height: 20px; }
#view-add-entry .re-icon-box svg { width: 16px; height: 16px; }

.re-details { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; } 
.re-title { font-weight: 700; font-size: 0.85rem; color: #1e293b; display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.re-subtitle { font-size: 0.7rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.re-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; }
.re-amount { font-weight: 800; font-size: 0.85rem; white-space: nowrap; }
.re-amount.expense { color: #b91c1c; } .re-amount.income { color: #047857; }

.re-actions { display: flex; gap: 0.3rem; }
.re-actions .btn-icon-edit, .re-actions .btn-icon-delete { width: 26px; height: 26px; border-radius: 6px; }
.re-actions svg { width: 14px; height: 14px; }

.btn-see-all { display: flex; justify-content: center; align-items: center; gap: 0.5rem; width: 100%; background: #f8fafc; color: var(--primary); border: 1px solid #e2e8f0; font-size: 0.85rem; font-weight: 700; font-family: inherit; padding: 0.75rem; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; margin-top: 1rem; }
.btn-see-all:hover { background: #f1f5f9; color: var(--primary-hover); box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
#view-add-entry .widget-panel .btn-see-all { margin-top: auto; padding: 0.5rem; font-size: 0.8rem; }

/* --- Tarla Yönetimi Yenilenmiş Düzen --- */
.fields-top-overview {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    align-items: stretch;
}

@media (max-width: 960px) {
    .fields-top-overview {
        grid-template-columns: 1fr;
    }
}

.fields-stats-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.field-summary-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    flex: 1;
}

.fsc-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f0fdf4;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fsc-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.fsc-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.fsc-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
}

.fields-weather-panel {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    max-height: 180px;
    overflow: hidden;
}

/* Hava durumu paneli iç kartlarını küçült */
.fields-weather-panel .weather-forecast-grid {
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.fields-weather-panel .weather-day-card {
    padding: 0.5rem 0.35rem;
}

.fields-weather-panel .wd-icon {
    font-size: 1.2rem;
    margin: 0.1rem 0;
}

.fields-weather-panel .wd-name {
    font-size: 0.72rem;
    margin-bottom: 0.15rem;
}

.fields-weather-panel .wd-date {
    font-size: 0.62rem;
    margin-bottom: 0.25rem;
}

.fields-weather-panel .wd-temp {
    font-size: 0.78rem;
    margin-bottom: 0;
}

.fields-weather-panel .wd-temp small {
    font-size: 0.66rem;
}

/* Hava detaylarını (Yağış/Rüzgar/Nem) bu panelde gizle */
.fields-weather-panel .wd-details {
    display: none;
}

.fields-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 1rem;
}

.fields-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.fields-header-controls {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.fields-search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    height: 38px;
    padding: 0 0.75rem;
    gap: 0.45rem;
    color: #64748b;
    transition: all 0.2s ease;
    width: 210px;
}

.fields-search-box input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.86rem;
    font-family: inherit;
    width: 100%;
    color: #0f172a;
}

.fields-search-box:focus-within {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
    width: 250px;
}

.view-toggle {
    display: flex;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: none;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: inherit;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Tarla Kartları (Kare Harita & Zengin Bilgi) */
.fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.field-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.field-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
    border-color: #059669;
}

/* Kare Uydu Haritası (1:1 Aspect Ratio) */
.field-map-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 240px;
    border-bottom: 1.5px solid #e2e8f0;
    position: relative;
    background: #0f172a;
}

.field-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.field-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.field-card-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.field-card-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 0.2rem;
    border-radius: 6px;
    transition: all 0.15s;
}

.field-card-menu-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.field-crop-info {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    width: fit-content;
}

.field-crop-dot {
    width: 4px;
    height: 4px;
    background: #86efac;
    border-radius: 50%;
}

.field-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 0.75rem 0.85rem;
}

.fdg-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.fdg-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.fdg-value {
    font-size: 0.86rem;
    font-weight: 700;
    color: #1e293b;
    word-break: break-word;
}



.btn-field-journal {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 0.35rem 0.75rem;
    border-radius: 7px;
    font-size: 0.5rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s;
}

.btn-field-journal:hover {
    background: #043d2c;
    border-color: #043d2c;
    color: #ffffff;
}

.field-card-delete-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    padding: 0.35rem 0.5rem;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.field-card-delete-btn:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #ef4444;
}

/* Harita Turkuaz Parsel İşaretçisi */
.field-pin-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
    transition: transform 0.2s ease;
}

.field-pin-marker:hover {
    transform: scale(1.15);
}

/* --- Ayarlar Sayfası (v4.2 - 3x2 Dengeli & Orantılı Ortalanmış Kart Tasarımı) --- */
#view-settings {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* --- Ayarlar Sayfası Bulut Senkronizasyon Barı (Google Cloud Firestore) --- */
.settings-cloud-sync-bar {
    background: #ffffff;
    border: 1.5px solid #d1fae5;
    border-radius: 14px;
    padding: 0.65rem 1.25rem;
    margin-bottom: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    box-shadow: 0 2px 10px -2px rgba(16, 185, 129, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    min-height: 52px;
}
.settings-cloud-sync-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}
.sc-sync-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1;
    min-width: 0;
}
.sc-sync-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sc-sync-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.sc-sync-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.sc-sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    background: #e6f7ef;
    color: #059669;
    border: 1px solid #a7f3d0;
    white-space: nowrap;
    height: 28px;
}
.sc-sync-desc {
    font-size: 0.80rem;
    color: #64748b;
    line-height: 1.35;
}
.sc-sync-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}
.sc-sync-btn-push {
    background: #059669;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0 1rem;
    height: 38px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
    white-space: nowrap;
}
.sc-sync-btn-push:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}
.sc-sync-btn-pull {
    background: #ffffff;
    color: #065f46;
    border: 1.5px solid #a7f3d0;
    border-radius: 10px;
    padding: 0 1rem;
    height: 38px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.sc-sync-btn-pull:hover {
    background: #f0fdf4;
    border-color: #6ee7b7;
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    .settings-cloud-sync-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 1.15rem;
        gap: 1rem;
    }
    .sc-sync-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.65rem;
    }
    .sc-sync-btn-push, .sc-sync-btn-pull {
        width: 100%;
        justify-content: center;
        height: 46px;
    }
}

.settings-grid-v4 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0 auto 1.25rem auto;
    width: 100%;
}
@media (max-width: 1180px) {
    .settings-grid-v4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .settings-grid-v4 {
        grid-template-columns: 1fr;
    }
}

/* Üst Çubuk Son Sistem Yedeği Hapı (Cam ve Buğu Efektli Zümrüt Yeşili) */
.topbar-backup-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.42rem 0.95rem;
    background: rgba(6, 78, 59, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(52, 211, 153, 0.4);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: all 0.25s ease;
}
.topbar-backup-pill:hover {
    background: rgba(6, 78, 59, 0.6);
    border-color: rgba(52, 211, 153, 0.65);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 14px rgba(52, 211, 153, 0.25);
}
.topbar-backup-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.22);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.topbar-backup-content {
    display: flex;
    flex-direction: column;
}
.topbar-backup-label {
    font-size: 0.70rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.15;
}
.topbar-backup-time {
    font-size: 0.84rem;
    font-weight: 800;
    color: #a7f3d0;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Standart Kart v4 */
.settings-card-v4 {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.15rem;
    box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.settings-card-v4:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 22px -2px rgba(15, 23, 42, 0.08);
}

/* Kart Üst Başlık */
.sc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 44px;
}
.sc-header-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1;
    min-width: 0;
}
.sc-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sc-icon.icon-mint { background: #e8f8f0; color: #10b981; }
.sc-icon.icon-cyan { background: #e6faf2; color: #0d9488; }
.sc-icon.icon-blue { background: #edf7ff; color: #0284c7; }
.sc-icon.icon-amber { background: #fffbeb; color: #d97706; }
.sc-icon.icon-emerald { background: #ecfdf5; color: #059669; }
.sc-icon.icon-purple { background: #f5f3ff; color: #7c3aed; }

.sc-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.01em;
}
.sc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    white-space: nowrap;
    background: #e6f7ef;
    color: #059669;
}
.sc-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}

/* Açıklama Metni */
.sc-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

/* Durum / Toggle / API Giriş Kutuları */
.sc-status-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.84rem;
}
.sc-status-label {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}
.sc-status-val {
    font-weight: 700;
    color: #1e293b;
}

.sc-toggle-box {
    background: #f0fdf4;
    border: 1.5px solid #dcfce7;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sc-toggle-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}
.sc-toggle-sub {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 2px;
}

.api-key-box-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.api-key-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}
.api-key-input-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    height: 46px;
    padding: 0 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.2s;
}
.api-key-input-box:focus-within {
    border-color: #047857;
    background: #ffffff;
}
.api-key-input-box input {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    color: #0f172a;
    flex: 1;
    outline: none;
    box-shadow: none;
    width: 100%;
}
.api-key-input-box input.api-key-masked {
    -webkit-text-security: disc;
    font-family: monospace;
    letter-spacing: 2px;
}
.api-key-eye-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}
.api-key-eye-btn:hover {
    color: #0f172a;
}

/* Aksiyon Butonları */
.sc-btn-primary {
    background: #0f2e22;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    height: 48px;
    width: 100%;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 46, 34, 0.18);
    text-decoration: none;
}
.sc-btn-primary:hover {
    background: #184735;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 46, 34, 0.25);
}

.sc-btn-secondary {
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    height: 48px;
    width: 100%;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.sc-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.sc-btn-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1.5px solid #fca5a5;
    border-radius: 12px;
    height: 48px;
    width: 100%;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.sc-btn-danger:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(185, 28, 28, 0.12);
}

.sc-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #cbd5e1;
    transition: .25s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .25s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
input:checked + .slider {
    background-color: #1e4034;
}
input:checked + .slider:before {
    transform: translateX(20px);
}

/* Tema Seçici Chips (Kart 4) */
.theme-chips-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.theme-chip-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.theme-chip-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.theme-chip-btn.active {
    border-color: #047857;
    background: #f0fdf4;
}
.theme-chip-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.theme-chip-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.theme-chip-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}
.theme-chip-sub {
    font-size: 0.70rem;
    color: #64748b;
}
.theme-chip-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.theme-chip-btn.active .theme-chip-check {
    border-color: #047857;
    background: #047857;
}
.theme-chip-btn.active .theme-chip-check::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

/* Birimler Formu (Kart 5) */
.sc-form-flex {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.sc-select-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.sc-select-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
}
.sc-select-input {
    width: 100%;
    height: 38px;
    border-radius: 10px;
    padding: 0 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s;
}
.sc-select-input:focus {
    border-color: #047857;
    background: #ffffff;
}

/* Kategori Yönetimi (Kart 6) */
.sc-cat-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.sc-cat-tabs {
    display: flex;
    gap: 0.4rem;
}
.sc-cat-tabs .cat-tab {
    flex: 1;
    padding: 0.25rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    height: 35px;
}
.sc-cat-tabs .cat-tab.active {
    background: #0f2e22;
    color: #ffffff;
}
.sc-cat-list {
    margin: 0;
    max-height: 225px;
    overflow-y: auto;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
}
.sc-cat-list > div {
    padding: 0.32rem 0.55rem !important;
    font-size: 0.80rem;
    border-bottom: 1px solid #f1f5f9;
}
.sc-cat-list > div:last-child {
    border-bottom: none;
}
.sc-add-cat-form {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    width: 100%;
}
.sc-add-cat-form .color-picker-input {
    width: 34px;
    height: 34px;
    min-width: 34px;
    flex-shrink: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}
.sc-add-cat-form .color-picker-input::-webkit-color-swatch-wrapper {
    padding: 0;
}
.sc-add-cat-form .color-picker-input::-webkit-color-swatch {
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.sc-add-cat-form input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 34px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    padding: 0 0.6rem;
    font-size: 0.80rem;
    background: #f8fafc;
}
.sc-add-cat-form input[type="text"]:focus {
    background: #ffffff;
    border-color: #047857;
}
.sc-btn-add-cat {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 8px;
    background: #0f2e22;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.sc-btn-add-cat:hover {
    background: #184735;
}

/* Kategori Silme Çöp Kutusu Butonu */
.btn-cat-delete {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
    border: 1px solid #fee2e2;
    background: #fef2f2;
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}
.btn-cat-delete:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: scale(1.08);
}

/* Alt Şerit: Güvenlik Hatırlatması & Sıfırlama */
.settings-bottom-strip {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.settings-bottom-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.84rem;
    color: #475569;
}
.btn-danger-strip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1.5px solid #fca5a5;
    color: #dc2626;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-danger-strip:hover {
    background: #fef2f2;
    border-color: #f87171;
    transform: translateY(-1px);
}

/* ========================================================
   TEMA STİLLERİ: SİYAH & BEYAZ (ARAZİ MODU) VE KOYU MOD
   ======================================================== */

/* ========================================================
   1. SİYAH-BEYAZ (ARAZİ MODU - YÜKSEK KONTRASTLI GÜNEŞ MODU)
   ======================================================== */
body.theme-monochrome {
    background: #000000;
    color: #ffffff;
    --text: #ffffff;
    --muted: #d4d4d4;
    --primary: #ffffff;
    --primary-dark: #000000;
    --primary-hover: #e5e5e5;
    --border: #444444;
}

body.theme-monochrome .main-content {
    background: #000000;
}

/* Tipografi & Başlıklar */
body.theme-monochrome h1, 
body.theme-monochrome h2, 
body.theme-monochrome h3, 
body.theme-monochrome h4, 
body.theme-monochrome .panel-title, 
body.theme-monochrome .welcome-text,
body.theme-monochrome .fields-section-title,
body.theme-monochrome .brand-title {
    color: #ffffff;
    border-color: #333333;
}

body.theme-monochrome .muted-text, 
body.theme-monochrome p, 
body.theme-monochrome .toggle-desc,
body.theme-monochrome .storage-stat-label, 
body.theme-monochrome .storage-last-backup-text,
body.theme-monochrome .sc-desc,
body.theme-monochrome .card-header-label,
body.theme-monochrome .brand-subtitle {
    color: #d4d4d4;
}

body.theme-monochrome .c-green,
body.theme-monochrome .c-blue {
    color: #ffffff;
}

/* Kartlar, Paneller ve Çerçeveler */
body.theme-monochrome .card,
body.theme-monochrome .panel,
body.theme-monochrome .info-bar,
body.theme-monochrome .settings-card-v4,
body.theme-monochrome .summary-card,
body.theme-monochrome .field-card,
body.theme-monochrome .journal-card,
body.theme-monochrome .field-summary-card,
body.theme-monochrome .unit-metric-card,
body.theme-monochrome .ledger-subtotal-card,
body.theme-monochrome .ledger-filter-card,
body.theme-monochrome .modal,
body.theme-monochrome .profile-modal-card,
body.theme-monochrome .season-modal-card,
body.theme-monochrome .entry-modal-card,
body.theme-monochrome .journal-modal-card,
body.theme-monochrome .field-details-drawer {
    background: #121212;
    color: #ffffff;
    border-color: #444444;
    box-shadow: 0 0 0 1px #262626;
}

body.theme-monochrome .summary-card::before {
    background: #ffffff;
}
body.theme-monochrome .card-value,
body.theme-monochrome .card-value.field-val,
body.theme-monochrome .card-value.income-val,
body.theme-monochrome .card-value.expense-val,
body.theme-monochrome .card-value.balance-val {
    color: #ffffff;
}
body.theme-monochrome .cards-row .summary-card .card-icon {
    background: #262626;
    color: #ffffff;
}

/* Sidebar */
body.theme-monochrome .sidebar {
    background: #0d0d0d !important;
    border-right: 1.5px solid #333333;
    color: #ffffff;
}
body.theme-monochrome .sidebar-logo-container {
    background: #0d0d0d !important;
    border-bottom: 1px solid #333333 !important;
}
body.theme-monochrome .sidebar-season {
    background: #1c1c1c;
    border-color: #444444;
    color: #ffffff;
}
body.theme-monochrome .sidebar-link {
    color: #d4d4d4;
}
body.theme-monochrome .sidebar-link:hover {
    background: #222222;
    color: #ffffff;
}
body.theme-monochrome .sidebar-link.active {
    background: #2a2a2a;
    color: #ffffff;
    box-shadow: inset 3.5px 0 0 #ffffff;
}
body.theme-monochrome .sidebar-link.active svg {
    color: #ffffff;
}
body.theme-monochrome .sidebar-link.active::before {
    background: #ffffff;
}
body.theme-monochrome .sidebar-user-card {
    background: #1a1a1a;
    border-color: #444444;
}
body.theme-monochrome .sidebar-user-name,
body.theme-monochrome .sidebar-user-email {
    color: #ffffff;
}
body.theme-monochrome .sidebar-logout-btn {
    background: #1e1e1e;
    border: 1px solid #444444;
    color: #ffffff;
}
body.theme-monochrome .sidebar-logout-btn:hover {
    background: #333333;
    color: #ffffff;
}

/* Bilgi Çubuğu (Info Bar) */
body.theme-monochrome .info-bar {
    background: #121212;
    border-color: #444444;
}
body.theme-monochrome .season-pill {
    background: #222222;
    color: #ffffff;
    border-color: #666666;
}
body.theme-monochrome .date-display-box,
body.theme-monochrome .notification-btn {
    background: #1a1a1a;
    border-color: #444444;
    color: #ffffff;
}
body.theme-monochrome .date-display-box svg {
    color: #ffffff;
}

/* Form Elemanları, Girdiler ve Seçim Kutuları */
body.theme-monochrome input, 
body.theme-monochrome select, 
body.theme-monochrome textarea,
body.theme-monochrome .lf-select,
body.theme-monochrome .fields-search-box input,
body.theme-monochrome .journal-filter-select,
body.theme-monochrome #new-season-input {
    background: #181818;
    color: #ffffff;
    border-color: #555555;
}
body.theme-monochrome input:focus, 
body.theme-monochrome select:focus, 
body.theme-monochrome textarea:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
    background: #1e1e1e;
}
body.theme-monochrome input::placeholder,
body.theme-monochrome textarea::placeholder {
    color: #888888;
}
body.theme-monochrome .form-group label {
    color: #ffffff;
}
body.theme-monochrome .currency-symbol,
body.theme-monochrome .lf-currency-symbol,
body.theme-monochrome .lf-range-separator {
    color: #d4d4d4;
}
body.theme-monochrome .type-card {
    background: #1a1a1a;
    border-color: #444444;
    color: #d4d4d4;
}
body.theme-monochrome .type-radio input:checked + .type-card {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    font-weight: 800;
}
body.theme-monochrome .type-radio input:checked + .type-card svg {
    color: #000000;
}

/* Butonlar */
body.theme-monochrome .btn-primary,
body.theme-monochrome .btn-save-entry,
body.theme-monochrome .btn-save-journal,
body.theme-monochrome .btn-add-season,
body.theme-monochrome .lf-btn-apply {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    font-weight: 800;
}
body.theme-monochrome .btn-primary:hover,
body.theme-monochrome .btn-save-entry:hover,
body.theme-monochrome .btn-save-journal:hover,
body.theme-monochrome .btn-add-season:hover,
body.theme-monochrome .lf-btn-apply:hover {
    background: #e5e5e5;
    color: #000000;
}
body.theme-monochrome .btn-secondary,
body.theme-monochrome .btn-reset-form,
body.theme-monochrome .btn-reset-journal,
body.theme-monochrome .lf-btn-clear,
body.theme-monochrome .btn-toggle-journal {
    background: #1e1e1e;
    color: #ffffff;
    border: 1.5px solid #555555;
}
body.theme-monochrome .btn-secondary:hover,
body.theme-monochrome .btn-reset-form:hover,
body.theme-monochrome .btn-reset-journal:hover,
body.theme-monochrome .lf-btn-clear:hover,
body.theme-monochrome .btn-toggle-journal:hover {
    background: #2e2e2e;
    border-color: #777777;
    color: #ffffff;
}
body.theme-monochrome .btn-modal-close,
body.theme-monochrome .btn-close,
body.theme-monochrome .profile-modal-close,
body.theme-monochrome .drawer-close-btn {
    background: #222222;
    border-color: #555555;
    color: #ffffff;
}

/* Tablolar (Ledger, Karlılık vb.) */
body.theme-monochrome thead th,
body.theme-monochrome .ledger-table thead th {
    background: #1c1c1c;
    color: #ffffff;
    border-bottom: 2px solid #555555;
}
body.theme-monochrome tbody tr,
body.theme-monochrome .ledger-table tbody tr {
    border-bottom: 1px solid #333333;
}
body.theme-monochrome tbody tr:hover,
body.theme-monochrome .ledger-table tbody tr:hover {
    background: #222222;
}
body.theme-monochrome tbody tr.row-selected,
body.theme-monochrome .ledger-table tbody tr.row-selected {
    background: #2c2c2c;
}
body.theme-monochrome tbody td,
body.theme-monochrome .ledger-table tbody td,
body.theme-monochrome .cat-name,
body.theme-monochrome .field-cell {
    color: #ffffff;
}
body.theme-monochrome .desc-cell {
    color: #d4d4d4;
}
body.theme-monochrome .cat-badge {
    background: #1e1e1e;
    border-color: #555555;
    color: #ffffff;
}
body.theme-monochrome .type-badge,
body.theme-monochrome .type-arrow-badge {
    background: #222222;
    border: 1px solid #666666;
    color: #ffffff;
}
body.theme-monochrome .amount-income,
body.theme-monochrome .amount-expense {
    color: #ffffff;
    font-weight: 800;
}

/* Defter Filtre Alanları */
body.theme-monochrome .lf-search-wrapper,
body.theme-monochrome .lf-range-box,
body.theme-monochrome .fields-search-box {
    background: #181818;
    border-color: #555555;
    color: #ffffff;
}
body.theme-monochrome .lf-meta-count {
    background: #1e1e1e;
    border-color: #444444;
    color: #ffffff;
}
body.theme-monochrome .lsc-label {
    color: #d4d4d4;
}
body.theme-monochrome .lsc-value,
body.theme-monochrome .lsc-value.positive,
body.theme-monochrome .lsc-value.negative {
    color: #ffffff;
}
body.theme-monochrome .lsc-icon {
    background: #262626;
    color: #ffffff;
}

/* Tarla Yönetimi Bileşenleri */
body.theme-monochrome .field-card-title,
body.theme-monochrome .fsc-value,
body.theme-monochrome .fdg-value {
    color: #ffffff;
}
body.theme-monochrome .fsc-label,
body.theme-monochrome .fdg-label {
    color: #d4d4d4;
}
body.theme-monochrome .fsc-icon-wrap,
body.theme-monochrome .field-details-grid {
    background: #1a1a1a;
    border-color: #444444;
    color: #ffffff;
}
body.theme-monochrome .field-crop-info {
    background: #1f1f1f;
    border-color: #555555;
    color: #ffffff;
}
body.theme-monochrome .view-toggle {
    background: #1a1a1a;
    border-color: #444444;
}
body.theme-monochrome .toggle-btn {
    color: #d4d4d4;
}
body.theme-monochrome .toggle-btn.active {
    background: #ffffff;
    color: #000000;
}
body.theme-monochrome .btn-field-journal {
    background: #222222;
    border-color: #555555;
    color: #ffffff;
}
body.theme-monochrome .btn-field-journal:hover {
    background: #ffffff;
    color: #000000;
}

/* Tarla Günlüğü Bileşenleri */
body.theme-monochrome .jc-title,
body.theme-monochrome .jc-field,
body.theme-monochrome .jc-content {
    color: #ffffff;
}
body.theme-monochrome .jc-meta-row {
    color: #d4d4d4;
}
body.theme-monochrome .jc-divider {
    background: #333333;
}
body.theme-monochrome .jc-image-box {
    background: #1a1a1a;
    border-color: #444444;
}
body.theme-monochrome .quick-tags-box {
    background: #181818;
    border-color: #444444;
}
body.theme-monochrome .quick-tags-title {
    color: #ffffff;
}
body.theme-monochrome .quick-tag-btn {
    background: #222222;
    border-color: #555555;
    color: #ffffff;
}
body.theme-monochrome .quick-tag-btn.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}
body.theme-monochrome .btn-convert-expense {
    background: #222222;
    border-color: #666666;
    color: #ffffff;
}
body.theme-monochrome .journal-upload-box {
    background: #181818;
    border-color: #555555;
    color: #ffffff;
}

/* Tarla Detay Çekmecesi (Drawer) */
body.theme-monochrome .drawer-header,
body.theme-monochrome .drawer-footer {
    background: #1a1a1a;
    border-color: #444444;
}
body.theme-monochrome .fdd-section,
body.theme-monochrome .fdd-dim-card,
body.theme-monochrome .fdd-fin-card,
body.theme-monochrome .fdd-recent-item,
body.theme-monochrome .fdd-legend-item {
    background: #1a1a1a;
    border-color: #383838;
    color: #ffffff;
}
body.theme-monochrome #fdd-name,
body.theme-monochrome .fdd-name,
body.theme-monochrome .fdd-section-title,
body.theme-monochrome .fdd-dim-val,
body.theme-monochrome .fdd-fin-val,
body.theme-monochrome .fdd-recent-title,
body.theme-monochrome .fdd-donut-amount {
    color: #ffffff;
    text-shadow: none;
}
body.theme-monochrome .fdd-dim-label,
body.theme-monochrome .fdd-fin-label,
body.theme-monochrome .fdd-recent-meta,
body.theme-monochrome .fdd-donut-label,
body.theme-monochrome .fdd-location {
    color: #d4d4d4;
}

/* Ayarlar Sayfası */
body.theme-monochrome .settings-bottom-strip {
    background: #111111;
    border-color: #333333;
}
body.theme-monochrome .sc-title,
body.theme-monochrome .theme-chip-name,
body.theme-monochrome .sc-toggle-title,
body.theme-monochrome .api-key-label,
body.theme-monochrome .sc-status-val,
body.theme-monochrome .topbar-backup-time,
body.theme-monochrome .topbar-backup-label {
    color: #ffffff;
}
body.theme-monochrome .sc-status-box,
body.theme-monochrome .sc-toggle-box,
body.theme-monochrome .api-key-input-box,
body.theme-monochrome .theme-chip-btn,
body.theme-monochrome .sc-cat-list,
body.theme-monochrome .topbar-backup-pill,
body.theme-monochrome .quick-tag-manage-list {
    background: #181818;
    border-color: #333333;
}
body.theme-monochrome .theme-chip-sub,
body.theme-monochrome .sc-status-label,
body.theme-monochrome .sc-toggle-sub {
    color: #d4d4d4;
}
body.theme-monochrome .sc-btn-secondary {
    background: #1e1e1e;
    color: #ffffff;
    border-color: #444444;
}
body.theme-monochrome .sc-btn-primary {
    background: #ffffff;
    color: #000000;
}
body.theme-monochrome .settings-cloud-sync-bar {
    background: #121212;
    border-color: #333333;
    box-shadow: none;
}
body.theme-monochrome .settings-cloud-sync-bar::before {
    background: #ffffff;
}
body.theme-monochrome .sc-sync-badge {
    background: #1f1f1f;
    color: #ffffff;
    border-color: #444444;
}
body.theme-monochrome .sc-sync-badge .sc-badge-dot {
    background: #ffffff;
}
body.theme-monochrome .sc-sync-title {
    color: #ffffff;
}
body.theme-monochrome .sc-sync-desc {
    color: #a3a3a3;
}
body.theme-monochrome .sc-sync-icon {
    background: #222222;
    color: #ffffff;
}
body.theme-monochrome .sc-sync-btn-push {
    background: #ffffff;
    color: #000000;
    box-shadow: none;
}
body.theme-monochrome .sc-sync-btn-push:hover {
    background: #e5e5e5;
}
body.theme-monochrome .sc-sync-btn-pull {
    background: #181818;
    color: #ffffff;
    border-color: #555555;
}
body.theme-monochrome .sc-sync-badge {
    background: #222222;
    color: #ffffff;
}
body.theme-monochrome .theme-chip-btn.active {
    border-color: #ffffff;
    background: #2e2e2e;
}
body.theme-monochrome .quick-tag-manage-item {
    background: #262626;
    border-color: #555555;
    color: #ffffff;
}
body.theme-monochrome .btn-danger-strip {
    background: #1a1a1a;
    border-color: #666666;
    color: #ffffff;
}

/* Sezon ve Profil Modalı İçleri */
body.theme-monochrome .season-list .season-item {
    background: #1a1a1a;
    border-color: #444444;
}
body.theme-monochrome .season-name {
    color: #ffffff;
}
body.theme-monochrome .season-item.active {
    background: #282828;
    border-color: #ffffff;
}
body.theme-monochrome .profile-modal-tabs {
    background: #181818;
    border-bottom: 1px solid #444444;
}
body.theme-monochrome .profile-tab-btn {
    color: #d4d4d4;
}
body.theme-monochrome .profile-tab-btn.active {
    background: #ffffff;
    color: #000000;
}
body.theme-monochrome .profile-avatar-row,
body.theme-monochrome .profile-security-hint {
    background: #181818;
    border-color: #444444;
    color: #ffffff;
}

/* Donut & Lejant */
body.theme-monochrome .donut-amount,
body.theme-monochrome .legend-amt,
body.theme-monochrome .legend-cat-name {
    color: #ffffff;
}
body.theme-monochrome .donut-label {
    color: #d4d4d4;
}
body.theme-monochrome .legend-pct {
    background: #262626;
    color: #ffffff;
}
body.theme-monochrome .legend-item {
    border-bottom-color: #333333;
}

/* Birim Metrikleri, Karşılaştırma & Hava Durumu */
body.theme-monochrome .um-header,
body.theme-monochrome .um-sub,
body.theme-monochrome .cc-label,
body.theme-monochrome .cc-prev {
    color: #d4d4d4;
}
body.theme-monochrome .um-value,
body.theme-monochrome .cc-curr {
    color: #ffffff;
}
body.theme-monochrome .compare-card {
    background: #1a1a1a;
    border-color: #444444;
}
body.theme-monochrome .insights-box {
    background: #181818;
    border-color: #666666;
}
body.theme-monochrome .insights-title,
body.theme-monochrome .insight-item {
    color: #ffffff;
}
body.theme-monochrome .weather-day-card {
    background: #1a1a1a;
    border-color: #444444;
}
body.theme-monochrome .weather-day-card.today {
    background: #262626;
    border-color: #ffffff;
}
body.theme-monochrome .wd-name,
body.theme-monochrome .wd-temp {
    color: #ffffff;
}
body.theme-monochrome .wd-date,
body.theme-monochrome .wd-temp small {
    color: #d4d4d4;
}
body.theme-monochrome .wd-detail-item {
    background: #121212;
    color: #ffffff;
}


/* ========================================================
   2. KOYU MOD (DARK MODE - GÖZ YORMAYAN PROFESYONEL GECE MODU)
   ======================================================== */
body.theme-dark {
    background: #0b1320;
    color: #f1f5f9;
    --text: #f8fafc;
    --muted: #94a3b8;
    --primary: #10b981;
    --primary-dark: #064e3b;
    --primary-hover: #34d399;
    --border: #1e2e4a;
    --income: #34d399;
    --income-bg: rgba(52, 211, 153, 0.14);
    --expense: #f87171;
    --expense-bg: rgba(248, 113, 113, 0.14);
    --gold: #fbbf24;
    --indigo: #818cf8;
}

body.theme-dark .main-content {
    background: #0b1320;
}

/* Tipografi & Başlıklar */
body.theme-dark h1, 
body.theme-dark h2, 
body.theme-dark h3, 
body.theme-dark h4, 
body.theme-dark .panel-title, 
body.theme-dark .welcome-text,
body.theme-dark .fields-section-title,
body.theme-dark .brand-title {
    color: #f8fafc;
    border-color: #1e2e4a;
}

body.theme-dark .muted-text, 
body.theme-dark p, 
body.theme-dark .sc-desc,
body.theme-dark .theme-chip-sub, 
body.theme-dark .sc-toggle-sub,
body.theme-dark .card-header-label,
body.theme-dark .brand-subtitle {
    color: #94a3b8;
}

body.theme-dark .c-green {
    color: #4ade80;
}
body.theme-dark .c-blue {
    color: #93c5fd;
}

/* Kartlar, Paneller ve Çerçeveler */
body.theme-dark .card,
body.theme-dark .panel,
body.theme-dark .info-bar,
body.theme-dark .settings-card-v4,
body.theme-dark .summary-card,
body.theme-dark .field-card,
body.theme-dark .journal-card,
body.theme-dark .field-summary-card,
body.theme-dark .unit-metric-card,
body.theme-dark .ledger-subtotal-card,
body.theme-dark .ledger-filter-card,
body.theme-dark .modal,
body.theme-dark .profile-modal-card,
body.theme-dark .season-modal-card,
body.theme-dark .entry-modal-card,
body.theme-dark .journal-modal-card,
body.theme-dark .field-details-drawer {
    background: #131f33;
    color: #f8fafc;
    border-color: #1e2e4a;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* Özet Kartları (Dashboard) */
body.theme-dark .summary-card .card-header-label {
    color: #94a3b8;
}
body.theme-dark .summary-card .card-value {
    color: #f8fafc;
}
body.theme-dark .summary-card .income-val {
    color: #34d399;
}
body.theme-dark .summary-card .expense-val {
    color: #f87171;
}
body.theme-dark .summary-card .balance-val {
    color: #fbbf24;
}
body.theme-dark .summary-card .field-val {
    color: #818cf8;
}

/* Net Bakiye Seviye Renkleri (Koyu Modda Parlak ve Okunur) */
body.theme-dark #view-dashboard .cards-row .summary-card.net-tier-p1 .balance-val,
body.theme-dark #view-dashboard .cards-row .summary-card.net-tier-p2 .balance-val,
body.theme-dark #view-dashboard .cards-row .summary-card.net-tier-p3 .balance-val,
body.theme-dark #view-dashboard .cards-row .summary-card.net-tier-p4 .balance-val {
    color: #34d399;
}
body.theme-dark #view-dashboard .cards-row .summary-card.net-tier-n1 .balance-val,
body.theme-dark #view-dashboard .cards-row .summary-card.net-tier-n2 .balance-val,
body.theme-dark #view-dashboard .cards-row .summary-card.net-tier-n3 .balance-val,
body.theme-dark #view-dashboard .cards-row .summary-card.net-tier-n4 .balance-val {
    color: #f87171;
}

/* Sidebar */
body.theme-dark .sidebar {
    background: linear-gradient(180deg, #0d1726 0%, #070d16 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}
body.theme-dark .sidebar-logo-container {
    background: linear-gradient(180deg, #09101a 0%, transparent 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body.theme-dark .sidebar-season {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}
body.theme-dark .sidebar-season:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #34d399;
}
body.theme-dark .sidebar-link {
    color: #cbd5e1;
}
body.theme-dark .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}
body.theme-dark .sidebar-user-card {
    background: #0f172a;
    border-color: #1e2e4a;
}
body.theme-dark .sidebar-user-card:hover {
    background: #17243b;
    border-color: #34d399;
}
body.theme-dark .sidebar-user-name {
    color: #f8fafc;
}
body.theme-dark .sidebar-user-email {
    color: #94a3b8;
}
body.theme-dark .sidebar-logout-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.22);
}
body.theme-dark .sidebar-logout-btn:hover {
    background: rgba(239, 68, 68, 0.22);
    color: #ffffff;
    border-color: rgba(239, 68, 68, 0.4);
}

/* Bilgi Çubuğu (Info Bar) */
body.theme-dark .info-bar {
    background: linear-gradient(rgba(19, 31, 51, 0.88), rgba(11, 19, 32, 0.94)), url('assets/images/header-bg1.jpg') center/cover no-repeat;
    border-color: #1e2e4a;
}
body.theme-dark .season-pill {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border-color: rgba(52, 211, 153, 0.45);
}
body.theme-dark .date-display-box,
body.theme-dark .notification-btn {
    background: #0f172a;
    border-color: #1e2e4a;
    color: #f8fafc;
}
body.theme-dark .date-display-box svg {
    color: #34d399;
}

/* Form Elemanları, Girdiler ve Seçim Kutuları */
body.theme-dark input, 
body.theme-dark select, 
body.theme-dark textarea,
body.theme-dark .lf-select,
body.theme-dark .fields-search-box input,
body.theme-dark .journal-filter-select,
body.theme-dark #new-season-input {
    background: #0d1726;
    color: #f8fafc;
    border-color: #2a3e5c;
}
body.theme-dark input:focus, 
body.theme-dark select:focus, 
body.theme-dark textarea:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    background: #111e32;
}
body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
    color: #64748b;
}
body.theme-dark .form-group label {
    color: #cbd5e1;
}
body.theme-dark .currency-symbol,
body.theme-dark .lf-currency-symbol,
body.theme-dark .lf-range-separator {
    color: #94a3b8;
}
body.theme-dark .type-card {
    background: #0d1726;
    border-color: #2a3e5c;
    color: #94a3b8;
}
body.theme-dark .type-card:hover {
    border-color: #3b82f6;
    background: #132238;
}
body.theme-dark .type-radio input:checked#type-income + .income-card {
    background: rgba(16, 185, 129, 0.16);
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}
body.theme-dark .type-radio input:checked#type-expense + .expense-card {
    background: rgba(239, 68, 68, 0.16);
    border-color: #ef4444;
    color: #fca5a5;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

/* Butonlar */
body.theme-dark .btn-primary,
body.theme-dark .btn-save-entry,
body.theme-dark .btn-save-journal,
body.theme-dark .btn-add-season {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
}
body.theme-dark .btn-primary:hover,
body.theme-dark .btn-save-entry:hover,
body.theme-dark .btn-save-journal:hover,
body.theme-dark .btn-add-season:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}
body.theme-dark .btn-secondary,
body.theme-dark .btn-reset-form,
body.theme-dark .btn-reset-journal,
body.theme-dark .lf-btn-clear,
body.theme-dark .btn-toggle-journal {
    background: #1e2e4a;
    color: #f8fafc;
    border: 1.5px solid #2a3e5c;
}
body.theme-dark .btn-secondary:hover,
body.theme-dark .btn-reset-form:hover,
body.theme-dark .btn-reset-journal:hover,
body.theme-dark .lf-btn-clear:hover,
body.theme-dark .btn-toggle-journal:hover {
    background: #273b5c;
    border-color: #3b5278;
    color: #ffffff;
}
body.theme-dark .lf-btn-apply {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}
body.theme-dark .lf-btn-apply:hover {
    background: #059669;
}
body.theme-dark .btn-modal-close,
body.theme-dark .btn-close,
body.theme-dark .profile-modal-close,
body.theme-dark .drawer-close-btn {
    background: #1e2e4a;
    border-color: #2a3e5c;
    color: #cbd5e1;
}
body.theme-dark .btn-modal-close:hover,
body.theme-dark .btn-close:hover,
body.theme-dark .profile-modal-close:hover,
body.theme-dark .drawer-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.45);
}

/* Tablolar (Defter, Karlılık vb.) */
body.theme-dark thead th,
body.theme-dark .ledger-table thead th {
    background: #16233b;
    color: #94a3b8;
    border-bottom: 2px solid #223552;
}
body.theme-dark tbody tr,
body.theme-dark .ledger-table tbody tr {
    border-bottom: 1px solid #1a2942;
}
body.theme-dark tbody tr:hover,
body.theme-dark .ledger-table tbody tr:hover {
    background: #18263d;
}
body.theme-dark tbody tr.row-selected,
body.theme-dark .ledger-table tbody tr.row-selected {
    background: rgba(59, 130, 246, 0.18);
}
body.theme-dark tbody td,
body.theme-dark .ledger-table tbody td {
    color: #e2e8f0;
}
body.theme-dark .cat-name,
body.theme-dark .field-cell {
    color: #f8fafc;
}
body.theme-dark .desc-cell {
    color: #94a3b8;
}
body.theme-dark .cat-badge {
    background: #1e2e4a;
    border-color: #2a3e5c;
    color: #e2e8f0;
}
body.theme-dark .type-badge.income,
body.theme-dark .type-arrow-badge.income {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}
body.theme-dark .type-badge.expense,
body.theme-dark .type-arrow-badge.expense {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}
body.theme-dark .amount-income {
    color: #34d399;
}
body.theme-dark .amount-expense {
    color: #f87171;
}

/* Defter Filtre Alanları */
body.theme-dark .lf-search-wrapper,
body.theme-dark .lf-range-box,
body.theme-dark .fields-search-box {
    background: #0d1726;
    border-color: #2a3e5c;
    color: #f8fafc;
}
body.theme-dark .lf-meta-count {
    background: #1e2e4a;
    border-color: #2a3e5c;
    color: #94a3b8;
}
body.theme-dark .lsc-label {
    color: #94a3b8;
}
body.theme-dark .lsc-value {
    color: #f8fafc;
}
body.theme-dark .lsc-value.positive {
    color: #34d399;
}
body.theme-dark .lsc-value.negative {
    color: #f87171;
}
body.theme-dark .lsc-icon.income-icon-bg {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
}
body.theme-dark .lsc-icon.expense-icon-bg {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
}
body.theme-dark .lsc-icon.net-icon-bg {
    background: rgba(99, 102, 241, 0.18);
    color: #818cf8;
}

/* Tarla Yönetimi Bileşenleri */
body.theme-dark .field-card-title,
body.theme-dark .fsc-value,
body.theme-dark .fdg-value {
    color: #f8fafc;
}
body.theme-dark .fsc-label,
body.theme-dark .fdg-label {
    color: #94a3b8;
}
body.theme-dark .fsc-icon-wrap,
body.theme-dark .field-details-grid {
    background: #0d1726;
    border-color: #1e2e4a;
}
body.theme-dark .fsc-icon-wrap {
    color: #34d399;
}
body.theme-dark .field-crop-info {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}
body.theme-dark .view-toggle {
    background: #0d1726;
    border-color: #1e2e4a;
}
body.theme-dark .toggle-btn {
    color: #94a3b8;
}
body.theme-dark .toggle-btn.active {
    background: #1e2e4a;
    color: #f8fafc;
}
body.theme-dark .btn-field-journal {
    background: #1e2e4a;
    border-color: #2a3e5c;
    color: #f8fafc;
}
body.theme-dark .btn-field-journal:hover {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

/* Tarla Günlüğü Bileşenleri */
body.theme-dark .jc-title,
body.theme-dark .jc-field,
body.theme-dark .jc-content {
    color: #f8fafc;
}
body.theme-dark .jc-meta-row {
    color: #94a3b8;
}
body.theme-dark .jc-divider {
    background: #1e2e4a;
}
body.theme-dark .jc-image-box {
    background: #0d1726;
    border-color: #1e2e4a;
}
body.theme-dark .quick-tags-box {
    background: #0d1726;
    border-color: #1e2e4a;
}
body.theme-dark .quick-tags-title {
    color: #34d399;
}
body.theme-dark .quick-tag-btn {
    background: #1e2e4a;
    border-color: #2a3e5c;
    color: #34d399;
}
body.theme-dark .quick-tag-btn.active {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}
body.theme-dark .btn-convert-expense {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.35);
    color: #34d399;
}
body.theme-dark .journal-upload-box {
    background: #0d1726;
    border-color: #2a3e5c;
    color: #94a3b8;
}

/* Tarla Detay Çekmecesi (Drawer) */
body.theme-dark .drawer-header,
body.theme-dark .drawer-footer {
    background: #0d1726;
    border-color: #1e2e4a;
}
body.theme-dark #fdd-name,
body.theme-dark .fdd-name {
    color: #f8fafc;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
body.theme-dark .fdd-section,
body.theme-dark .fdd-dim-card,
body.theme-dark .fdd-recent-item,
body.theme-dark .fdd-legend-item {
    background: #0d1726;
    border-color: #1e2e4a;
    color: #f8fafc;
}
body.theme-dark .fdd-fin-card.profit {
    background: #0d1726;
    border-color: #1e2e4a;
}
body.theme-dark .fdd-fin-card.profit .fdd-fin-val {
    color: #f8fafc;
}
body.theme-dark .fdd-fin-card.expense {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
}
body.theme-dark .fdd-fin-card.expense .fdd-fin-val {
    color: #f87171;
}
body.theme-dark .fdd-fin-card.income {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
}
body.theme-dark .fdd-fin-card.income .fdd-fin-val {
    color: #34d399;
}
body.theme-dark .fdd-section-title,
body.theme-dark .fdd-dim-val,
body.theme-dark .fdd-recent-title,
body.theme-dark .fdd-donut-amount {
    color: #f8fafc;
}
body.theme-dark .fdd-dim-label,
body.theme-dark .fdd-fin-label,
body.theme-dark .fdd-recent-meta,
body.theme-dark .fdd-donut-label,
body.theme-dark .fdd-location {
    color: #94a3b8;
}

/* Ayarlar Sayfası */
body.theme-dark .settings-bottom-strip {
    background: #131f33;
    border-color: #1e2e4a;
}
body.theme-dark .sc-title,
body.theme-dark .theme-chip-name,
body.theme-dark .sc-toggle-title,
body.theme-dark .api-key-label,
body.theme-dark .sc-status-val {
    color: #f8fafc;
}
body.theme-dark .sc-status-box,
body.theme-dark .sc-toggle-box,
body.theme-dark .api-key-input-box,
body.theme-dark .theme-chip-btn,
body.theme-dark .sc-cat-list,
body.theme-dark .topbar-backup-pill,
body.theme-dark .quick-tag-manage-list {
    background: #0d1726;
    border-color: #1e2e4a;
}
body.theme-dark .sc-status-label {
    color: #94a3b8;
}
body.theme-dark .sc-btn-secondary {
    background: #1e2e4a;
    color: #f8fafc;
    border-color: #2a3e5c;
}
body.theme-dark .sc-btn-danger {
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}
body.theme-dark .sc-btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fecaca;
}
body.theme-dark .theme-chip-btn.active {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.14);
}
body.theme-dark .settings-cloud-sync-bar {
    background: #131f33;
    border-color: #1e2e4a;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.3);
}
body.theme-dark .sc-sync-badge {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
body.theme-dark .sc-sync-badge .sc-badge-dot {
    background: #34d399;
}
body.theme-dark .sc-sync-title {
    color: #f8fafc;
}
body.theme-dark .sc-sync-desc {
    color: #94a3b8;
}
body.theme-dark .sc-sync-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}
body.theme-dark .sc-sync-btn-pull {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}
body.theme-dark .sc-sync-btn-pull:hover {
    background: #27354a;
    border-color: #475569;
}
body.theme-dark .sc-sync-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}
body.theme-dark .topbar-backup-time {
    color: #34d399;
}
body.theme-dark .topbar-backup-label {
    color: #94a3b8;
}
body.theme-dark .quick-tag-manage-item {
    background: #1e2e4a;
    border-color: #2a3e5c;
    color: #34d399;
}
body.theme-dark .btn-danger-strip {
    background: #1a2942;
    border-color: #f87171;
    color: #fca5a5;
}

/* Sezon ve Profil Modalı İçleri */
body.theme-dark .season-list .season-item {
    background: #0d1726;
    border-color: #1e2e4a;
}
body.theme-dark .season-name {
    color: #f8fafc;
}
body.theme-dark .season-item.active {
    background: rgba(16, 185, 129, 0.14);
    border-color: #10b981;
}
body.theme-dark .profile-modal-tabs {
    background: #0d1726;
    border-bottom: 1px solid #1e2e4a;
}
body.theme-dark .profile-tab-btn {
    color: #94a3b8;
}
body.theme-dark .profile-tab-btn.active {
    background: #131f33;
    color: #34d399;
    border-bottom-color: #34d399;
}
body.theme-dark .profile-avatar-row,
body.theme-dark .profile-security-hint {
    background: #0d1726;
    border-color: #1e2e4a;
    color: #94a3b8;
}

/* Donut & Lejant */
body.theme-dark .donut-amount,
body.theme-dark .legend-amt,
body.theme-dark .legend-cat-name {
    color: #f8fafc;
}
body.theme-dark .donut-label {
    color: #94a3b8;
}
body.theme-dark .legend-pct {
    background: #1e2e4a;
    color: #94a3b8;
}
body.theme-dark .legend-item {
    border-bottom-color: #1e2e4a;
}

/* Birim Metrikleri, Karşılaştırma & Hava Durumu */
body.theme-dark .um-header,
body.theme-dark .um-sub,
body.theme-dark .cc-label,
body.theme-dark .cc-prev {
    color: #94a3b8;
}
body.theme-dark .um-value,
body.theme-dark .cc-curr {
    color: #f8fafc;
}
body.theme-dark .compare-card {
    background: #0d1726;
    border-color: #1e2e4a;
}
body.theme-dark .insights-box {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.25);
}
body.theme-dark .insights-title {
    color: #34d399;
}
body.theme-dark .insight-item {
    color: #a7f3d0;
}
body.theme-dark .weather-day-card {
    background: #0d1726;
    border-color: #1e2e4a;
}
body.theme-dark .weather-day-card.today {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10b981;
}
body.theme-dark .wd-name,
body.theme-dark .wd-temp {
    color: #f8fafc;
}
body.theme-dark .wd-date,
body.theme-dark .wd-temp small {
    color: #94a3b8;
}
body.theme-dark .wd-detail-item {
    background: #131f33;
    color: #94a3b8;
}
body.theme-dark .timeline-item .tl-header {
    color: #f8fafc;
}
body.theme-dark .timeline-item .tl-desc,
body.theme-dark .timeline-item .tl-date {
    color: #94a3b8;
}
body.theme-dark .timeline-wrapper::before {
    background: #1e2e4a;
}


/* --- Aksiyon Butonları & Rozetler --- */
.action-btns { display: flex; gap: 0.5rem; justify-content: center; align-items: center; }
.btn-icon-edit, .btn-icon-delete, .season-actions .btn-icon-action { background: transparent; border: none; cursor: pointer; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; padding: 0.3rem; }
.btn-icon-edit, .season-actions .btn-icon-action.edit { color: #6366f1; background: rgba(99, 102, 241, 0.05); }
.btn-icon-edit:hover, .season-actions .btn-icon-action.edit:hover { background: rgba(99, 102, 241, 0.15); transform: scale(1.05); }
.btn-icon-delete, .season-actions .btn-icon-action.delete { color: #ef4444; background: rgba(239, 68, 68, 0.05); }
.btn-icon-delete:hover, .season-actions .btn-icon-action.delete:hover { background: rgba(239, 68, 68, 0.15); transform: scale(1.05); }
.season-actions .btn-icon-action svg { width: 14px; height: 14px; flex-shrink: 0; }

.cat-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.6rem; border-radius: 6px; background: #f8fafc; border: 1px solid #e2e8f0; font-size: 0.75rem; font-weight: 700; color: #334155; white-space: nowrap; }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.color-picker-input { width: 42px; height: 42px; padding: 0; border: none; border-radius: 8px; cursor: pointer; background: transparent; }
.color-picker-input::-webkit-color-swatch-wrapper { padding: 0; }
.color-picker-input::-webkit-color-swatch { border: 2px solid #e2e8f0; border-radius: 8px; }

/* --- Modallar --- */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.6); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all .2s ease; pointer-events: auto; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { padding: 2rem; max-width: 440px; width: 92%; border-radius: 16px; pointer-events: auto; max-height: 90vh; overflow-y: auto; }
.modal-wide { max-width: 700px; }
.modal h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 1.25rem; }
.modal-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.5rem; }
.checkbox-group { display: flex; gap: 1rem; flex-wrap: wrap; padding: 0.5rem 0; }
.checkbox-label { display: flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; cursor: pointer; color: #334155; }
.checkbox-label input { width: 16px; height: 16px; }

/* --- Modern Sezon Modal Tasarımı --- */
.season-modal-card { 
    width: 100%; 
    max-width: 520px; 
    padding: 1.75rem; 
    border-radius: 16px;
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.15), 0 10px 15px -5px rgba(0, 0, 0, 0.08);
}
.season-modal-card .modal-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 1.25rem; 
    border-bottom: 1px solid #f1f5f9; 
    padding-bottom: 0.85rem; 
}
.season-modal-card .modal-header h3 { 
    margin: 0; 
    font-size: 1.2rem; 
    font-weight: 800;
    color: #0f172a; 
    letter-spacing: -0.02em;
}
.modal-subtitle {
    margin: 0.3rem 0 0 0;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.btn-modal-close, .btn-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    flex-shrink: 0;
    outline: none;
}

.btn-modal-close:hover, .btn-close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #ef4444;
    transform: rotate(90deg) scale(1.05);
}

.btn-modal-close:active, .btn-close:active {
    transform: rotate(90deg) scale(0.95);
}

.season-section-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
}

.season-list-section {
    margin-bottom: 1.25rem;
}

.season-list { 
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem; 
    max-height: 240px; 
    overflow-y: auto; 
    padding-right: 0.35rem; 
    padding-left: 0.1rem; 
}
.season-list::-webkit-scrollbar { width: 5px; }
.season-list::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 10px; }

.season-list .season-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-top: 0.1rem;
    padding: 0.55rem 0.9rem; 
    background: #ffffff; 
    border: 1.5px solid #e2e8f0; 
    border-radius: 12px; 
    cursor: pointer; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
    position: relative; 
}
.season-list .season-item:hover { 
    background: #f8fafc; 
    border-color: #cbd5e1; 
    transform: translateY(-1px); 
    box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}
.season-list .season-item.active { 
    background: #f0fdf4; 
    border-color: #10b981; 
    box-shadow: 0 4px 10px -2px rgba(16, 185, 129, 0.15); 
}

.season-item-left {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex: 1;
}
.season-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #94a3b8;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.season-item.active .season-item-icon {
    background: #dcfce7;
    color: #16a34a;
}
.season-name {
    font-weight: 600;
    color: #334155;
    font-size: 0.92rem;
}
.season-item.active .season-name {
    font-weight: 700;
    color: #0f172a;
}
.season-active-badge {
    font-size: 0.68rem;
    font-weight: 700;
    background: #10b981;
    color: white;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25);
}

.season-actions { 
    display: flex; 
    gap: 0.35rem; 
    align-items: center; 
    margin-left: auto; 
}

/* --- Yeni Sezon Ekleme Kutucuğu ve Formu --- */
.season-add-section {
    padding-top: 1.1rem;
    border-top: 1px dashed #e2e8f0;
}

.season-add-box {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    margin-top: 0.3rem;
}

.season-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.season-input-icon {
    position: absolute;
    left: 0.9rem;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s ease;
}

.season-input-wrapper:focus-within .season-input-icon {
    color: #10b981;
}

#new-season-input {
    width: 100%;
    height: 44px;
    padding: 0 1rem 0 2.5rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

#new-season-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

#new-season-input:hover {
    background: #ffffff;
    border-color: #cbd5e1;
}

#new-season-input:focus {
    background: #ffffff;
    border-color: #10b981;
    box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.14);
}

.btn-add-season {
    height: 44px;
    padding: 0 1.25rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
    white-space: nowrap;
    font-family: inherit;
    flex-shrink: 0;
}

.btn-add-season:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
}

.btn-add-season:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.2);
}

.header-season-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    vertical-align: middle;
    margin-left: 0.4rem;
    letter-spacing: -0.2px;
}

/* =========================================
   YENİ BİLEŞENLER STİLLERİ
   ========================================= */

.panel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #f1f5f9;
}

.weather-loc-badge {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(4, 61, 44, 0.08);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
}

/* --- 1. Hava Durumu (5 Günlük Ferah Grid) --- */
.weather-forecast-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.weather-day-card {
    padding: 0.85rem 0.5rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
}

.weather-day-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.weather-day-card.today {
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
    border-color: #86efac;
}

.wd-name { font-size: 0.78rem; font-weight: 800; color: #334155; margin-bottom: 0.25rem; }
.wd-date { font-size: 0.68rem; color: #94a3b8; font-weight: 600; margin-bottom: 0.5rem; }
.wd-icon { font-size: 1.6rem; margin: 0.2rem 0; line-height: 1; }
.wd-temp { font-size: 0.85rem; font-weight: 800; color: #0f172a; margin-bottom: 0.4rem; }
.wd-temp small { font-size: 0.72rem; color: #64748b; font-weight: 600; }

.wd-details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    border-top: 1px dashed #e2e8f0;
    padding-top: 0.5rem;
    margin-top: 0.4rem;
}

.wd-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.2rem 0.4rem;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
}
.wd-detail-item svg { width: 11px; height: 11px; stroke-width: 2.2; flex-shrink: 0; }

/* --- 2. Birim Maliyet Metrikleri --- */
.unit-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.unit-metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.unit-metric-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.income-unit::before { background: var(--income); }
.expense-unit::before { background: var(--expense); }
.net-unit::before { background: var(--indigo); }

.um-header { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; margin-bottom: 0.75rem; }
.um-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.income-unit .um-icon { background: var(--income-bg); color: var(--income); }
.expense-unit .um-icon { background: var(--expense-bg); color: var(--expense); }
.net-unit .um-icon { background: rgba(99,102,241,.1); color: var(--indigo); }

.um-value { font-size: 1.4rem; font-weight: 800; color: #0f172a; margin-bottom: 0.25rem; letter-spacing: -0.5px; }
.income-unit .um-value { color: var(--income); }
.expense-unit .um-value { color: var(--expense); }
.um-sub { font-size: 0.72rem; color: #64748b; font-weight: 600; }

/* --- 3. Sezon Karşılaştırma Modülü --- */
.inline-select {
    padding: 0.3rem 0.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #fff;
    color: var(--primary);
    cursor: pointer;
}

.compare-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.compare-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.compare-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.cc-label { font-size: 0.75rem; font-weight: 800; color: #64748b; text-transform: uppercase; margin-bottom: 0.5rem; }
.cc-values { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.4rem; }
.cc-curr { font-size: 1.15rem; font-weight: 800; color: #0f172a; }
.cc-prev { font-size: 0.8rem; font-weight: 600; color: #94a3b8; }

.cc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    width: fit-content;
}
.cc-badge.up-bad { background: #fee2e2; color: #b91c1c; } 
.cc-badge.down-good { background: #d1fae5; color: #047857; } 
.cc-badge.up-good { background: #d1fae5; color: #047857; } 
.cc-badge.down-bad { background: #fee2e2; color: #b91c1c; } 
.cc-badge.neutral { background: #e2e8f0; color: #475569; }

.insights-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.insights-title { font-size: 0.82rem; font-weight: 800; color: #166534; display: flex; align-items: center; gap: 0.4rem; }
.insights-list { display: flex; flex-direction: column; gap: 0.35rem; }
.insight-item { font-size: 0.8rem; font-weight: 600; color: #15803d; display: flex; align-items: center; gap: 0.4rem; }
.insight-item::before { content: "•"; font-weight: 800; font-size: 1.2rem; line-height: 0; }

/* --- 4. Zaman Akışı (Timeline) --- */
.timeline-wrapper {
    position: relative;
    padding-left: 1.5rem;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 0.55rem;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.15rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.tl-dot {
    position: absolute;
    left: -1.5rem;
    top: 0.2rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    z-index: 2;
}

.timeline-item.income .tl-dot { border-color: var(--income); background: #10b981; }
.timeline-item.expense .tl-dot { border-color: var(--expense); background: #ef4444; }

.tl-content { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.tl-header { font-size: 0.85rem; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: 0.5rem; }
.tl-desc { font-size: 0.78rem; color: #64748b; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-date { font-size: 0.7rem; color: #94a3b8; font-weight: 600; }

.tl-amount { font-size: 0.9rem; font-weight: 800; white-space: nowrap; flex-shrink: 0; }
.timeline-item.income .tl-amount { color: var(--income); }
.timeline-item.expense .tl-amount { color: var(--expense); }

/* --- Footer --- */
.app-footer {
    margin-top: 2rem;
    padding: 1.5rem 0 0.5rem 0;
    border-top: 1px solid #e2e8f0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.footer-status { display: flex; align-items: center; gap: 0.4rem; font-weight: 600; }
.status-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 2px rgba(34,197,94,0.2); }
.footer-version { font-weight: 600; color: #94a3b8; }

/* =========================================
   FİNANS DEFTERİ — LEDGER STYLES
   ========================================= */

/* --- FİNANS DEFTERİ - KOMPAKT ÜST BİLGİ KARTLARI --- */
.ledger-subtotals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.ledger-subtotal-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}
.ledger-subtotal-card:hover { 
    box-shadow: 0 3px 8px rgba(0,0,0,0.06); 
    transform: translateY(-1px);
}

.income-card-bg { border-left: 3.5px solid #10b981; }
.expense-card-bg { border-left: 3.5px solid #ef4444; }
.net-card-bg { border-left: 3.5px solid #6366f1; }

.lsc-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.income-icon-bg { background: #d1fae5; color: #047857; }
.expense-icon-bg { background: #fee2e2; color: #b91c1c; }
.net-icon-bg { background: #e0e7ff; color: #4338ca; }

.lsc-info { 
    display: flex; 
    flex-direction: column; 
    gap: 0.1rem;
    min-width: 0;
}
.lsc-label { 
    font-size: 0.68rem; 
    font-weight: 700; 
    color: #64748b; 
    text-transform: uppercase; 
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.lsc-value { 
    font-size: 1.05rem; 
    font-weight: 800; 
    color: #0f172a; 
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lsc-value.positive { color: #047857; }
.lsc-value.negative { color: #b91c1c; }

/* --- YENİ MODERN 2-SATIRLI FİLTRELEME KARTI (Görsel Referanslı) --- */
.ledger-filter-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lf-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lf-search-wrapper {
    position: relative;
    flex: 1.5;
    min-width: 220px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    height: 40px;
    padding: 0 0.85rem;
    transition: all 0.2s ease;
}
.lf-search-wrapper:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}
.lf-input-icon {
    color: #64748b;
    margin-right: 0.5rem;
    flex-shrink: 0;
}
.lf-search-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.88rem;
    font-family: inherit;
    color: #1e293b;
    font-weight: 500;
}
.lf-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.lf-select-wrapper {
    flex: 1;
    min-width: 135px;
}
.lf-select {
    width: 100%;
    height: 40px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 0.85rem;
    background: #ffffff;
    color: #1e293b;
    font-size: 0.86rem;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.lf-select:hover {
    border-color: #cbd5e1;
}
.lf-select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.lf-range-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    height: 40px;
    padding: 0 0.85rem;
    gap: 0.4rem;
    flex: 1.2;
    min-width: 200px;
    transition: all 0.2s ease;
}
.lf-range-box:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}
.lf-range-icon {
    color: #64748b;
    flex-shrink: 0;
}
.lf-currency-symbol {
    color: #64748b;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.lf-range-input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.86rem;
    font-family: inherit;
    color: #1e293b;
    font-weight: 500;
}
.lf-range-input::placeholder {
    color: #94a3b8;
}
#lf-amount-min,
#lf-amount-max {
    text-align: center;
}
#lf-amount-min::placeholder,
#lf-amount-max::placeholder {
    text-align: center;
}
.lf-range-separator {
    color: #94a3b8;
    font-weight: 700;
    user-select: none;
    padding: 0 0.2rem;
}

.lf-actions-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lf-btn-clear {
    height: 40px;
    padding: 0 1.15rem;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}
.lf-btn-clear:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.lf-btn-apply {
    height: 40px;
    padding: 0 1.25rem;
    border: none;
    background: #032b1f; /* Koyu orman yeşili - görseldeki gibi */
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 4px rgba(3, 43, 31, 0.2);
    white-space: nowrap;
}
.lf-btn-apply:hover {
    background: #064e3b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(3, 43, 31, 0.3);
}

.lf-meta-count {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    white-space: nowrap;
}

/* --- Tür Oku Rozeti (Yukarı Yeşil Ok / Aşağı Kırmızı Ok) --- */
.th-type { width: 50px; text-align: center; }
.th-type-cell { width: 50px; text-align: center; }

.type-arrow-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}
.type-arrow-badge.income {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.type-arrow-badge.expense {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.type-arrow-badge:hover {
    transform: scale(1.1);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.batch-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #92400e;
}
.batch-info span { font-size: 1rem; font-weight: 800; }

.batch-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.batch-cat-select {
    padding: 0.4rem 0.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: inherit;
    background: #fff;
    max-width: 180px;
}

.btn-batch-apply {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    border: 1.5px solid #10b981;
    background: #ecfdf5;
    color: #047857;
    border-radius: 6px;
    cursor: pointer;
    display: flex; align-items: center; gap: 0.3rem;
    transition: all 0.15s ease;
}
.btn-batch-apply:hover { background: #d1fae5; }

.btn-batch-delete {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    border: 1.5px solid #ef4444;
    background: #fef2f2;
    color: #b91c1c;
    border-radius: 6px;
    cursor: pointer;
    display: flex; align-items: center; gap: 0.3rem;
    transition: all 0.15s ease;
}
.btn-batch-delete:hover { background: #fee2e2; }

/* --- Defter Tablo Paneli --- */
.ledger-table-panel { padding: 0; overflow: hidden; max-width: 100%; }
.ledger-table-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.ledger-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.ledger-table thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    padding: 0.6rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    user-select: none;
}

.th-check { width: 36px; text-align: center; }
.th-type { width: 48px; text-align: center; }
.th-doc { width: 46px; text-align: center; }
.th-field { min-width: 130px; }
.th-desc { min-width: 150px; }

.ledger-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}
.ledger-table tbody tr:hover { background: #f8fafc; }
.ledger-table tbody tr.row-selected { background: #eff6ff; }
.ledger-table tbody tr.row-editing { background: #fefce8; }

.ledger-table tbody td {
    padding: 0.65rem 0.6rem;
    vertical-align: middle;
    color: #334155;
}

.ledger-table tbody td:first-child { text-align: center; }

.ledger-table input[type="checkbox"] {
    width: 15px; height: 15px;
    cursor: pointer;
    accent-color: #f43f5e;
}

.type-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.55rem; border-radius: 6px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.type-badge.income { background: #d1fae5; color: #047857; }
.type-badge.expense { background: #fee2e2; color: #b91c1c; }

.cat-indicator { display: flex; align-items: center; gap: 0.4rem; }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cat-name { font-weight: 700; color: #1e293b; white-space: normal; word-break: break-word; line-height: 1.3; max-width: 160px; }

.field-cell {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.35;
    font-weight: 600;
    color: #1e293b;
    min-width: 120px;
    max-width: 200px;
}

.desc-cell { 
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.35;
    color: #475569;
    min-width: 140px;
    max-width: 320px;
}

.amount-income { color: #047857; font-weight: 800; }
.amount-expense { color: #b91c1c; font-weight: 800; }
.amount-muted { color: #94a3b8; font-weight: 500; }

.doc-btn {
    background: none; border: none; cursor: pointer; padding: 0.2rem;
    color: #cbd5e1; transition: all 0.2s ease;
}
.doc-btn:hover { color: #64748b; }
.doc-btn.has-doc { color: #10b981; }
.doc-btn.has-doc:hover { color: #047857; }



.inline-edit-input {
    width: 100%;
    padding: 0.3rem 0.4rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    font-size: 0.8rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.15s;
}
.inline-edit-input:focus { border-color: #f43f5e; outline: none; box-shadow: 0 0 0 3px rgba(244,63,94,0.1); }

.inline-edit-select {
    padding: 0.3rem 0.4rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    font-size: 0.8rem;
    font-family: inherit;
    background: #fff;
    max-width: 140px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 0.75rem;
    color: #94a3b8;
}
.empty-state p { font-size: 0.9rem; font-weight: 600; }

.ledger-footer { margin-top: 2rem; }

/* Belge Önizleme Overlay */
.doc-preview-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none; align-items: center; justify-content: center;
    z-index: 1000;
}
.doc-preview-overlay.active { display: flex; }

.doc-preview-box {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 640px;
    max-height: 80vh;
    overflow: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.doc-preview-box img { max-width: 100%; border-radius: 8px; }
.doc-preview-close {
    position: absolute; top: 0.75rem; right: 0.75rem;
    background: #f1f5f9; border: none; border-radius: 50%; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #475569; font-size: 1.1rem; font-weight: 800;
}
.doc-preview-close:hover { background: #fee2e2; color: #b91c1c; }
.doc-preview-actions { display: flex; gap: 0.5rem; margin-top: 1rem; justify-content: flex-end; }
.doc-preview-actions button { padding: 0.5rem 1rem; border-radius: 6px; font-weight: 700; font-family: inherit; cursor: pointer; font-size: 0.82rem; }

/* =========================================
   RESPONSIVE MİMARİ VE MOBİL UYARLAMALAR (v6.0)
   ========================================= */

/* --- Masaüstü Varsayılanları (Geniş Ekranlar > 768px için Mobil Bileşenleri Gizle) --- */
.mobile-topbar {
    display: none;
}
.mobile-bottom-nav {
    display: none;
}
.sidebar-backdrop {
    display: none;
}
.mobile-sidebar-close-btn {
    display: none;
}

/* ==========================================================================
   1. TABLET VE KÜÇÜK DİZÜSTÜ BİLGİSAYARLAR (@media max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    .main-content {
        margin-left: 220px;
        width: calc(100% - 220px);
        padding: 1.5rem 1.25rem;
    }
    .cards-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .fields-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .settings-grid-v4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .weather-forecast-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    .unit-metrics-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .ledger-subtotals {
        grid-template-columns: 1fr;
    }
    .filter-search-group {
        grid-column: span 1;
    }
}

/* ==========================================================================
   2. AKILLI TELEFONLAR VE DİKEY TABLETLER (@media max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* --- Mobil Üst Gezinti Barı (Mobile Topbar) --- */
    .mobile-topbar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 58px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid #e2e8f0;
        padding: 0 1rem;
        z-index: 950;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        box-sizing: border-box;
    }
    .mobile-topbar-left {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    .mobile-hamburger-btn {
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #334155;
        transition: all 0.2s ease;
        padding: 0;
    }
    .mobile-hamburger-btn:hover {
        background: #e2e8f0;
        color: #0f172a;
    }
    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        user-select: none;
    }
    .mobile-brand-icon {
        width: 28px;
        height: 28px;
    }
    .mobile-brand-title {
        font-size: 1.15rem;
        font-weight: 800;
        color: #1e293b;
        letter-spacing: -0.02em;
    }
    .mobile-topbar-right {
        display: flex;
        align-items: center;
        gap: 0.65rem;
    }
    .mobile-season-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        background: #ecfdf5;
        color: #059669;
        border: 1px solid #a7f3d0;
        padding: 0.35rem 0.7rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 700;
        cursor: pointer;
        user-select: none;
        transition: all 0.2s ease;
    }
    .mobile-season-pill:hover {
        background: #d1fae5;
    }
    .mobile-user-btn {
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
    }
    .mobile-user-avatar-circle {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #10b981;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 0.9rem;
        overflow: hidden;
        border: 2px solid #ffffff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    }
    .mobile-user-avatar-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* --- Mobil Alt Gezinti Barı (Mobile Bottom Navigation) --- */
    .mobile-bottom-nav {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 62px;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid #e2e8f0;
        z-index: 950;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
        padding: 0.25rem 0;
        box-sizing: border-box;
    }
    .mobile-nav-btn {
        background: transparent;
        border: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        color: #64748b;
        cursor: pointer;
        padding: 0.35rem 0;
        border-radius: 8px;
        margin: 0 0.2rem;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-nav-btn svg {
        width: 20px;
        height: 20px;
        transition: transform 0.2s ease;
    }
    .mobile-nav-btn span {
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: -0.01em;
        line-height: 1;
    }
    .mobile-nav-btn.active {
        color: #10b981;
        font-weight: 700;
        background: #ecfdf5;
    }
    .mobile-nav-btn.active svg {
        transform: scale(1.1);
        stroke-width: 2.3;
    }

    /* --- Karartma Katmanı (Sidebar Backdrop) --- */
    .sidebar-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.55);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }
    .sidebar-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* --- Kayar Yan Menü Çekmecesi (Mobile Off-canvas Drawer) --- */
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 84% !important;
        max-width: 320px !important;
        height: 100vh !important;
        z-index: 1000 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    .sidebar.mobile-open {
        transform: translateX(0) !important;
    }
    .mobile-sidebar-close-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.18);
        color: #ffffff;
        font-size: 1.4rem;
        line-height: 1;
        cursor: pointer;
        margin-left: auto;
        padding: 0;
    }
    .mobile-sidebar-close-btn:hover {
        background: #fee2e2;
        color: #dc2626;
        border-color: #fca5a5;
    }
    .sidebar-logo-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 1.15rem 1rem !important;
        box-sizing: border-box;
    }
    .sidebar-nav {
        padding: 0.5rem 0.85rem 1rem 0.85rem !important;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    .sidebar-bottom {
        padding-bottom: 2.25rem !important;
        margin-top: auto !important;
    }

    /* --- Ana İçerik Konumlandırması (Main Content) --- */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        margin-top: 58px !important;
        padding: 1rem 0.85rem 6.5rem 0.85rem !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* --- Dokunmatik ve Sıkışmayı Önleyen Form/Buton Standartları --- */
    input, select, textarea {
        font-size: 16px !important; /* iOS Safari auto-zoom engelleme */
        min-height: 44px;
        box-sizing: border-box;
    }
    button, .btn-primary, .btn-secondary, .btn-danger, .btn-save-entry, .btn-reset-form, .btn-add-field {
        min-height: 44px;
        font-size: 0.92rem;
    }

    /* --- Ana Menü (Dashboard) Mobil Uyarlamaları --- */
    .info-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
    }
    .info-bar-left {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .info-bar-right {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .cards-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    .summary-card {
        padding: 0.9rem !important;
    }
    .summary-card .card-value {
        font-size: 1.35rem !important;
        word-break: break-word;
    }
    .unit-metrics-container {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    .profitability-container, .season-comparison-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
    }

    /* --- Finans Defteri (Ledger) Mobil Uyarlamaları --- */
    .lf-row:not(.lf-row-top) {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    .lf-range-box {
        width: 100% !important;
        min-width: 100% !important;
    }
    .lf-actions-wrap {
        width: 100% !important;
        display: flex !important;
        gap: 0.5rem !important;
        justify-content: space-between !important;
    }
    .lf-btn-clear, .lf-btn-apply {
        flex: 1 !important;
        min-height: 44px !important;
        justify-content: center !important;
        font-size: 0.9rem !important;
    }
    .lf-meta-count {
        margin-left: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }
    .ledger-header-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.75rem !important;
    }
    .btn-add-entry, .btn-export-csv {
        width: 100% !important;
        min-height: 46px !important;
        justify-content: center !important;
    }
    .ledger-table-panel, .table-wrapper, .ledger-table-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        display: block !important;
    }
    .ledger-table {
        min-width: 680px !important;
    }
    .ledger-actions {
        display: flex !important;
        gap: 0.5rem !important;
        justify-content: flex-end !important;
    }
    .ledger-actions button {
        min-width: 40px !important;
        min-height: 40px !important;
    }
    .ledger-batch-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.6rem !important;
    }
    .add-entry-layout {
        grid-template-columns: 1fr !important;
    }

    /* --- Tarla Yönetimi (Fields) Mobil Uyarlamaları --- */
    #fields-map {
        height: 260px !important;
        max-height: 280px !important;
        border-radius: 12px;
    }
    .fields-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    .btn-add-field {
        width: 100% !important;
        min-height: 46px !important;
        justify-content: center !important;
    }
    .fields-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .field-card {
        padding: 1.15rem !important;
    }
    .field-card-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.6rem !important;
    }
    .field-card-btn {
        min-height: 44px !important;
        justify-content: center !important;
    }
    #field-details-drawer {
        width: 100% !important;
        max-width: 100% !important;
        right: -100% !important;
    }
    #field-details-drawer.open {
        right: 0 !important;
    }

    /* --- Tarla Günlüğü (Journal) Mobil Uyarlamaları --- */
    .journal-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    .journal-form-card {
        padding: 1rem !important;
    }
    .journal-feed {
        gap: 1rem !important;
    }

    /* --- Sistem Ayarları (Settings) Mobil Uyarlamaları --- */
    .settings-grid-v4 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .settings-card-v4 {
        padding: 1.15rem !important;
    }
    .settings-card-v4 .sc-actions {
        flex-direction: column !important;
        gap: 0.6rem !important;
    }
    .sc-actions button {
        width: 100% !important;
        min-height: 44px !important;
    }
    .api-key-input-box {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    .api-key-input-box button {
        width: 100% !important;
        min-height: 44px !important;
    }

    /* --- Modallar (Mobil Tam Uyumluluk) --- */
    .modal {
        width: 94% !important;
        max-width: 94% !important;
        max-height: 90vh !important;
        padding: 1.15rem !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 16px !important;
        margin: auto !important;
    }
    .modal-footer {
        flex-direction: column-reverse !important;
        gap: 0.6rem !important;
    }
    .modal-footer button {
        width: 100% !important;
        min-height: 46px !important;
    }

    /* --- Footer Mobil Uyarlamaları --- */
    .app-view-footer {
        margin-bottom: 5rem !important;
    }
    .avf-grid {
        grid-template-columns: 1fr !important;
        gap: 1.75rem !important;
        text-align: center !important;
    }
    .avf-col {
        align-items: center !important;
        text-align: center !important;
    }
    .avf-brand {
        justify-content: center !important;
    }
    .avf-links {
        align-items: center !important;
    }
    .avf-bottom-bar {
        flex-direction: column !important;
        gap: 0.75rem !important;
        text-align: center !important;
    }
    .avf-scroll-top-btn {
        width: 100% !important;
        justify-content: center !important;
        min-height: 44px !important;
    }
}

/* ==========================================================================
   3. KÜÇÜK AKILLI TELEFONLAR (@media max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .cards-row {
        grid-template-columns: 1fr !important;
    }
    .field-card-actions {
        grid-template-columns: 1fr !important;
    }
    .mobile-brand-title {
        font-size: 1.05rem;
    }
    .mobile-season-pill span {
        font-size: 0.75rem;
    }
    .mobile-nav-btn span {
        font-size: 0.65rem;
    }
}

/* ==========================================================================
   4. TEMA UYARLAMALARI (KOYU VE ARAZİ MODU İÇİN MOBİL BİLEŞENLER)
   ========================================================================== */
body.theme-dark .mobile-topbar {
    background: rgba(15, 23, 42, 0.96);
    border-bottom-color: #1e293b;
    color: #f8fafc;
}
body.theme-dark .mobile-brand-title {
    color: #f8fafc;
}
body.theme-dark .mobile-hamburger-btn {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}
body.theme-dark .mobile-hamburger-btn:hover {
    background: #334155;
}
body.theme-dark .mobile-season-pill {
    background: #1e293b;
    color: #34d399;
    border-color: #065f46;
}
body.theme-dark .mobile-season-pill:hover {
    background: #273549;
}
body.theme-dark .mobile-sidebar-close-btn {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}
body.theme-dark .mobile-bottom-nav {
    background: rgba(15, 23, 42, 0.97);
    border-top-color: #1e293b;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
}
body.theme-dark .mobile-nav-btn {
    color: #94a3b8;
}
body.theme-dark .mobile-nav-btn.active {
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
}

body.theme-monochrome .mobile-topbar {
    background: rgba(10, 10, 10, 0.96);
    border-bottom-color: #333333;
    color: #ffffff;
}
body.theme-monochrome .mobile-brand-title {
    color: #ffffff;
}
body.theme-monochrome .mobile-hamburger-btn {
    background: #1f1f1f;
    border-color: #444444;
    color: #ffffff;
}
body.theme-monochrome .mobile-hamburger-btn:hover {
    background: #333333;
}
body.theme-monochrome .mobile-season-pill {
    background: #1f1f1f;
    color: #ffffff;
    border-color: #555555;
}
body.theme-monochrome .mobile-sidebar-close-btn {
    background: #262626;
    border-color: #555555;
    color: #ffffff;
}
body.theme-monochrome .mobile-bottom-nav {
    background: rgba(10, 10, 10, 0.97);
    border-top-color: #333333;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.5);
}
body.theme-monochrome .mobile-nav-btn {
    color: #a3a3a3;
}
body.theme-monochrome .mobile-nav-btn.active {
    color: #ffffff;
    background: #262626;
    border: 1px solid #555555;
}

/* =========================================
   TARLA GÜNLÜĞÜ STİLLERİ (DOĞAL & ZENGİN YEŞİL TEMA)
   ========================================= */
.sidebar-link[data-view="journal"] {
    --btn-color: #15803d;
    --btn-glow: rgba(21, 128, 61, 0.35);
    --btn-bg-active: linear-gradient(90deg, rgba(21, 128, 61, 0.22) 0%, rgba(21, 128, 61, 0.06) 100%);
}

/* --- Tarla Günlüğü Yatay & Tam Genişlik Düzeni --- */
.journal-layout-stacked {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.journal-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1.15rem;
}

.btn-toggle-journal {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toggle-journal:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-toggle-journal.is-collapsed {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

.btn-toggle-journal.is-collapsed svg {
    transform: rotate(180deg);
}

.journal-form-body {
    transition: all 0.3s ease;
}

.journal-form-body.collapsed {
    display: none;
}

/* Yatay Form Gridleri */
.journal-grid-row-1 {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr 1.8fr;
    gap: 1rem;
}

.journal-grid-row-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .journal-grid-row-1 {
        grid-template-columns: 1fr 1fr;
    }
    .journal-grid-row-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .journal-grid-row-1 {
        grid-template-columns: 1fr;
    }
}

.journal-image-upload-wrapper {
    position: relative;
    width: 100%;
    height: 100px;
    min-height: 100px;
    max-height: 100px;
}

.journal-upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 9px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.84rem;
    font-weight: 700;
    transition: all 0.2s ease;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.journal-upload-box:hover {
    border-color: #059669;
    color: #043d2c;
    background: #f0fdf4;
}

.journal-preview-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 9px;
    overflow: hidden;
    border: 1.5px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    z-index: 5;
}

.journal-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-remove-preview {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 10;
    transition: transform 0.15s;
}

.btn-remove-preview:hover {
    transform: scale(1.15);
}

/* Saha Kayıtları Eşit Boyutlu Grid Görünümü */
.journal-stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    max-height: 850px;
    overflow-y: auto;
    padding-right: 0.3rem;
}

.journal-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-left: 4.5px solid #059669;
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 460px; /* Tüm kartlar standart ve eşit yükseklikte */
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.journal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.09);
    border-color: #94a3b8;
    border-left-color: #043d2c;
}

.jc-header-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
}

.jc-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jc-meta-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
}

.jc-meta-icon {
    color: #059669;
    flex-shrink: 0;
}

.jc-field {
    color: #334155;
    font-weight: 700;
}

.jc-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0.35rem 0;
    width: 100%;
    flex-shrink: 0;
}

.jc-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    overflow: hidden;
    gap: 0.5rem;
    margin: 0.25rem 0;
}

.jc-content {
    font-size: 0.86rem;
    color: #334155;
    line-height: 1.5;
    max-height: 58px;
    overflow-y: auto;
    word-break: break-word;
    flex-shrink: 0;
}

.jc-image-box {
    width: 100%;
    height: 200px; /* Dikey fotoğraflar için standart sabit çerçeve */
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.jc-image-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.jc-image-portrait:hover {
    opacity: 0.95;
    transform: scale(1.02);
}

.jc-image-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    height: 100%;
    width: 100%;
}

.jc-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.6rem;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.btn-convert-expense {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 0.4rem 0.85rem;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.btn-convert-expense:hover {
    background: #dcfce7;
    border-color: #86efac;
}

.btn-icon-delete {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.5rem;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon-delete:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
}

/* =========================================
   JOURNAL FORM DÜZENLEME & HİZALAMA
   ========================================= */

#journal-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    width: 100%;
}

.journal-actions-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    width: 100%;
}

.btn-reset-journal {
    flex: 0 0 auto;
    width: 105px;
    height: 44px;
    border-radius: 9px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-weight: 700;
    font-size: 0.88rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset-journal:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.btn-save-journal {
    flex: 0 0 auto;
    min-width: 195px;
    width: auto;
    height: 44px;
    padding: 0 1.6rem;
    border-radius: 9px;
    border: none;
    background: var(--primary); /* Doğal Koyu Orman Yeşili #043d2c */
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 2px 6px rgba(4, 61, 44, 0.25);
    transition: all 0.2s ease;
}

.btn-save-journal:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 61, 44, 0.35);
}

.btn-save-journal svg {
    flex-shrink: 0;
}

#journal-form .full-width {
    grid-column: 1 / -1;
    width: 100%;
}

#journal-form .form-group {
    margin-bottom: 0;
    width: 100%;
    min-width: 0;
}

#journal-form .form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

#view-journal #journal-form .form-group input,
#view-journal #journal-form .form-group select {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    border: 1.5px solid #cbd5e1;
    border-radius: 9px;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

#view-journal #journal-form .form-group select {
    cursor: pointer;
    padding-right: 2rem;
}

#view-journal #journal-form textarea#journal-content {
    width: 100%;
    height: 100px;
    min-height: 100px;
    max-height: 100px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1.5px solid #cbd5e1;
    border-radius: 9px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    resize: none; /* Dikeyde sınırsız uzama tamamen kilitlendi */
    overflow-y: auto;
}

#view-journal #journal-form .form-group input:focus,
#view-journal #journal-form .form-group select:focus,
#view-journal #journal-form textarea#journal-content:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3.5px rgba(5, 150, 105, 0.15);
    outline: none;
}

.journal-stream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.journal-filter-select {
    height: 38px;
    padding: 0 1.8rem 0 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.journal-filter-select:hover {
    border-color: #059669;
}

.journal-filter-select:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* --- Hızlı İşlem Etiketleri (Quick Tags - Yeşil Tema) --- */
.quick-tags-box {
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 10px;
}

.quick-tags-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.6rem;
}

.quick-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.quick-tag-btn {
    background: #ffffff;
    border: 1.5px solid #bbf7d0;
    color: #166534;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 1px 2px rgba(22, 163, 74, 0.05);
}

.quick-tag-btn:hover {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(22, 163, 74, 0.2);
}

.quick-tag-btn:active {
    transform: translateY(0);
}

.quick-tag-btn.active {
    background: #043d2c;
    border-color: #043d2c;
    color: #ffffff;
}

/* Ayarlar Sayfası Hızlı Etiket Yönetim Listesi */
.quick-tag-manage-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 160px;
    overflow-y: auto;
    padding: 0.65rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    min-height: 52px;
}

.quick-tag-manage-item {
    background: #ffffff;
    border: 1.5px solid #bbf7d0;
    border-radius: 20px;
    padding: 0.35rem 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #166534;
}

.quick-tag-manage-item .btn-tag-del {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 0.15rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s;
}

.quick-tag-manage-item .btn-tag-del:hover {
    transform: scale(1.25);
}
/* --- Modern Hava Durumu Aracı --- */
.custom-weather-widget {
    background: #113222;
    color: #fff;
    padding: 1.25rem;
    border-radius: 20px;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.cww-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cww-icon-title { display: flex; gap: 0.8rem; align-items: center; }
.cww-main { font-size: 1.15rem; font-weight: 800; line-height: 1.25; margin-bottom: 0.2rem; }
.cww-sub { font-size: 0.8rem; color: #34d399; font-weight: 600; }
.cww-badge { border: 1px solid rgba(52, 211, 153, 0.3); background: rgba(16, 185, 129, 0.1); color: #34d399; padding: 0.4rem 0.8rem; border-radius: 24px; font-size: 0.75rem; font-weight: 700; text-align: center; line-height: 1.2; }
.cww-divider { height: 1px; background: rgba(255, 255, 255, 0.1); width: 100%; }
.cww-bottom { display: flex; justify-content: space-between; text-align: center; }
.cww-col { flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.cww-col:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.1); }
.cww-day { font-size: 0.85rem; color: #cbd5e1; }
.cww-temp { font-size: 1.35rem; font-weight: 800; }
.cww-desc { font-size: 0.7rem; font-weight: 600; }

.fields-search-box { width: 300px; }
.fields-search-box:focus-within { width: 340px; }
.fields-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 1.25rem; }
@media (max-width: 1200px) { .fields-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 900px) { .fields-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px) { .fields-grid { grid-template-columns: 1fr !important; } }


.field-summary-card { padding: 1.25rem; }
.fsc-text-wrap { justify-content: center; }
.fsc-value { font-size: 1.7rem !important; }


/* ========================================================
   TARLA DETAYLARI SA�DAN KAYAN PANEL (DRAWER)
======================================================== */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.field-details-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    z-index: 2001;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.field-details-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #f8fafc;
}
.drawer-title-group {
    flex: 1;
}
.drawer-close-btn {
    background: #e2e8f0;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    transition: all 0.2s;
    flex-shrink: 0;
}
.drawer-close-btn:hover {
    background: #cbd5e1;
    color: #0f172a;
}

.fdd-badge {
    background: #dcfce7;
    color: #166534;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    display: inline-block;
}
.fdd-sub-badge {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}
.fdd-location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.fdd-visual-banner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}
.fdd-banner-overlay-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 10;
}

.fdd-section {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.fdd-section-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.85rem 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.fdd-dimensions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}
.fdd-dim-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
}
.fdd-dim-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.fdd-dim-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0.2rem 0;
}
.fdd-dim-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
}

.fdd-fin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}
.fdd-fin-card {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}
.fdd-fin-card.expense { background: #fef2f2; border-color: #fee2e2; }
.fdd-fin-card.expense .fdd-fin-val { color: #dc2626; }
.fdd-fin-card.income { background: #f0fdf4; border-color: #dcfce7; }
.fdd-fin-card.income .fdd-fin-val { color: #16a34a; }
.fdd-fin-card.profit { background: #f8fafc; border-color: #e2e8f0; }
.fdd-fin-card.profit .fdd-fin-val { color: #0f172a; }
.fdd-fin-card.unit-cost { background: #eff6ff; border-color: #dbeafe; }
.fdd-fin-card.unit-cost .fdd-fin-val { color: #2563eb; }

.fdd-fin-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.2rem;
}
.fdd-fin-val {
    font-size: 1.1rem;
    font-weight: 800;
}

.fdd-breakdown-box {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px dashed #e2e8f0;
}
.fdd-subhead {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    display: block;
    margin-bottom: 0.5rem;
}
.fdd-cat-bars {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.fdd-cat-bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.fdd-cat-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
}
.fdd-cat-bar-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}
.fdd-cat-bar-fill {
    height: 100%;
    border-radius: 4px;
}

.fdd-seasons-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.fdd-season-pill {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.fdd-season-pill.active {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.fdd-recent-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.fdd-recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}
.fdd-recent-left {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.fdd-recent-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
}
.fdd-recent-meta {
    font-size: 0.72rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.fdd-recent-amt.expense { color: #dc2626; }
.fdd-recent-amt.income { color: #16a34a; }

.fdd-view-journal-link {
    background: none;
    border: none;
    color: #16a34a;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: background 0.2s;
}
.fdd-view-journal-link:hover {
    background: #dcfce7;
}

.drawer-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    gap: 0.75rem;
}


/* --- Drawer Revizyonlar --- */
.drawer-body {
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 3.5rem;
}
.drawer-body::-webkit-scrollbar {
    display: none;
}
.drawer-scroll-indicator-btn {
    position: absolute;
    bottom: 74px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #1e293b;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s ease;
}
.drawer-scroll-indicator-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    transform: translateX(-50%) scale(1.08);
}
.fdd-view-journal-btn {
    background: #ecfdf5;
    color: #059669;
    border: 1.5px solid #a7f3d0;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.fdd-view-journal-btn:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}
.fdd-recent-amt {
    font-size: 0.75rem;
    font-weight: 700;
}
.fdd-dim-sub:empty {
    display: none;
}


/* --- FDD Donut & 2 Sat�rl� Lejant --- */
.fdd-donut-box {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fdd-donut-box svg {
    transform: rotate(-90deg);
    width: 135px;
    height: 135px;
}
.fdd-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    padding: 0 4px;
}
.fdd-donut-amount {
    font-size: 0.65rem;
    font-weight: 800;
    color: #dc2626;
    line-height: 1.1;
    max-width: 80px;
    word-break: break-word;
}
.fdd-donut-label {
    font-size: 0.52rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-top: 2px;
}

.fdd-legend {
    flex: 1;
    min-width: 170px;
    max-height: 190px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-right: 0.3rem;
}
.fdd-legend::-webkit-scrollbar {
    width: 4px;
}
.fdd-legend::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

.fdd-legend-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.35rem 0.55rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.fdd-legend-row-1 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1e293b;
}
.fdd-legend-cat-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.fdd-legend-row-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 0.85rem;
    font-size: 0.72rem;
}
.fdd-legend-amt {
    font-weight: 700;
    color: #475569;
}
.fdd-legend-pct {
    font-weight: 800;
    color: #475569;
    background: #e2e8f0;
    padding: 0.08rem 0.35rem;
    border-radius: 4px;
    font-size: 0.68rem;
}



/* --- Saha Notu Modal (Scrollsuz Acilir Pencere) --- */
.journal-modal-card {
    max-width: 820px;
    width: 92%;
    height: auto;
    max-height: 90vh;
    padding: 1.75rem 2rem;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

#journal-content {
    width: 100%;
    height: 120px;
    min-height: 120px;
    max-height: 120px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 0.75rem 0.85rem;
    font-size: 0.88rem;
    line-height: 1.5;
    resize: none;
    box-sizing: border-box;
    font-family: inherit;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#journal-content:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    outline: none;
}
/* --- Finans Defteri Filtre Butonu & Yeni Kayit Ekle Butonu Ayriligi --- */
.lf-btn-apply {
    height: 40px;
    padding: 0 1.25rem;
    border: 1px solid #1e293b;
    background: #1e293b; /* Koyu Slate / Navy Renk */
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15);
}
.lf-btn-apply:hover {
    background: #0f172a;
    border-color: #0f172a;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
}

/* --- Yeni Finansal Kayit Modal (Scrollsuz & Ferah) --- */
.entry-modal-card {
    max-width: 820px;
    width: 92%;
    height: auto;
    max-height: 90vh;
    padding: 1.75rem 2rem;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    overflow-y: auto;
    box-sizing: border-box;
}

.entry-modal-card .transaction-type-toggle {
    margin-bottom: 1.15rem;
}

.entry-modal-card .form-group label {
    font-weight: 700;
    font-size: 0.82rem;
    color: #334155;
    margin-bottom: 0.35rem;
    display: block;
}

.entry-modal-card input[type="text"],
.entry-modal-card input[type="number"],
.entry-modal-card input[type="date"],
.entry-modal-card select {
    height: 40px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.88rem;
}

/* --- Saha Notu Karti Baslik Ust Bari ve Islem Butonlari --- */
.jc-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.jc-header-top .jc-title {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jc-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.btn-journal-edit,
.btn-journal-delete {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    box-sizing: border-box;
}

.btn-journal-edit {
    color: #475569;
}

.btn-journal-edit:hover {
    background: #e0e7ff;
    border-color: #c7d2fe;
    color: #4338ca;
    transform: scale(1.08);
}

.btn-journal-delete {
    color: #94a3b8;
}

.btn-journal-delete:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #ef4444;
    transform: scale(1.08);
}

.btn-journal-edit svg,
.btn-journal-delete svg {
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    flex-shrink: 0;
}
/* --- Saha Kayitlari Grid: Scrollsuz Dogal Uzayan Panel --- */
.journal-stream-grid {
    max-height: none;
    overflow: visible;
    height: auto;
    padding-right: 0;
}

/* --- Tarih Araligi: Bitis Tarihi Alt Satir, Ortalanmis Simge & Dikey Cizgi --- */
.jc-date-range-row {
    display: flex;
    align-items: center; /* Simgeyi baslangic ve bitise gore tam ortalar */
    gap: 0.5rem;
    margin: 0.2rem 0;
}

.jc-date-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jc-date-line-divider {
    width: 2px;
    height: 28px; /* Baslangic ve bitis iki satirini baglayan dikey cizgi */
    background: #059669;
    border-radius: 2px;
    flex-shrink: 0;
    opacity: 0.65;
}

.jc-date-stacked {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1.25;
}

.jc-date-stacked .jc-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
}

.jc-date-stacked .jc-date-end {
    color: #475569;
}
/* --- Bildirim Noktasini Kaldir --- */
.notification-dot {
    display: none;
}

/* --- Finans Defteri Tarih Kutusu Genisletme --- */
.lf-date-range {
    flex: 1.8;
    min-width: 290px;
}

/* --- Cop Kutusu: Varsayilan Duzenle ile Ayni, Sadece Hover'da Kirmizi --- */
.btn-ledger-delete {
    background: #f1f5f9;
    color: #475569;
}

.btn-ledger-delete:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: scale(1.08);
}

/* --- Finans Defteri Tablosu: Gelir (Kar) ve Gider (Zarar) Satir Renk Modeli --- */
.ledger-table tbody tr.row-income {
    border-left: 4px solid #10b981;
    background: rgba(16, 185, 129, 0.02);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ledger-table tbody tr.row-income:hover {
    background: rgba(16, 185, 129, 0.07);
}

.ledger-table tbody tr.row-expense {
    border-left: 4px solid #ef4444;
    background: rgba(239, 68, 68, 0.02);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ledger-table tbody tr.row-expense:hover {
    background: rgba(239, 68, 68, 0.07);
}
/* --- Kompakt Tablo Duzeni: Yatay Scrollbar Cikmaz, Metinler Tam Okunur, Belge Sutunu Yok --- */
.ledger-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ledger-table {
    width: 100%;
    min-width: 0;
    table-layout: auto;
    border-collapse: collapse;
    font-size: 0.79rem;
}

.ledger-table th {
    padding: 0.55rem 0.45rem;
    font-size: 0.71rem;
    font-weight: 800;
    vertical-align: middle;
    white-space: nowrap;
    box-sizing: border-box;
}

.ledger-table td {
    padding: 0.52rem 0.45rem;
    vertical-align: middle;
    font-size: 0.79rem;
    box-sizing: border-box;
}

/* Dengeli ve Kompakt Sutun Genislikleri (Orantili Dagilim, Scrollbar Yok) */
.th-check { width: 3.5%; min-width: 36px; text-align: center; }
.th-date { width: 11%; min-width: 95px; white-space: nowrap; }
.th-cat { width: 13%; min-width: 115px; }
.th-field { width: 13%; min-width: 115px; }
.th-desc { width: 21%; min-width: 140px; }
.th-qty { width: 10%; min-width: 85px; text-align: right; }
.th-uprice { width: 11%; min-width: 95px; text-align: right; }
.th-total { width: 13.5%; min-width: 115px; text-align: right; }
.th-actions { width: 4%; min-width: 70px; text-align: center; }

/* Metinler tam ve net okunur */
.cat-indicator {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: normal;
}

.cat-name {
    font-weight: 700;
    color: #1e293b;
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
    font-size: 0.78rem;
}

.field-cell {
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.78rem;
}

.desc-cell {
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
    color: #475569;
    font-size: 0.78rem;
}

/* İşlemler butonları kompakt (28x28) ve kesinlikle sabit */
.ledger-actions {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.btn-ledger-edit,
.btn-ledger-delete,
.btn-ledger-save,
.btn-ledger-cancel {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.btn-ledger-edit { background: #f1f5f9; color: #475569; }
.btn-ledger-edit:hover { background: #dbeafe; color: #1d4ed8; transform: scale(1.06); }

.btn-ledger-delete { background: #f1f5f9; color: #475569; }
.btn-ledger-delete:hover { background: #fee2e2; color: #ef4444; transform: scale(1.06); }

.btn-ledger-save { background: #d1fae5; color: #047857; }
.btn-ledger-save:hover { background: #a7f3d0; transform: scale(1.06); }

.btn-ledger-cancel { background: #fee2e2; color: #ef4444; }
.btn-ledger-cancel:hover { background: #fecaca; transform: scale(1.06); }

/* Satır içi düzenleme kutuları */
.inline-edit-input,
.inline-edit-select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: 34px;
    padding: 0 0.6rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    background: #ffffff;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
}
.inline-edit-input:focus,
.inline-edit-select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
body.theme-dark .inline-edit-input,
body.theme-dark .inline-edit-select {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}
tr.row-editing td.td-check input {
    visibility: hidden !important;
}
.inline-edit-actions .mob-btn-text {
    display: none;
}

/* Evrensel Temizlenebilir Metin Kutusu (Clearable Inputs) */
.clearable-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}
.clearable-input-wrapper input {
    width: 100%;
    padding-right: 32px !important;
    box-sizing: border-box;
}
.clearable-input-wrapper .btn-clear-input,
.clearable-input-wrapper .btn-clear-inline {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: none;
    background: #e2e8f0;
    color: #64748b;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.15s ease;
    z-index: 5;
}
.clearable-input-wrapper .btn-clear-input:hover,
.clearable-input-wrapper .btn-clear-inline:hover {
    background: #cbd5e1;
    color: #0f172a;
}
body.theme-dark .clearable-input-wrapper .btn-clear-input,
body.theme-dark .clearable-input-wrapper .btn-clear-inline {
    background: #334155;
    color: #cbd5e1;
}
body.theme-dark .clearable-input-wrapper .btn-clear-input:hover,
body.theme-dark .clearable-input-wrapper .btn-clear-inline:hover {
    background: #475569;
    color: #f8fafc;
}
.clearable-input-wrapper.has-value .btn-clear-input,
.clearable-input-wrapper.has-value .btn-clear-inline {
    display: inline-flex !important;
}
/* ========================================================
   TARLA DETAYLARI PANELI (DRAWER) - MISIR DESENLI KOYU TEMA
   ======================================================== */
.field-details-drawer {
    background: linear-gradient(rgba(10, 30, 20, 0.84), rgba(4, 18, 12, 0.94)), url('assets/images/drawer-bg.jpg') center/cover no-repeat;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.45);
}

.drawer-header {
    background: rgba(8, 24, 16, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#fdd-name,
.fdd-name {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.25rem 0;
    line-height: 1.25;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.fdd-location {
    color: #94a3b8;
}
.fdd-location svg {
    color: #34d399;
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    backdrop-filter: blur(6px);
}
.drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Bölüm Kartları (Yarı Saydam Cam) */
.fdd-section {
    background: rgba(12, 34, 23, 0.72);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-radius: 14px;
}

.fdd-section-title {
    color: #f8fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.fdd-section-title svg {
    color: #34d399;
}

/* Boyut ve Geometri Kartlari */
.fdd-dim-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.fdd-dim-label {
    color: #94a3b8;
}
.fdd-dim-val {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.fdd-dim-sub {
    color: #64748b;
}

/* Finansal Kartlar */
.fdd-fin-card.expense {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.35);
}
.fdd-fin-card.expense .fdd-fin-label { color: #fca5a5; }
.fdd-fin-card.expense .fdd-fin-val { color: #f87171; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }

.fdd-fin-card.income {
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.35);
}
.fdd-fin-card.income .fdd-fin-label { color: #86efac; }
.fdd-fin-card.income .fdd-fin-val { color: #4ade80; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }

.fdd-fin-card.profit {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.fdd-fin-card.profit .fdd-fin-label { color: #cbd5e1; }
.fdd-fin-card.profit .fdd-fin-val { color: #ffffff; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }

.fdd-fin-card.unit-cost {
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.35);
}
.fdd-fin-card.unit-cost .fdd-fin-label { color: #93c5fd; }
.fdd-fin-card.unit-cost .fdd-fin-val { color: #60a5fa; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }

/* Kategori Dokumu ve Son Hareketler */
.fdd-subhead {
    color: #cbd5e1;
}
.fdd-cat-bar-header {
    color: #e2e8f0;
}
.fdd-cat-bar-track {
    background: rgba(255, 255, 255, 0.12);
}

.fdd-recent-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.fdd-recent-title {
    color: #ffffff;
}
.fdd-recent-meta {
    color: #94a3b8;
}

.fdd-season-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f1f5f9;
}
.fdd-season-pill.active {
    background: rgba(34, 197, 94, 0.25);
    border-color: #22c55e;
    color: #86efac;
}

.fdd-sub-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.fdd-view-journal-link {
    color: #4ade80;
}
.fdd-view-journal-link:hover {
    background: rgba(74, 222, 128, 0.15);
}

/* Alt Bar (Footer) */
.drawer-footer {
    background: rgba(8, 24, 16, 0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.drawer-scroll-indicator-btn {
    background: rgba(8, 24, 16, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #34d399;
    backdrop-filter: blur(8px);
}
.drawer-scroll-indicator-btn:hover {
    background: rgba(16, 185, 129, 0.25);
    color: #ffffff;
}
/* --- Tarla Karti Tepe Satiri (Paralel Cift Yesil Cizgi & Sag Ust Duzenle/Sil) --- */
.field-card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.field-card-parallel-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
}

.fc-parallel-line {
    height: 3px;
    border-radius: 3px;
    width: 100%;
    background: linear-gradient(90deg, #86efac 0%, #22c55e 50%, #15803d 100%);
    display: block;
}

.field-card-top-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.field-card-top-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.field-card-top-btn.edit:hover {
    background: #e0e7ff;
    border-color: #c7d2fe;
    color: #4338ca;
    transform: scale(1.08);
}

.field-card-top-btn.delete:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #ef4444;
    transform: scale(1.08);
}

/* Tarla Karti Alt Butonlari: Gunluk ve Detaylar Esit Yayilmis */
.field-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
    align-items: stretch;
}

.field-card-action-btn {
    flex: 1;
    height: 36px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    color: #1e293b;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.field-card-action-btn:hover {
    background: #043d2c;
    border-color: #043d2c;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 61, 44, 0.2);
}

/* ========================================================
   FİNANS DEFTERİ SERİ EKLEME MODU & CANLI BİLDİRİM
   ======================================================== */
.continuous-add-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.continuous-add-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.continuous-toggle-box {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    transition: all 0.2s ease;
}
.continuous-toggle-box svg {
    color: #94a3b8;
    transition: color 0.2s ease;
}
.continuous-add-toggle:hover .continuous-toggle-box {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #94a3b8;
}
.continuous-add-toggle input:checked + .continuous-toggle-box {
    background: #ecfdf5;
    color: #065f46;
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.continuous-add-toggle input:checked + .continuous-toggle-box svg {
    color: #10b981;
}

#entry-inline-toast {
    animation: fadeInToast 0.25s ease;
}

@keyframes fadeInToast {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   GİRİŞ SONRASI MODERN UYGULAMA FOOTER'I (AVF)
   ========================================= */
.app-view-footer {
    margin-top: 4rem;
    padding: 2.75rem 2.25rem 1.75rem 2.25rem;
    background: linear-gradient(180deg, #022c22 0%, #011913 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 20px;
    box-shadow: 0 15px 35px -5px rgba(2, 44, 34, 0.35);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.avf-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.avf-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.4fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 2rem;
}
.avf-brand-col {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.avf-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.avf-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(52, 211, 153, 0.4);
    padding: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}
.avf-brand-info {
    display: flex;
    flex-direction: column;
}
.avf-brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.avf-brand-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6ee7b7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.avf-brand-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
    margin: 0;
    max-width: 320px;
}
.avf-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}
.avf-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(4px);
}
.avf-dot-live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    display: inline-block;
}
.avf-col-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1rem 0;
}
.avf-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.avf-links li {
    margin: 0;
    padding: 0;
}
.avf-link-btn {
    background: none;
    border: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}
.avf-link-btn:hover {
    color: #a7f3d0;
    transform: translateX(3px);
}
.avf-help-btn {
    margin-top: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.avf-help-btn:hover {
    background: rgba(16, 185, 129, 0.35);
    border-color: #10b981;
    color: #ffffff;
    transform: translateY(-1px);
}
.avf-social-grid {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.avf-social-card {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.avf-social-card:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(52, 211, 153, 0.5);
    color: #a7f3d0;
    transform: translateY(-1px);
}
.avf-bottom-bar {
    padding-top: 1.25rem;
    margin-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.avf-copy-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}
.avf-scroll-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.avf-scroll-top-btn:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
    transform: translateY(-1px);
}

/* Koyu Mod ve Siyah-Beyaz Mod Uyumu */
body.theme-dark .app-view-footer {
    background: linear-gradient(180deg, #070e1b 0%, #03060c 100%);
    border: 1px solid #1e2e4a;
    border-top: 3.5px solid #10b981;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.5);
}
body.theme-dark .avf-badge {
    background: #1e2e4a;
    color: #94a3b8;
    border-color: #2a3e5c;
}
body.theme-dark .avf-social-card,
body.theme-dark .avf-scroll-top-btn {
    background: #1e2e4a;
    border-color: #2a3e5c;
    color: #cbd5e1;
}
body.theme-dark .avf-social-card:hover,
body.theme-dark .avf-scroll-top-btn:hover {
    background: #273b5c;
    color: #f8fafc;
}
body.theme-dark .avf-bottom-bar {
    border-top-color: #1e2e4a;
}

body.theme-monochrome .app-view-footer {
    background: #000000;
    border: 2px solid #555555;
    border-top: 3.5px solid #ffffff;
    box-shadow: none;
}
body.theme-monochrome .avf-brand-name,
body.theme-monochrome .avf-col-title {
    color: #ffffff;
}
body.theme-monochrome .avf-brand-tag {
    color: #cccccc;
}
body.theme-monochrome .avf-brand-desc,
body.theme-monochrome .avf-copy-text {
    color: #aaaaaa;
}
body.theme-monochrome .avf-badge {
    background: #1e1e1e;
    color: #ffffff;
    border-color: #555555;
}
body.theme-monochrome .avf-link-btn {
    color: #cccccc;
}
body.theme-monochrome .avf-link-btn:hover {
    color: #ffffff;
}
body.theme-monochrome .avf-social-card,
body.theme-monochrome .avf-scroll-top-btn {
    background: #181818;
    border-color: #444444;
    color: #ffffff;
}
body.theme-monochrome .avf-social-card:hover,
body.theme-monochrome .avf-scroll-top-btn:hover {
    background: #2e2e2e;
    border-color: #ffffff;
    color: #ffffff;
}
body.theme-monochrome .avf-bottom-bar {
    border-top-color: #333333;
}
body.theme-monochrome .avf-copy-text {
    color: #d4d4d4;
}

@media (max-width: 992px) {
    .avf-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}
@media (max-width: 576px) {
    .avf-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .avf-bottom-bar {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

/* ========================================================
   KOYU MOD VE ARAZİ MODU GÖRSEL KONTRAST İYİLEŞTİRMELERİ (v5.8)
   ======================================================== */

/* --- 1. SEZON SEÇME BÖLÜMÜ --- */
body.theme-dark .season-modal-card .modal-header h3 {
    color: #f8fafc;
}
body.theme-dark .season-modal-card .modal-subtitle {
    color: #94a3b8;
}
body.theme-dark .season-section-title {
    color: #34d399;
}
body.theme-dark .season-name {
    color: #f8fafc;
}
body.theme-dark .season-item.active .season-name {
    color: #34d399;
}
body.theme-dark #new-season-input {
    background: #0d1726;
    color: #f8fafc;
    border-color: #2a3e5c;
}
body.theme-dark #new-season-input:focus {
    background: #131f33;
    border-color: #10b981;
}

body.theme-monochrome .season-modal-card .modal-header h3 {
    color: #ffffff;
}
body.theme-monochrome .season-modal-card .modal-subtitle {
    color: #d4d4d4;
}
body.theme-monochrome .season-section-title {
    color: #ffffff;
}
body.theme-monochrome .season-name {
    color: #ffffff;
}
body.theme-monochrome .season-item.active .season-name {
    color: #000000;
}
body.theme-monochrome #new-season-input {
    background: #000000;
    color: #ffffff;
    border-color: #666666;
}
body.theme-monochrome #new-season-input:focus {
    background: #181818;
    border-color: #ffffff;
}

/* --- 2. ANA MENÜ TARLA KAZANÇ RAPORU --- */
body.theme-dark #profitability-table thead th {
    background: #16233b;
    color: #f8fafc;
    border-bottom: 2px solid #223552;
}
body.theme-dark #profitability-table .cat-badge {
    background: #1e2e4a;
    border-color: #2a3e5c;
    color: #f8fafc;
}
body.theme-dark #profitability-table tr.row-general-business {
    background: #0d1726;
}
body.theme-dark #profitability-table tr.row-general-business td {
    color: #f8fafc;
}
body.theme-dark #profitability-table tr.row-general-business .muted-text {
    color: #94a3b8;
}

body.theme-monochrome #profitability-table thead th {
    background: #1c1c1c;
    color: #ffffff;
    border-bottom: 2px solid #555555;
}
body.theme-monochrome #profitability-table .cat-badge {
    background: #1e1e1e;
    border-color: #555555;
    color: #ffffff;
}
body.theme-monochrome #profitability-table tr.row-general-business {
    background: #181818;
}
body.theme-monochrome #profitability-table tr.row-general-business td {
    color: #ffffff;
}
body.theme-monochrome #profitability-table tr.row-general-business .muted-text {
    color: #d4d4d4;
}

/* --- 3. FİNANS DEFTERİ YENİ KAYIT EKLE MODALI --- */
body.theme-dark #entry-modal-title,
body.theme-dark .entry-modal-card h3 {
    color: #f8fafc;
}
body.theme-dark .entry-modal-card label,
body.theme-dark .entry-modal-card .form-group label {
    color: #f8fafc;
}
body.theme-dark .entry-modal-card input:not([type="radio"]):not([type="checkbox"]),
body.theme-dark .entry-modal-card select,
body.theme-dark #entry-category,
body.theme-dark #entry-field,
body.theme-dark #entry-unit {
    background: #0d1726;
    color: #f8fafc;
    border-color: #2a3e5c;
}
body.theme-dark .entry-modal-card select option {
    background: #0d1726;
    color: #f8fafc;
}
body.theme-dark .entry-modal-card .currency-symbol {
    color: #94a3b8;
}
body.theme-dark .entry-modal-card .modal-header {
    border-bottom-color: #1e2e4a;
}
body.theme-dark .entry-modal-card .modal-actions {
    border-top-color: #1e2e4a;
}

body.theme-monochrome #entry-modal-title,
body.theme-monochrome .entry-modal-card h3 {
    color: #ffffff;
}
body.theme-monochrome .entry-modal-card label,
body.theme-monochrome .entry-modal-card .form-group label {
    color: #ffffff;
}
body.theme-monochrome .entry-modal-card input:not([type="radio"]):not([type="checkbox"]),
body.theme-monochrome .entry-modal-card select,
body.theme-monochrome #entry-category,
body.theme-monochrome #entry-field,
body.theme-monochrome #entry-unit {
    background: #000000;
    color: #ffffff;
    border-color: #666666;
}
body.theme-monochrome .entry-modal-card select option {
    background: #181818;
    color: #ffffff;
}
body.theme-monochrome .entry-modal-card .currency-symbol {
    color: #ffffff;
}
body.theme-monochrome .entry-modal-card .modal-header {
    border-bottom-color: #444444;
}
body.theme-monochrome .entry-modal-card .modal-actions {
    border-top-color: #444444;
}

/* --- 4. TARLA YÖNETİMİ VE YENİ TARLA MODALI --- */
body.theme-dark .field-card-title {
    color: #f8fafc;
}
body.theme-dark .field-card-area {
    color: #e2e8f0;
}
body.theme-dark .field-card-crop {
    color: #34d399;
}
body.theme-dark .field-card-location {
    color: #94a3b8;
}
body.theme-dark #field-modal-title,
body.theme-dark #field-modal label,
body.theme-dark #field-modal .form-group label {
    color: #f8fafc;
}
body.theme-dark #field-modal input:not([type="radio"]):not([type="checkbox"]),
body.theme-dark #field-modal select {
    background: #0d1726;
    color: #f8fafc;
    border-color: #2a3e5c;
}
body.theme-dark #field-modal select option {
    background: #0d1726;
    color: #f8fafc;
}
body.theme-dark #field-seasons-checkboxes {
    background: #0d1726;
    border-color: #1e2e4a;
}
body.theme-dark #field-seasons-checkboxes .checkbox-label,
body.theme-dark .checkbox-label {
    color: #f8fafc;
}
body.theme-dark .radio-label {
    color: #f8fafc;
}
body.theme-dark #visual-section-upload input[type="file"] {
    background: #0d1726;
    border-color: #2a3e5c;
    color: #f8fafc;
}

body.theme-monochrome .field-card-title {
    color: #ffffff;
}
body.theme-monochrome .field-card-area {
    color: #ffffff;
}
body.theme-monochrome .field-card-crop {
    color: #ffffff;
}
body.theme-monochrome .field-card-location {
    color: #d4d4d4;
}
body.theme-monochrome #field-modal-title,
body.theme-monochrome #field-modal label,
body.theme-monochrome #field-modal .form-group label {
    color: #ffffff;
}
body.theme-monochrome #field-modal input:not([type="radio"]):not([type="checkbox"]),
body.theme-monochrome #field-modal select {
    background: #000000;
    color: #ffffff;
    border-color: #666666;
}
body.theme-monochrome #field-modal select option {
    background: #181818;
    color: #ffffff;
}
body.theme-monochrome #field-seasons-checkboxes {
    background: #181818;
    border-color: #444444;
}
body.theme-monochrome #field-seasons-checkboxes .checkbox-label,
body.theme-monochrome .checkbox-label {
    color: #ffffff;
}
body.theme-monochrome .radio-label {
    color: #ffffff;
}
body.theme-monochrome #visual-section-upload input[type="file"] {
    background: #000000;
    border-color: #666666;
    color: #ffffff;
}

/* --- 5. TARLA GÜNLÜĞÜ SAHA NOTU MODALI --- */
body.theme-dark #journal-modal-title,
body.theme-dark .journal-modal-card h3 {
    color: #f8fafc;
}
body.theme-dark .journal-modal-card label,
body.theme-dark .journal-modal-card .form-group label {
    color: #f8fafc;
}
body.theme-dark #journal-field,
body.theme-dark #journal-content,
body.theme-dark #journal-title,
body.theme-dark #journal-date-start,
body.theme-dark #journal-date-end {
    background: #0d1726;
    color: #f8fafc;
    border-color: #2a3e5c;
}
body.theme-dark #journal-field option {
    background: #0d1726;
    color: #f8fafc;
}
body.theme-dark #journal-submit-btn-text {
    color: #ffffff;
}
body.theme-dark .journal-upload-box {
    background: #0d1726;
    border-color: #2a3e5c;
    color: #f8fafc;
}
body.theme-dark .journal-modal-card .modal-header {
    border-bottom-color: #1e2e4a;
}
body.theme-dark .journal-modal-card .modal-actions {
    border-top-color: #1e2e4a;
}

body.theme-monochrome #journal-modal-title,
body.theme-monochrome .journal-modal-card h3 {
    color: #ffffff;
}
body.theme-monochrome .journal-modal-card label,
body.theme-monochrome .journal-modal-card .form-group label {
    color: #ffffff;
}
body.theme-monochrome #journal-field,
body.theme-monochrome #journal-content,
body.theme-monochrome #journal-title,
body.theme-monochrome #journal-date-start,
body.theme-monochrome #journal-date-end {
    background: #000000;
    color: #ffffff;
    border-color: #666666;
}
body.theme-monochrome #journal-field option {
    background: #181818;
    color: #ffffff;
}
body.theme-monochrome #journal-submit-btn-text {
    color: #000000;
}
body.theme-monochrome .journal-upload-box {
    background: #181818;
    border-color: #555555;
    color: #ffffff;
}
body.theme-monochrome .journal-modal-card .modal-header {
    border-bottom-color: #444444;
}
body.theme-monochrome .journal-modal-card .modal-actions {
    border-top-color: #444444;
}

/* --- 6. SİSTEM AYARLARI KATEGORİ YÖNETİMİ --- */
body.theme-dark .sc-cat-list {
    background: #0d1726;
    border-color: #1e2e4a;
}
body.theme-dark .sc-cat-list::-webkit-scrollbar {
    width: 6px;
}
body.theme-dark .sc-cat-list::-webkit-scrollbar-track {
    background: #0d1726;
    border-radius: 4px;
}
body.theme-dark .sc-cat-list::-webkit-scrollbar-thumb {
    background: #2a3e5c;
    border-radius: 4px;
}
body.theme-dark .sc-cat-list::-webkit-scrollbar-thumb:hover {
    background: #3b5278;
}
body.theme-dark .sc-add-cat-form input[type="text"],
body.theme-dark #new-cat-label {
    background: #0d1726;
    color: #f8fafc;
    border: 1.5px solid #2a3e5c;
}
body.theme-dark .sc-add-cat-form input[type="text"]:focus,
body.theme-dark #new-cat-label:focus {
    background: #131f33;
    border-color: #10b981;
}
body.theme-dark .sc-cat-tabs .cat-tab {
    background: #1e2e4a;
    color: #94a3b8;
}
body.theme-dark .sc-cat-tabs .cat-tab.active {
    background: #10b981;
    color: #ffffff;
}

body.theme-monochrome .sc-cat-list {
    background: #181818;
    border-color: #444444;
}
body.theme-monochrome .sc-cat-list::-webkit-scrollbar {
    width: 6px;
}
body.theme-monochrome .sc-cat-list::-webkit-scrollbar-track {
    background: #181818;
    border-radius: 4px;
}
body.theme-monochrome .sc-cat-list::-webkit-scrollbar-thumb {
    background: #555555;
    border-radius: 4px;
}
body.theme-monochrome .sc-cat-list::-webkit-scrollbar-thumb:hover {
    background: #777777;
}
body.theme-monochrome .sc-add-cat-form input[type="text"],
body.theme-monochrome #new-cat-label {
    background: #000000;
    color: #ffffff;
    border: 1.5px solid #666666;
}
body.theme-monochrome .sc-add-cat-form input[type="text"]:focus,
body.theme-monochrome #new-cat-label:focus {
    background: #181818;
    border-color: #ffffff;
}
body.theme-monochrome .sc-cat-tabs .cat-tab {
    background: #1e1e1e;
    color: #d4d4d4;
}
body.theme-monochrome .sc-cat-tabs .cat-tab.active {
    background: #ffffff;
    color: #000000;
    font-weight: 800;
}

/* --- 7. PROFİL VE HESAP AYARLARI (KOYU VE MONOKROM TEMA) --- */
/* KOYU TEMA (theme-dark) */
body.theme-dark #profile-settings-modal .profile-modal-card,
body.theme-dark .profile-modal-card {
    background: #131f33 !important;
    border: 1px solid #1e2e4a !important;
    color: #f8fafc;
}
body.theme-dark .profile-modal-header {
    background: #0d1726 !important;
    border-bottom: 1px solid #1e2e4a !important;
}
body.theme-dark .profile-modal-tabs {
    background: #0d1726 !important;
    border-bottom: 1px solid #1e2e4a !important;
}
body.theme-dark .profile-tab-content,
body.theme-dark .profile-tab-pane {
    background: #131f33 !important;
    color: #f8fafc;
}
body.theme-dark .profile-tab-btn {
    background: #0d1726;
    color: #94a3b8;
    border: 1px solid #1e2e4a;
}
body.theme-dark .profile-tab-btn:hover {
    background: #1e2e4a;
    color: #f8fafc;
}
body.theme-dark .profile-tab-btn.active {
    color: #34d399 !important;
    background: #1e2e4a !important;
    border-color: #10b981 !important;
}
body.theme-dark .profile-tab-btn.tab-btn-danger {
    background: #0d1726;
    color: #f87171;
    border-color: #1e2e4a;
}
body.theme-dark .profile-tab-btn.tab-btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}
body.theme-dark .profile-tab-btn.tab-btn-danger.active {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #fca5a5 !important;
    border-color: #ef4444 !important;
}
body.theme-dark .pfl-label {
    color: #cbd5e1;
}
body.theme-dark .pfl-input-wrap input {
    background: #0d1726 !important;
    color: #f8fafc !important;
    border-color: #2a3e5c !important;
}
body.theme-dark .pfl-input-wrap input:disabled {
    background: #09101a !important;
    color: #64748b !important;
    border-color: #1e2e4a !important;
}
body.theme-dark .pfl-input-icon {
    color: #64748b;
}
body.theme-dark .pfl-avatar-card {
    background: #0d1726 !important;
    border-color: #1e2e4a !important;
}
body.theme-dark .pfl-box-title {
    color: #f8fafc;
}
body.theme-dark .pfl-box-sub {
    color: #94a3b8;
}
body.theme-dark .pfl-format-badge {
    background: #1e2e4a;
    color: #94a3b8;
}
body.theme-dark .pfl-btn-upload {
    background: #1e2e4a;
    border-color: #2a3e5c;
    color: #34d399;
}
body.theme-dark .pfl-btn-upload:hover {
    background: #273b5c;
    border-color: #34d399;
}
body.theme-dark .pfl-btn-remove {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}
body.theme-dark .pfl-preset-row .pfl-preset-label {
    color: #94a3b8;
}
body.theme-dark .pfl-preset-btn {
    background: #1e2e4a;
    border-color: #2a3e5c;
}
body.theme-dark .pfl-preset-btn:hover {
    background: #273b5c;
    border-color: #10b981;
}
body.theme-dark .pfl-btn-cancel {
    background: #1e2e4a;
    border-color: #2a3e5c;
    color: #cbd5e1;
}
body.theme-dark .pfl-btn-cancel:hover {
    background: #273b5c;
    color: #ffffff;
}
body.theme-dark .pfl-btn-save {
    background: #10b981;
    color: #ffffff;
}
body.theme-dark .pfl-btn-save:hover {
    background: #059669;
}
body.theme-dark .profile-security-hint {
    background: #0d1726;
    border-color: #1e2e4a;
    color: #94a3b8;
}
body.theme-dark .profile-security-hint svg {
    color: #34d399;
}
body.theme-dark .profile-delete-pane-card {
    background: #0d1726;
    border-color: #1e2e4a;
}
body.theme-dark .pdp-modal-actions {
    border-top-color: #1e2e4a;
}

/* MONOKROM TEMA (theme-monochrome - Arazi Modu) */
body.theme-monochrome #profile-settings-modal .profile-modal-card,
body.theme-monochrome .profile-modal-card {
    background: #121212 !important;
    border: 2px solid #555555 !important;
    color: #ffffff;
}
body.theme-monochrome .profile-modal-header {
    background: #181818 !important;
    border-bottom: 1px solid #444444 !important;
}
body.theme-monochrome .profile-modal-tabs {
    background: #181818 !important;
    border-bottom: 1px solid #444444 !important;
}
body.theme-monochrome .profile-tab-content,
body.theme-monochrome .profile-tab-pane {
    background: #121212 !important;
    color: #ffffff;
}
body.theme-monochrome .profile-tab-btn {
    background: #181818;
    color: #d4d4d4;
    border: 1px solid #444444;
}
body.theme-monochrome .profile-tab-btn:hover {
    background: #262626;
    color: #ffffff;
}
body.theme-monochrome .profile-tab-btn.active {
    color: #000000 !important;
    background: #ffffff !important;
    border-color: #ffffff !important;
    font-weight: 800;
}
body.theme-monochrome .profile-tab-btn.tab-btn-danger {
    background: #181818;
    color: #d4d4d4;
    border: 1px solid #444444;
}
body.theme-monochrome .profile-tab-btn.tab-btn-danger:hover {
    background: #262626;
    color: #ffffff;
}
body.theme-monochrome .profile-tab-btn.tab-btn-danger.active {
    color: #000000 !important;
    background: #ffffff !important;
    border-color: #ffffff !important;
    font-weight: 800;
}
body.theme-monochrome .pfl-label {
    color: #ffffff;
}
body.theme-monochrome .pfl-input-wrap input {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #666666 !important;
}
body.theme-monochrome .pfl-input-wrap input:disabled {
    background: #181818 !important;
    color: #888888 !important;
    border-color: #444444 !important;
}
body.theme-monochrome .pfl-input-icon {
    color: #888888;
}
body.theme-monochrome .pfl-avatar-card {
    background: #181818 !important;
    border-color: #444444 !important;
}
body.theme-monochrome .pfl-box-title {
    color: #ffffff;
}
body.theme-monochrome .pfl-box-sub {
    color: #d4d4d4;
}
body.theme-monochrome .pfl-format-badge {
    background: #262626;
    color: #d4d4d4;
}
body.theme-monochrome .pfl-btn-upload {
    background: #262626;
    border-color: #555555;
    color: #ffffff;
}
body.theme-monochrome .pfl-btn-upload:hover {
    background: #333333;
    border-color: #ffffff;
}
body.theme-monochrome .pfl-btn-remove {
    background: #262626;
    border-color: #555555;
    color: #ffffff;
}
body.theme-monochrome .pfl-preset-row .pfl-preset-label {
    color: #d4d4d4;
}
body.theme-monochrome .pfl-preset-btn {
    background: #262626;
    border-color: #555555;
}
body.theme-monochrome .pfl-preset-btn:hover {
    background: #333333;
    border-color: #ffffff;
}
body.theme-monochrome .pfl-btn-cancel {
    background: #181818;
    border-color: #555555;
    color: #ffffff;
}
body.theme-monochrome .pfl-btn-cancel:hover {
    background: #262626;
}
body.theme-monochrome .pfl-btn-save {
    background: #ffffff;
    color: #000000;
    font-weight: 800;
}
body.theme-monochrome .pfl-btn-save:hover {
    background: #e5e5e5;
}
body.theme-monochrome .profile-security-hint {
    background: #181818;
    border-color: #444444;
    color: #ffffff;
}
body.theme-monochrome .profile-security-hint svg {
    color: #ffffff;
}
body.theme-monochrome .profile-delete-pane-card {
    background: #181818;
    border-color: #555555;
}
body.theme-monochrome .pdp-modal-actions {
    border-top-color: #444444;
}

/* --- 8. FOOTER MODALLARI (KULLANIM KOŞULLARI, GİZLİLİK & YARDIM) --- */
body.theme-dark .legal-modal-card {
    background: #131f33;
    border: 1px solid #1e2e4a;
    color: #e2e8f0;
}
body.theme-dark .legal-modal-header {
    background: #0d1726;
    border-bottom: 1px solid #1e2e4a;
}
body.theme-dark .legal-tab-btn {
    background: #1e2e4a;
    color: #94a3b8;
    border-color: #2a3e5c;
}
body.theme-dark .legal-tab-btn:hover {
    background: #273b5c;
    color: #f8fafc;
}
body.theme-dark .legal-tab-btn.active {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}
body.theme-dark .legal-modal-body {
    background: #131f33;
    color: #cbd5e1;
}
body.theme-dark .legal-modal-body h3 {
    color: #34d399;
}
body.theme-dark .legal-modal-body h4 {
    color: #f8fafc;
}
body.theme-dark .legal-modal-body p,
body.theme-dark .legal-modal-body ul {
    color: #cbd5e1;
}

body.theme-dark .help-modal-card {
    background: #131f33;
    border: 1px solid #1e2e4a;
    color: #f8fafc;
}
body.theme-dark .help-modal-header {
    border-bottom: 1px solid #1e2e4a;
}
body.theme-dark .help-modal-title {
    color: #f8fafc;
}
body.theme-dark .help-modal-desc {
    color: #94a3b8;
}
body.theme-dark .help-modal-card .auth-input,
body.theme-dark .help-modal-card select.auth-input,
body.theme-dark .help-modal-card textarea.auth-input {
    background: #0d1726;
    color: #f8fafc;
    border-color: #2a3e5c;
}
body.theme-dark .help-modal-card select.auth-input option {
    background: #0d1726;
    color: #f8fafc;
}
body.theme-dark .help-modal-card .auth-switch-link {
    color: #34d399;
}

body.theme-monochrome .legal-modal-card {
    background: #121212;
    border: 2px solid #555555;
    color: #ffffff;
}
body.theme-monochrome .legal-modal-header {
    background: #181818;
    border-bottom: 1px solid #444444;
}
body.theme-monochrome .legal-tab-btn {
    background: #1e1e1e;
    color: #d4d4d4;
    border-color: #555555;
}
body.theme-monochrome .legal-tab-btn:hover {
    background: #2e2e2e;
    color: #ffffff;
}
body.theme-monochrome .legal-tab-btn.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    font-weight: 800;
}
body.theme-monochrome .legal-modal-body {
    background: #121212;
    color: #e5e5e5;
}
body.theme-monochrome .legal-modal-body h3 {
    color: #ffffff;
    font-weight: 800;
}
body.theme-monochrome .legal-modal-body h4 {
    color: #ffffff;
    font-weight: 700;
}
body.theme-monochrome .legal-modal-body p,
body.theme-monochrome .legal-modal-body ul {
    color: #d4d4d4;
}
body.theme-monochrome .legal-modal-footer {
    background: #181818;
    border-top: 1px solid #444444;
}
body.theme-monochrome .btn-legal-accept {
    background: #ffffff;
    color: #000000;
    font-weight: 800;
}
body.theme-monochrome .btn-legal-accept:hover {
    background: #e5e5e5;
}

body.theme-monochrome .help-modal-card {
    background: #121212;
    border: 2px solid #555555;
    color: #ffffff;
}
body.theme-monochrome .help-modal-header {
    border-bottom: 1px solid #444444;
}
body.theme-monochrome .help-modal-title {
    color: #ffffff;
}
body.theme-monochrome .help-modal-desc {
    color: #d4d4d4;
}
body.theme-monochrome .help-modal-card .auth-input,
body.theme-monochrome .help-modal-card select.auth-input,
body.theme-monochrome .help-modal-card textarea.auth-input {
    background: #000000;
    color: #ffffff;
    border: 1.5px solid #666666;
}
body.theme-monochrome .help-modal-card select.auth-input option {
    background: #181818;
    color: #ffffff;
}
body.theme-monochrome .help-modal-card .auth-switch-link {
    color: #ffffff;
    text-decoration: underline;
}

/* ========================================================
   HESAP VE VERİ SİLME (TEHLİKELİ ALAN) STİLLERİ
   ======================================================== */
.profile-tab-btn.tab-btn-danger {
    color: #64748b; /* Normal durumda diğer sekmelerle aynı */
}
.profile-tab-btn.tab-btn-danger:hover {
    color: #dc2626; /* Üzerine gelindiğinde kırmızı yansın */
    background: #fef2f2;
}
.profile-tab-btn.tab-btn-danger.active {
    color: #dc2626; /* Tıklandığında / aktif olduğunda kırmızı yansın */
    border-color: #fecaca;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}

/* Tab 4 İçerik Kartı (Kompakt ve Ekrana Tam Oturan) */
.profile-delete-pane-card {
    background: #ffffff;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}
.pdp-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    margin-bottom: 0.6rem;
}
.pdp-warning-icon {
    color: #dc2626;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdp-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #991b1b;
    margin-bottom: 0.15rem;
}
.pdp-desc {
    font-size: 0.73rem;
    color: #b91c1c;
    line-height: 1.25;
}
.pdp-list {
    list-style: none;
    margin: 0 0 0.65rem 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.65rem;
}
.pdp-list li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.73rem;
    color: #475569;
    line-height: 1.25;
}
.pdp-list li svg {
    color: #dc2626;
    flex-shrink: 0;
}
.pdp-action-area {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.65rem;
}
.btn-danger-confirm {
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 36px;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}
.btn-danger-confirm:hover {
    background: #b91c1c;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
    transform: translateY(-1px);
}

/* Karanlık Tema (theme-dark) Uyarlaması */
body.theme-dark .profile-tab-btn.tab-btn-danger {
    color: #94a3b8; /* Normalde diğer sekmelerle aynı */
}
body.theme-dark .profile-tab-btn.tab-btn-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}
body.theme-dark .profile-tab-btn.tab-btn-danger.active {
    color: #f87171;
    border-bottom-color: #ef4444;
    background: #1e293b;
}
body.theme-dark .profile-delete-pane-card {
    background: #1e293b;
    border-color: rgba(239, 68, 68, 0.3);
}
body.theme-dark .pdp-warning-box {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
}
body.theme-dark .pdp-title {
    color: #fca5a5;
}
body.theme-dark .pdp-desc {
    color: #cbd5e1;
}
body.theme-dark .pdp-list li {
    color: #cbd5e1;
}
body.theme-dark .pdp-action-area {
    border-top-color: #334155;
}

/* Monokrom Tema (theme-monochrome) Uyarlaması */
body.theme-monochrome .profile-tab-btn.tab-btn-danger {
    color: #a3a3a3; /* Normalde diğer sekmelerle aynı */
}
body.theme-monochrome .profile-tab-btn.tab-btn-danger:hover {
    background: #333333;
    color: #ffffff;
}
body.theme-monochrome .profile-tab-btn.tab-btn-danger.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
    background: #262626;
}
body.theme-monochrome .profile-delete-pane-card {
    background: #181818;
    border-color: #555555;
}
body.theme-monochrome .pdp-warning-box {
    background: #262626;
    border-color: #555555;
}
body.theme-monochrome .pdp-title {
    color: #ffffff;
}
body.theme-monochrome .pdp-desc {
    color: #d4d4d4;
}
body.theme-monochrome .pdp-list li {
    color: #d4d4d4;
}
body.theme-monochrome .pdp-list li svg {
    color: #ffffff;
}
body.theme-monochrome .pdp-warning-icon svg {
    stroke: #ffffff;
}
body.theme-monochrome .pdp-action-area {
    border-top-color: #444444;
}
body.theme-monochrome .btn-danger-confirm {
    background: #ffffff;
    color: #000000;
    font-weight: 800;
}
body.theme-monochrome .btn-danger-confirm:hover {
    background: #e5e5e5;
}

/* Mobil / Küçük Ekran Uyarlaması */
@media (max-width: 768px) {
    #profile-settings-modal .profile-modal-card,
    .profile-modal-card {
        width: 95vw !important;
        max-width: 95vw !important;
        height: auto !important;
        min-height: auto !important;
        max-height: 94vh !important;
        border-radius: 18px !important;
    }
    .profile-modal-header {
        padding: 1.1rem 1.25rem;
    }
    .profile-modal-title {
        font-size: 1.15rem;
    }
    .profile-modal-subtitle {
        font-size: 0.78rem;
    }
    .profile-modal-tabs {
        padding: 0.75rem 1rem 0.25rem 1rem;
        gap: 6px;
    }
    .profile-tab-btn {
        font-size: 0.78rem;
        padding: 6px 12px;
    }
    .profile-tab-content {
        padding: 1rem 1.25rem 1.25rem 1.25rem;
    }
    .pfl-form-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem;
    }
    .pfl-cks-group {
        max-width: 100% !important;
    }
    .pfl-avatar-card-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .pfl-avatar-actions-col {
        width: 100%;
    }
    .pdp-list {
        grid-template-columns: 1fr;
    }
    .pdp-action-area {
        flex-direction: column;
    }
    .pdp-action-area button {
        width: 100%;
        justify-content: center;
        min-height: 40px;
    }
}
@media (max-width: 480px) {
    .profile-tab-btn {
        font-size: 0.72rem;
        padding: 5px 9px;
        gap: 0.25rem;
    }
    .profile-tab-btn svg {
        width: 13px;
        height: 13px;
    }
    .pfl-btn-cancel,
    .pfl-btn-save {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
}


@media (max-width: 768px) {
    /* Ana Gosterge (Dashboard) Kartlarini Kare 2x2 Yapma */
    .cards-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .cards-row .summary-card {
        aspect-ratio: 1 / 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 12px;
    }
    .cards-row .card-header-label {
        font-size: 0.7rem;
        text-align: center;
        margin-bottom: 8px;
    }
    .cards-row .card-body-row {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .cards-row .card-icon {
        margin: 0;
        width: 36px;
        height: 36px;
    }
    .cards-row .card-value {
        font-size: 1.15rem;
        text-align: center;
    }
    /* Gerekirse icerisindeki ekstra divleri (ok isaretleri vs) gizle veya kucult */
    .cards-row .summary-card > div:last-child {
        margin: 0 !important;
        justify-content: center;
    }

    /* Mobilde eski bildirim butonunu info-bar icinden gizle */
    .info-bar .notification-btn {
        display: none !important;
    }
}



/* ==========================================================================
   TARLADEFTER KAPSAMLI VE TEMA UYUMLU MOBIL (RESPONSIVE) MASTER BLOK
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. DASHBOARD - 2x2 KARE KARTLAR & SIRALAMA */
    .cards-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .cards-row .summary-card {
        aspect-ratio: 1 / 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 12px !important;
        position: relative !important;
    }
    .cards-row .summary-card:nth-child(1) { order: 2 !important; } /* Toplam Tarla (Sağ Üst) */
    .cards-row .summary-card:nth-child(2) { order: 1 !important; } /* Sezonluk Gelir (Sol Üst) */
    .cards-row .summary-card:nth-child(3) { order: 3 !important; } /* Sezonluk Gider (Sol Alt) */
    .cards-row .summary-card:nth-child(4) { order: 4 !important; } /* Net Bakiye (Sağ Alt) */

    .cards-row .card-header-label {
        font-size: 0.72rem !important;
        text-align: center !important;
        margin-bottom: 8px !important;
        width: 100% !important;
    }
    .cards-row .card-body-row {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
    }
    .cards-row .card-icon {
        margin: 0 !important;
        width: 36px !important;
        height: 36px !important;
    }
    .cards-row .card-value {
        font-size: 1.15rem !important;
        text-align: center !important;
    }
    /* Toplam Tarla Adet Rozetini Sağ Alta Yerleştir */
    .cards-row .summary-card:nth-child(1) .total-fields-badge-box {
        position: absolute !important;
        bottom: 8px !important;
        right: 8px !important;
        margin: 0 !important;
        padding: 3px 7px !important;
        border-radius: 6px !important;
        font-size: 0.75rem !important;
    }

    /* 2. DASHBOARD - TARLA KAZANÇ RAPORU (MOBİL KART YAPISI) */
    #profitability-table thead {
        display: none !important;
    }
    #profitability-table,
    #profitability-table tbody,
    #profitability-table tr.profit-row {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    #profitability-table tr.profit-row {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-rows: auto auto auto !important;
        gap: 6px 10px !important;
        background: var(--card-bg, #ffffff) !important;
        border: 1.5px solid var(--border, #e2e8f0) !important;
        border-radius: 12px !important;
        padding: 12px 14px !important;
        margin-bottom: 10px !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.03) !important;
    }
    body.theme-dark #profitability-table tr.profit-row {
        background: #1e293b !important;
        border-color: rgba(255,255,255,0.08) !important;
    }
    body.theme-monochrome #profitability-table tr.profit-row {
        background: #ffffff !important;
        border-color: #000000 !important;
    }
    #profitability-table td {
        display: block !important;
        padding: 0 !important;
        border: none !important;
    }
    #profitability-table td.td-p-name {
        grid-column: 1 / 2 !important;
        grid-row: 1 !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        color: var(--text, #0f172a) !important;
    }
    #profitability-table td.td-p-net {
        grid-column: 2 / 3 !important;
        grid-row: 1 !important;
        text-align: right !important;
        font-size: 1.05rem !important;
        font-weight: 800 !important;
    }
    #profitability-table td.td-p-crop {
        grid-column: 1 / 2 !important;
        grid-row: 2 !important;
        display: flex !important;
        align-items: center !important;
        text-align: left !important;
    }
    #profitability-table td.td-p-area {
        grid-column: 2 / 3 !important;
        grid-row: 2 !important;
        text-align: right !important;
        font-size: 0.82rem !important;
    }
    #profitability-table td.td-p-income {
        grid-column: 1 / 2 !important;
        grid-row: 3 !important;
        font-size: 0.82rem !important;
        text-align: left !important;
        padding-top: 5px !important;
        border-top: 1px dashed var(--border, #f1f5f9) !important;
    }
    #profitability-table td.td-p-expense {
        grid-column: 2 / 3 !important;
        grid-row: 3 !important;
        font-size: 0.82rem !important;
        text-align: right !important;
        padding-top: 5px !important;
        border-top: 1px dashed var(--border, #f1f5f9) !important;
    }
    #profitability-table .mob-p-lbl {
        display: inline !important;
        font-weight: 600 !important;
        opacity: 0.8 !important;
    }

    /* 3. FİNANS DEFTERİ - FİLTRELERDE TÜM TÜRLER VE TÜM TARLALAR YAN YANA */
    .lf-row-top {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .lf-search-wrapper {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
    .lf-type-wrapper {
        grid-column: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
    .lf-field-wrapper {
        grid-column: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
    .lf-category-wrapper {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
    .lf-type-wrapper .lf-select,
    .lf-field-wrapper .lf-select {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* 4. FİNANS DEFTERİ - YENİ KAYIT EKLE MODALI & BUTONLARI */
    #entry-modal .entry-modal-card {
        max-height: 90vh !important;
        max-height: 90dvh !important;
        width: 94% !important;
        max-width: 500px !important;
        margin: auto !important;
        border-radius: 16px !important;
        padding: 1.15rem !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }
    #entry-modal .form-grid-3,
    #entry-modal .form-grid-4 {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .entry-row-top {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .entry-row-top .form-group {
        width: 100% !important;
        min-width: 0 !important;
    }
    #entry-date,
    #entry-amount {
        height: 40px !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    #entry-amount {
        font-size: 1.05rem !important;
        font-weight: 800 !important;
        padding-right: 2rem !important;
        padding-left: 0.6rem !important;
        text-align: right !important;
    }
    #entry-modal input,
    #entry-modal select {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 40px !important;
        box-sizing: border-box !important;
        border: 1.5px solid var(--border, #cbd5e1) !important;
        border-radius: 8px !important;
        background: var(--card-bg, #ffffff) !important;
        color: var(--text, #0f172a) !important;
        outline: none !important;
    }
    body.theme-dark #entry-modal input,
    body.theme-dark #entry-modal select {
        background: #1e293b !important;
        border-color: rgba(255, 255, 255, 0.14) !important;
        color: #f8fafc !important;
    }
    body.theme-monochrome #entry-modal input,
    body.theme-monochrome #entry-modal select {
        background: #ffffff !important;
        border-color: #000000 !important;
        color: #000000 !important;
    }
    #entry-modal input:focus,
    #entry-modal select:focus,
    #entry-modal .clearable-input-wrapper:focus-within input {
        outline: none !important;
        border-color: #10b981 !important;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18) !important;
    }
    .entry-modal-actions {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        padding-top: 10px !important;
        box-sizing: border-box !important;
    }
    .entry-continuous-wrap {
        width: auto !important;
        display: inline-flex !important;
        flex-shrink: 0 !important;
    }
    .entry-action-continuous {
        width: auto !important;
        max-width: fit-content !important;
        display: inline-flex !important;
        cursor: pointer !important;
        margin: 0 !important;
    }
    .entry-actions-right {
        width: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-left: auto !important;
    }
    .entry-action-reset {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        padding: 0 !important;
        flex: 0 0 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }
    .entry-action-reset .reset-text {
        display: none !important;
    }
    .entry-action-save {
        width: auto !important;
        min-width: unset !important;
        height: 40px !important;
        padding: 0 1.15rem !important;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        border-radius: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
    }

    /* 5. FİNANS DEFTERİ - HARCAMA TABLOSU (TEMALARLA %100 UYUMLU KART GÖRÜNÜMÜ) */
    #view-ledger .table-wrapper {
        border-radius: 12px !important;
        overflow: visible !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    #view-ledger .ledger-table {
        display: block !important;
        width: 100% !important;
        min-width: unset !important;
        border: none !important;
    }
    #view-ledger .ledger-table thead {
        display: none !important;
    }
    #view-ledger .ledger-table tbody {
        display: block !important;
        width: 100% !important;
    }
    #view-ledger .ledger-table tr {
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        grid-template-rows: auto auto auto auto !important;
        gap: 8px 10px !important;
        background: var(--card-bg, #ffffff) !important;
        border: 1px solid var(--border, #e2e8f0) !important;
        border-radius: 12px !important;
        padding: 14px 16px !important;
        margin-bottom: 12px !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.03) !important;
        box-sizing: border-box !important;
        align-items: center !important;
    }
    body.theme-dark #view-ledger .ledger-table tr {
        background: #1e293b !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
    }
    body.theme-monochrome #view-ledger .ledger-table tr {
        background: #ffffff !important;
        border-color: #000000 !important;
    }
    #view-ledger .ledger-table td {
        display: block !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }
    #view-ledger .ledger-table td.td-check {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
    #view-ledger .ledger-table td.td-cat {
        grid-column: 2 !important;
        grid-row: 1 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    #view-ledger .ledger-table td.td-total {
        grid-column: 3 !important;
        grid-row: 1 !important;
        display: flex !important;
        align-items: baseline !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        text-align: right !important;
    }
    #view-ledger .ledger-table .mob-ledger-calc {
        display: inline-block !important;
        font-size: 0.72rem !important;
        font-weight: 500 !important;
        color: var(--muted, #64748b) !important;
        white-space: nowrap !important;
    }
    #view-ledger .ledger-table .ledger-total-val {
        font-size: 1.05rem !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
    }
    #view-ledger .ledger-table td.td-desc {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        color: var(--text, #0f172a) !important;
        padding: 2px 0 !important;
        white-space: normal !important;
    }
    #view-ledger .ledger-table td.td-field {
        grid-column: 1 / 3 !important;
        grid-row: 3 !important;
        font-size: 0.82rem !important;
        color: var(--muted, #64748b) !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    #view-ledger .ledger-table td.td-date {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        grid-column: 1 / 3 !important;
        grid-row: 4 !important;
        font-size: 0.78rem !important;
        color: var(--muted, #64748b) !important;
        font-weight: 500 !important;
    }
    #view-ledger .ledger-table .mob-date-icon {
        display: inline-block !important;
    }
    #view-ledger .ledger-table td.td-qty,
    #view-ledger .ledger-table td.td-uprice {
        display: none !important;
    }
    #view-ledger .ledger-table td.td-actions {
        grid-column: 3 !important;
        grid-row: 3 / span 2 !important;
        display: flex !important;
        justify-content: flex-end !important;
        justify-self: end !important;
        align-self: center !important;
        margin-left: auto !important;
    }
    #view-ledger .ledger-table .ledger-actions {
        display: flex !important;
        gap: 0.5rem !important;
        justify-content: flex-end !important;
        margin-left: auto !important;
    }

    /* Mobilde Satır İçi Düzenleme Modu (Inline Edit) */
    #view-ledger .ledger-table tr.row-editing {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto auto auto auto !important;
        gap: 10px !important;
        padding: 16px !important;
        border: 2px solid #10b981 !important;
        background: #f8fafc !important;
        border-radius: 14px !important;
        box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12) !important;
    }
    body.theme-dark #view-ledger .ledger-table tr.row-editing {
        background: #0f172a !important;
        border-color: #10b981 !important;
    }
    #view-ledger .ledger-table tr.row-editing td.td-check {
        display: none !important;
    }
    #view-ledger .ledger-table tr.row-editing td.td-cat {
        grid-column: 1 !important;
        grid-row: 1 !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    #view-ledger .ledger-table tr.row-editing td.td-total {
        grid-column: 2 !important;
        grid-row: 1 !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: left !important;
    }
    #view-ledger .ledger-table tr.row-editing td.td-desc {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    #view-ledger .ledger-table tr.row-editing td.td-desc .clearable-input-wrapper {
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    #view-ledger .ledger-table tr.row-editing td.td-qty {
        display: block !important;
        grid-column: 1 !important;
        grid-row: 3 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    #view-ledger .ledger-table tr.row-editing td.td-uprice {
        display: block !important;
        grid-column: 2 !important;
        grid-row: 3 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    #view-ledger .ledger-table tr.row-editing td.td-date {
        display: block !important;
        grid-column: 1 !important;
        grid-row: 4 !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    #view-ledger .ledger-table tr.row-editing td.td-date input[type="date"],
    #view-ledger .ledger-table tr.row-editing td.td-date .inline-edit-input {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: block !important;
        box-sizing: border-box !important;
        height: 40px !important;
    }
    #view-ledger .ledger-table tr.row-editing td.td-field {
        grid-column: 2 !important;
        grid-row: 4 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        height: 40px !important;
        box-sizing: border-box !important;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        color: var(--text, #0f172a) !important;
        background: rgba(16, 185, 129, 0.08) !important;
        border: 1.5px dashed rgba(16, 185, 129, 0.35) !important;
        border-radius: 8px !important;
        padding: 0 8px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    body.theme-dark #view-ledger .ledger-table tr.row-editing td.td-field {
        color: #f8fafc !important;
        background: rgba(16, 185, 129, 0.12) !important;
        border-color: rgba(16, 185, 129, 0.45) !important;
    }
    #view-ledger .ledger-table tr.row-editing td.td-actions {
        grid-column: 1 / -1 !important;
        grid-row: 5 !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-self: center !important;
        gap: 12px !important;
        padding-top: 10px !important;
        border-top: 1px dashed var(--border, #e2e8f0) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    #view-ledger .ledger-table tr.row-editing .inline-edit-input,
    #view-ledger .ledger-table tr.row-editing .inline-edit-select {
        height: 40px !important;
        font-size: 0.88rem !important;
        border-radius: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    #view-ledger .ledger-table tr.row-editing .btn-ledger-save,
    #view-ledger .ledger-table tr.row-editing .btn-ledger-cancel {
        height: 44px !important;
        padding: 0 22px !important;
        min-width: 110px !important;
        border-radius: 10px !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }
    #view-ledger .ledger-table tr.row-editing .mob-btn-text {
        display: inline !important;
    }

    /* 6. TARLA YÖNETİMİ - ARAMA KUTUSU LİSTE/HARİTA SAĞINDA */
    .fields-section-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .fields-header-controls {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
        align-items: center !important;
    }
    #open-add-field-btn {
        order: 1 !important;
        width: 100% !important;
    }
    .view-toggle {
        order: 2 !important;
        flex-shrink: 0 !important;
    }
    .fields-search-box {
        order: 3 !important;
        flex: 1 !important;
        min-width: 140px !important;
        width: auto !important;
        max-width: unset !important;
        margin: 0 !important;
    }

    /* 7. TARLA DETAYLAR ÇEKMECESİ - AÇILMA SORUNU DÜZELTME */
    #field-details-drawer {
        width: 100% !important;
        max-width: 100% !important;
        right: -100% !important;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    #field-details-drawer.open,
    #field-details-drawer.active {
        right: 0 !important;
    }
    #field-details-drawer .fdd-map-container {
        height: 180px !important;
    }
    #field-details-drawer .fdd-header {
        padding: 14px 16px !important;
    }

    /* 8. TARLAYI DÜZENLE / EKLE MODALI ALANLARI YAN YANA */
    #field-modal .modal-card,
    #field-modal .modal-wide {
        max-height: 90vh !important;
        max-height: 90dvh !important;
        width: 94% !important;
        max-width: 520px !important;
        margin: auto !important;
        border-radius: 16px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        padding: 1.25rem !important;
    }
    #field-modal .form-grid {
        display: grid !important;
        gap: 10px !important;
        margin-bottom: 0.85rem !important;
    }
    #field-modal .form-grid:nth-of-type(1) {
        grid-template-columns: 1fr 1fr !important; /* Tarla Adı & Ekilen Ürün */
    }
    #field-modal .form-grid:nth-of-type(2) {
        grid-template-columns: 1fr 1fr 1fr !important; /* İl, İlçe, Mahalle */
        gap: 6px !important;
    }
    #field-modal .form-grid:nth-of-type(3) {
        grid-template-columns: 1fr 1fr !important; /* Ekim Tarihi & Tarla Alanı */
    }
    #field-modal input,
    #field-modal select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 0.85rem !important;
        height: 38px !important;
    }
    .field-card-media {
        height: 120px !important;
    }

    /* 9. EKİLEN SEZONLAR MODERN ETİKET (PILL) SEÇİCİ */
    #field-seasons-checkboxes {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 8px !important;
        border: 1px solid var(--border, #e2e8f0) !important;
        border-radius: 10px !important;
        background: var(--input-bg, #f8fafc) !important;
    }
    #field-seasons-checkboxes .checkbox-label {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 6px 12px !important;
        background: var(--card-bg, #ffffff) !important;
        border: 1.5px solid var(--border, #e2e8f0) !important;
        border-radius: 20px !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: all 0.2s !important;
        user-select: none !important;
        color: var(--text, #0f172a) !important;
    }
    #field-seasons-checkboxes .checkbox-label:has(input:checked) {
        background: #ecfdf5 !important;
        border-color: #10b981 !important;
        color: #065f46 !important;
    }

    /* 10. AYARLAR - HAVA DURUMU API GÖZ İKONU HİZALAMA */
    .api-key-input-box {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
    }
    .api-key-eye-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        align-self: center !important;
        margin: 0 !important;
    }

    /* 11. GİRİŞ SONRASI FOOTER - HIZLI GEZİNTİ VE DESTEK YAN YANA */
    .avf-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
    }
    .avf-brand-col {
        grid-column: 1 / -1 !important;
    }
    .avf-social-col {
        grid-column: 1 / -1 !important;
    }
    .app-view-footer {
        padding: 2rem 1rem 1.5rem 1rem !important;
    }

    /* 12. PROFİL VE HESAP AYARLARI - SEKME BUTONLARI (2x2) */
    .profile-modal-tabs {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
        overflow-x: visible !important;
    }
    .profile-tab-btn {
        justify-content: center !important;
        padding: 8px 6px !important;
        font-size: 0.78rem !important;
        white-space: normal !important;
        text-align: center !important;
    }
}
