html {
  font-size: 14px;
  height: 100%;
}

@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: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Roboto', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Helvetica, Arial, sans-serif;
  font-weight: 700;
}

/* Brand colors */
:root {
  --dk-primary: #1c3d6e; /* koyu mavi */
  --dk-accent: #258cfb; /* açık mavi */
  --dk-bg-grad-start: #f7fafe;
  --dk-bg-grad-end: #ffffff;
}

.btn-primary {
  background-color: var(--dk-primary);
  border-color: var(--dk-primary);
}
.btn-primary:hover {
  background-color: #163257;
  border-color: #163257;
  box-shadow: 0 6px 16px rgba(28,61,110,0.25);
}
.btn-outline-primary {
  color: var(--dk-accent);
  border-color: var(--dk-accent);
  border-width: 2px;
}
.btn-outline-primary:hover {
  background-color: #1b6fd6;
  border-color: #1b6fd6;
  color: #fff;
}

/* Header styles */
.navbar.sticky-top {
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.98) !important;
}
.navbar { min-height: 64px; }
.navbar-brand {
  color: var(--dk-primary) !important;
}
.navbar-nav .nav-link {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}
.navbar-nav .nav-link:hover {
  color: var(--dk-primary) !important;
  transform: translateY(-1px);
}

/* Layout skeleton */
main { flex: 1 0 auto; background-color: #f8f9fa; }
footer.footer { background-color: #f8f9fa; }
main > *:last-child { margin-bottom: 0 !important; }

/* Login/auth page overrides */
body.auth-page { background-color: #f8f9fa; }
body.auth-page main { background-color: #f8f9fa; }
body.auth-page footer.footer { background-color: #f8f9fa; }

/* Home-specific styles moved to home.css */

/* Spacing utilities */
.py-lg-6 { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 992px) {
  .py-lg-6 { padding-top: 6rem; padding-bottom: 6rem; }
}

/* Accessibility & contrast tweaks */
.nav-link { color: #334155; }
.nav-link:hover { color: var(--dk-primary); }
.text-muted { color: #64748b !important; }

/* Stronger focus ring for accessibility */
a:focus-visible, .btn:focus-visible, .nav-link:focus-visible, .form-control:focus-visible {
  outline: 3px solid rgba(37,140,251,0.45);
  outline-offset: 2px;
  box-shadow: 0 0 0 .2rem rgba(37,140,251,0.35);
}

/* Login-specific styles moved to account.css */

/* Home-specific styles moved to home.css */

/* Home-specific styles moved to home.css */

/* Home-specific styles moved to home.css */

/* Footer improvements */
footer.footer { border-top: 1px solid #e5e7eb; }
footer.footer .nav-link { color: #334155; }
footer.footer .nav-link:hover { color: var(--dk-accent); }
footer.footer-compact .container-fluid { padding-top: .5rem; padding-bottom: .5rem; }
footer.footer-compact .row { min-height: 64px; }
footer.footer-compact .nav { align-items: center; }
footer.footer-compact .nav-link { padding-top: 0; padding-bottom: 0; line-height: 1.2; }

/* Home-specific styles moved to home.css */

/* UPDATED: Responsive modal width for small screens only */
@media (max-width: 576px) {
  .modal-dialog { max-width: 90% !important; margin: auto; }
}