/* Sayfa yüksekliği ve esnek yapı */
html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa;
}

/* Ana içerik alanı esnek */
main {
  flex: 1 0 auto;
}

#header {
  position: sticky;
  z-index: 1030;
  top: 0;
  flex: 0 0 auto;
}

#footer {
  position: static;
  z-index: auto;
  flex: 0 0 auto;
}

.site-header {
  position: relative;
  border-bottom: 1px solid rgba(13, 110, 253, 0.10) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.site-header nav {
  border-top: 1px solid rgba(13, 110, 253, 0.08) !important;
  background: linear-gradient(90deg, rgba(13, 110, 253, 0.06), rgba(56, 189, 248, 0.04), rgba(124, 58, 237, 0.05)) !important;
}

.site-nav-links {
  padding: .24rem;
  border: 1px solid rgba(13, 110, 253, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 24px rgba(15, 23, 42, 0.06);
}

.site-nav-links .nav-link {
  position: relative;
  padding: .48rem .9rem;
  border-radius: 999px;
  color: #334155;
  font-weight: 600;
  line-height: 1;
  transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.site-nav-links .nav-link::after {
  display: none;
}

.site-nav-links .nav-link:hover,
.site-nav-links .nav-link:focus,
.site-nav-links .nav-link.active {
  color: #0d6efd;
  background: #fff;
  box-shadow: 0 10px 24px rgba(13, 110, 253, 0.13);
  transform: translateY(-1px);
}

#dashboard-link {
  border: 0 !important;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #0d6efd, #38bdf8);
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.24);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

#dashboard-link:hover,
#dashboard-link:focus {
  color: #fff;
  box-shadow: 0 14px 30px rgba(13, 110, 253, 0.30);
  filter: brightness(1.02);
  transform: translateY(-1px);
}

@media (max-width: 519px) {
  #dashboard-link {
    font-size: 0.69rem; /* 12px */
    padding: 4px 8px;
  }
}

/* Profil fotoğrafı (dropdown içi ve header) */
#user-photo,
#profile-photo,
#dropdown-photo {
  border: 1px solid #ccc;
  object-fit: cover;
}

/* Dropdown menü stil iyileştirmeleri */
#profile-menu .dropdown-menu {
  min-width: 220px;
  border-radius: 8px;
  font-size: 0.9rem;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dropdown-menu {
  animation: fadeIn 0.25s ease-out;
}

@media (max-width: 767px) {
  .site-nav-row {
    align-items: flex-start !important;
    flex-direction: column;
    gap: .75rem;
  }

  .site-nav-links {
    flex-wrap: wrap;
    gap: .35rem !important;
    border-radius: 1.1rem;
  }

  #dashboard-link {
    width: 100%;
    margin-left: 0 !important;
    text-align: center;
  }
}
