html {
  font-size: 14px;
}

@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%;
}

/* Landing / statik sayfalar (Hakkımızda, İletişim, Gizlilik) */
.landing-page-section {
  min-height: 50vh;
  padding-top: 1rem;
}

body {
  margin-bottom: 60px;
}

/* Kızgınlık uyarı animasyonu - Yumuşak efekt */
@keyframes kizginlikYanipSonme {
  0% {
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    opacity: 0.6;
    filter: brightness(1.3);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
  }
}

.sg-yanip-soner {
  animation: kizginlikYanipSonme 1.5s infinite;
  /* Pozisyon değişmesin */
  transform-origin: center;
}

/* Navigasyon barı sayfa kaydırıldığında üstte sabit (tüm sayfalarda) */
header {
  position: sticky;
  top: 0;
  z-index: 1030;
}

/* Modern Navigation Bar Styles */
.modern-navbar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom: none;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.modern-navbar:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.modern-brand {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.modern-brand:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.modern-brand i {
  font-size: 1.5rem;
}

/* Uygulama ikonu - navigasyon barı (büyük) */
.navbar-app-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
}

.brand-text {
  line-height: 1.2;
  align-items: center;
  text-align: center;
}

.brand-main {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
  text-align: center;
  width: 100%;
  gap: 0.25rem;
  justify-content: center;
  /* Kromatik Aberasyon Efekti - Sadece Mavi kenar */
  text-shadow: 
    -0.5px 0 0 rgba(100, 150, 255, 0.8),
    -1px 0 0 rgba(100, 150, 255, 0.6);
}

.brand-main i {
  font-size: 1.2rem;
  opacity: 0.9;
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0.95;
  line-height: 1.2;
  margin-top: 2px;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-main i {
  font-size: 1.2rem;
  opacity: 0.9;
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0.95;
  line-height: 1.2;
  margin-top: 2px;
  text-align: left;
  width: 100%;
}

.modern-nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.4rem 0.7rem !important;
  margin: 0 0.15rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  min-width: 40px;
  justify-content: center;
}

.modern-nav-link i {
  font-size: 1rem;
}

.modern-nav-link:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modern-nav-link.active {
  background-color: rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.modern-nav-link.admin-icon-link.active {
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(220, 53, 69, 0.6);
}

.modern-nav-link.admin-icon-link.active i {
  color: #ff6b6b !important;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.8);
}

.modern-toggler {
  border-color: rgba(255, 255, 255, 0.5);
  padding: 0.25rem 0.5rem;
}

.modern-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.modern-btn-logout {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.4rem 0.7rem !important;
  margin: 0 !important;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.9rem;
  min-width: 40px;
  justify-content: center;
  vertical-align: middle;
}

.form-inline.d-inline.m-0 {
  margin: 0 !important;
  padding: 0 !important;
}

.modern-btn-logout i {
  font-size: 1rem;
}

.admin-icon-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

.admin-icon-link i {
  color: #dc3545 !important;
}

.admin-icon-link:hover {
  color: #ffffff !important;
}

.admin-icon-link:hover i {
  color: #ff4757 !important;
}

.modern-btn-logout:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Navigation bar için overflow scroll ekle (çok buton olursa) */
.navbar-nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.navbar-nav::-webkit-scrollbar {
  height: 4px;
}

.navbar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.navbar-nav::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.navbar-nav::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

/* Navbar link text - desktop'da gizli, mobilde görünür */
.nav-link-text {
  margin-left: 0.5rem;
  display: none;
}

/* Desktop'ta sadece ikonlar görünür */
@media (min-width: 992px) {
  .main-nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: calc(100vw - 300px);
  }
  
  .nav-link-text {
    display: none;
  }
  
  .navbar-nav {
    flex-direction: row;
  }
}

/* Mobil ve tablet için düzenlemeler */
@media (max-width: 991.98px) {
  .modern-navbar {
    padding: 0.5rem 0.75rem;
  }
  
  .brand-text {
    font-size: 1rem;
  }
  
  .modern-brand {
    font-size: 1.1rem;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .navbar-nav {
    flex-direction: column;
    width: 100%;
    align-items: stretch !important;
  }
  
  .main-nav-links {
    max-width: 100% !important;
    overflow-x: visible;
    overflow-y: visible;
    flex-wrap: wrap;
  }
  
  .nav-item {
    width: 100%;
    margin-bottom: 0.25rem;
  }
  
  .modern-nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0 !important;
    width: 100%;
    justify-content: flex-start !important;
    border-radius: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
  }
  
  .nav-link-text {
    display: inline-block;
    margin-left: 0.75rem;
    font-size: 0.95rem;
  }
  
  .modern-nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
  }
  
  .user-nav-section {
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .user-nav-section .navbar-nav {
    flex-direction: row;
    justify-content: space-around;
  }
  
  .user-nav-section .nav-item {
    width: auto;
    flex: 1;
  }
  
  .user-nav-section .modern-nav-link {
    justify-content: center !important;
  }
}

/* Küçük telefonlar için ekstra düzenlemeler */
@media (max-width: 576px) {
  .modern-brand {
    font-size: 1rem;
  }
  
  .brand-text {
    font-size: 0.9rem;
  }
  
  .modern-nav-link {
    padding: 0.65rem 0.85rem !important;
    font-size: 0.9rem;
  }
  
  .nav-link-text {
    font-size: 0.9rem;
    margin-left: 0.5rem;
  }
  
  .modern-nav-link i {
    font-size: 1rem;
  }
}