* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: #f5f7fb;
  color: #172033;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}


.site-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid #dfe5ef;
  position: sticky;
  top: 0;
  z-index: 20;
}

.navbar {
  max-width: 1180px;
  margin: auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo span {
  color: #1d4ed8;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.nav-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  color: #6c7485;
  font-weight: 600;
}

.nav-links a.active,
.nav-links a:hover {
  color: #1d4ed8;
  background: #e8efff;
}

/* user area kısmı  */
.user-area {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#loggedUserName {
  font-weight: 700;
  color: #1d4ed8;
  font-size: 14px;
}

/*  butonlar  */
.btn,
.btn-small {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  border-radius: 12px;
  transition: 0.2s;
}

.btn {
  padding: 12px 18px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-small {
  padding: 8px 10px;
  font-size: 13px;
  background: #e8efff;
  color: #1d4ed8;
}

.btn:hover,
.btn-small:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #1d4ed8;
  color: white;
}

.btn-primary:hover {
  background: #163fae;
}

.btn-outline {
  background: transparent;
  color: #1d4ed8;
  border: 1px solid #dfe5ef;
}

.btn-soft {
  background: #e8efff;
  color: #1d4ed8;
}

.danger {
  color: #dc2626;
  background: #fee2e2;
}

/*  Hero kısmı  */
.hero {
  max-width: 1180px;
  margin: 42px auto;
  padding: 38px 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 36px;
}

.eyebrow {
  color: #1d4ed8;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1.2px;
}

.hero h1,
.page-title h1 {
  font-size: 56px;
  line-height: 0.95;
  margin: 12px 0 18px;
  letter-spacing: -3px;
}

.hero-text,
.page-title p,
.section-heading p {
  color: #6c7485;
  line-height: 1.7;
  max-width: 620px;
}

.hero-actions,
.form-actions,
.card-actions,
.toolbar,
.panel-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-card {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(23, 32, 51, 0.10);
  min-height: 420px;
  background: #dbeafe;
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.floating-box {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: rgba(255, 255, 255, 0.92);
  padding: 18px 22px;
  border-radius: 22px;
  box-shadow: 0 20px 45px rgba(23, 32, 51, 0.10);
}

.floating-box strong {
  display: block;
  font-size: 34px;
  color: #1d4ed8;
}

.floating-box span {
  color: #6c7485;
  font-weight: 600;
}

/*  layout  */
.stats,
.section,
.page {
  max-width: 1180px;
  margin: auto;
  padding: 24px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stats div,
.panel,
.car-card {
  background: #ffffff;
  border: 1px solid #dfe5ef;
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.06);
}

.stats div {
  padding: 24px;
  border-radius: 24px;
}

.stats strong {
  display: block;
  font-size: 26px;
}

.stats span {
  color: #6c7485;
}

/*  section başlıkları  */
.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: 38px;
  margin: 0;
  letter-spacing: -1px;
}

/*  araba kartları */
.car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.car-grid-large {
  grid-template-columns: repeat(2, 1fr);
}

.car-card {
  overflow: hidden;
  border-radius: 24px;
  transition: 0.2s;
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(23, 32, 51, 0.10);
}

.car-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  background: #e5e7eb;
}

.car-body {
  padding: 18px;
}

.car-body h3 {
  margin: 12px 0 6px;
  font-size: 22px;
}

.car-body p {
  color: #6c7485;
  margin: 0 0 12px;
}

/* araba durumu  */
.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.available {
  background: #dcfce7;
  color: #16a34a;
}

.rented {
  background: #dbeafe;
  color: #1d4ed8;
}

.maintenance {
  background: #fef3c7;
  color: #d97706;
}

/*  panel ve forms  */
.page-title {
  padding-top: 28px;
}

.panel {
  border-radius: 24px;
  padding: 22px;
  margin-bottom: 24px;
}

.toolbar input,
.toolbar select,
.form-card input,
.form-card select {
  width: 100%;
  border: 1px solid #dfe5ef;
  border-radius: 12px;
  padding: 13px 14px;
  font-family: inherit;
  background: #fff;
  outline: none;
}

.toolbar input {
  flex: 1 1 260px;
}

.toolbar select {
  flex: 0 1 200px;
}

.layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}

.form-card {
  position: sticky;
  top: 92px;
}

.form-card h2,
.rental-panel h2 {
  margin-top: 0;
}

.form-card label {
  display: block;
  color: #6c7485;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}

.form-card label input,
.form-card label select {
  margin-top: 7px;
}

/* Field error mesajı*/
.field-error {
  display: block;
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 600;
}

/*  Detail yan Panel  */
.detail-panel {
  position: fixed;
  right: -380px;
  top: 0;
  width: 360px;
  height: 100vh;
  background: #fff;
  box-shadow: 0 20px 45px rgba(23, 32, 51, 0.10);
  z-index: 30;
  padding: 28px;
  transition: 0.25s;
}

.detail-panel.open {
  right: 0;
}

.close-btn {
  float: right;
  border: none;
  background: #e8efff;
  color: #1d4ed8;
  font-size: 24px;
  border-radius: 10px;
  cursor: pointer;
}

/*  Rental List  */
.rentals-layout {
  grid-template-columns: 380px 1fr;
}

.rental-list {
  display: grid;
  gap: 14px;
}

.rental-item {
  border: 1px solid #dfe5ef;
  border-radius: 18px;
  padding: 16px;
  background: #fbfdff;
}

.rental-item h3 {
  margin: 0 0 6px;
}

.rental-item p {
  color: #6c7485;
  margin: 5px 0;
}

.price-preview {
  padding: 14px;
  background: #e8efff;
  color: #1d4ed8;
  font-weight: 800;
  border-radius: 14px;
  margin: 12px 0;
}

.empty-text {
  color: #6c7485;
}




.form-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4f7fb;
  color: #536071;
  font-size: 0.9rem;
}

/* login ve register */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f5f7fb;
}

.auth-wrapper {
  width: 100%;
  max-width: 440px;
  padding: 20px;
}

.auth-card {
  background: #ffffff;
  border: 1px solid #dfe5ef;
  border-radius: 28px;
  padding: 38px 34px;
  box-shadow: 0 20px 45px rgba(23, 32, 51, 0.10);
}

.auth-logo {
  text-align: center;
  margin-bottom: 24px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
}

.auth-logo span {
  color: #1d4ed8;
}

.auth-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -1px;
}

.auth-sub {
  color: #6c7485;
  margin: 0 0 24px;
}

.auth-footer-text {
  text-align: center;
  color: #6c7485;
  margin-top: 20px;
  font-size: 14px;
}

.auth-footer-text a {
  color: #1d4ed8;
  font-weight: 700;
}

.demo-hint {
  margin-top: 16px;
  padding: 10px 14px;
  background: #f0f4ff;
  border-radius: 10px;
  font-size: 13px;
  color: #6c7485;
  text-align: center;
}

/*  Auth kısmı  */
.field {
  margin-bottom: 16px;
}

.lbl {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #6c7485;
  margin-bottom: 6px;
}

.inp {
  width: 100%;
  border: 1.5px solid #dfe5ef;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.inp:focus {
  border-color: #1d4ed8;
}

.inp.invalid {
  border-color: #dc2626;
}

.err-text {
  display: none;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  margin-top: 5px;
}

.inp.invalid~.err-text {
  display: block;
}

/* Error alert box */
.msg-err {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}

.msg-err.show {
  display: flex;
}

/* Success alert box */
.msg-ok {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}

.msg-ok.show {
  display: flex;
}

/*  submit button */
.btn-submit {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 13px;
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-submit:hover {
  background: #163fae;
  transform: translateY(-2px);
}

/*  Hamburger */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  order: 3;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #172033;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobil */
@media (max-width: 900px) {

  .hero,
  .layout,
  .rentals-layout {
    grid-template-columns: 1fr;
  }

  .form-card {
    position: static;
  }

  .car-grid,
  .car-grid-large,
  .stats {
    grid-template-columns: 1fr;
  }

  .navbar {
    flex-wrap: wrap;
  }

  .user-area {
    width: 100%;
    justify-content: flex-end;
  }

  .hamburger-btn {
    display: flex;
  }


  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #dfe5ef;
    border-radius: 16px;
    padding: 8px 0;
    order: 4;
  }


  .nav-links.nav-open {
    display: flex;
  }

  .nav-links a {
    border-radius: 0;
    border-bottom: 1px solid #dfe5ef;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }
}

@media (max-width: 560px) {
  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero h1,
  .page-title h1 {
    font-size: 40px;
  }

  .detail-panel {
    width: 100%;
    right: -100%;
  }

  .auth-card {
    padding: 26px 20px;
  }
}