html {
  font-size: 14px;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #f8f9fa;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ====================================================================================
   PWA & MOBİL UYGULAMA DİP MENÜSÜ (BOTTOM NAVIGATION BAR)
   Yalnızca mobilde (ekran genişliği < 768px) ve oturum açmış kullanıcılar için görünür.
   ==================================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #6c757d;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.15s ease-in-out;
}

.mobile-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 2px;
  transition: transform 0.15s ease;
}

.mobile-nav-item:active i {
  transform: scale(0.9);
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: #0d6efd;
}

/* Ortadaki Yuvarlak "Yeni İşlem Ekle" Butonu */
.mobile-nav-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  top: -12px;
}

.mobile-nav-action-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
  font-size: 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mobile-nav-action-btn:active .mobile-nav-action-circle {
  transform: scale(0.92);
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.5);
}

.mobile-nav-action-btn span {
  font-size: 0.7rem;
  font-weight: 600;
  color: #0d6efd;
  margin-top: 3px;
}

/* Mobilde alt menünün içeriği kapatmaması için gövde alt boşluğu */
@media (max-width: 767.98px) {
  body.has-bottom-nav {
    padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ====================================================================================
   PWA YÜKLEME BANNERI (INSTALL PROMPT BANNER)
   ==================================================================================== */
.pwa-install-banner {
  background: linear-gradient(135deg, #212529, #1a1e24);
  color: #ffffff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  margin-bottom: 16px;
  display: none;
}

/* ====================================================================================
   MOBİL İŞLEM KARTLARI (MOBILE TRANSACTION LIST)
   ==================================================================================== */
.mobile-tx-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.mobile-tx-card:active {
  background-color: #f8fafc;
  transform: scale(0.99);
}

.mobile-tx-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-right: 12px;
}

.mobile-tx-icon.income {
  background-color: #dcfce7;
  color: #16a34a;
}

.mobile-tx-icon.expense {
  background-color: #fee2e2;
  color: #dc2626;
}