/* =========================
   HEADER BASE
   ========================= */
.index-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: .75rem 1rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* =========================
   LOGO
   ========================= */
.header-left {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.1rem;
}

.site-logo {
  font-size: 1.4rem;
}

.site-title {
  color: #0f172a;
}

/* =========================
   ACTION BUTTONS (DESKTOP)
   ========================= */
.header-actions {
  display: flex;
  gap: .5rem;
}

.header-btn {
  padding: .45rem .9rem;
  border-radius: 8px;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
}

.header-btn:hover {
  background: #e0f2fe;
  border-color: #0ea5e9;
}

.header-btn.danger {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}

.header-btn.danger:hover {
  background: #fecaca;
}

.header-btn.outline {
  background: transparent;
}

.header-btn.primary,
.mobile-btn.primary {
  background: #0ea5e9;
  color: white;
  border-radius: 8px;
  padding: 6px 14px;
  text-decoration: none;
}

.header-btn.primary:hover,
.mobile-btn.primary:hover {
  background: #0284c7;
}


/* =========================
   MOBILE MENU TOGGLE
   ========================= */
.menu-toggle {
  display: none;
  font-size: 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* =========================
   MOBILE MENU
   ========================= */
.mobile-menu {
  display: none;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  padding: .75rem 1rem;

  flex-direction: column;
  gap: .5rem;
}

.mobile-menu.show {
  display: flex;
}

.mobile-btn {
  padding: .6rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: #0f172a;
  font-weight: 600;
  text-align: center;
}

.mobile-btn.danger {
  background: #fee2e2;
  color: #991b1b;
}

.mobile-btn.outline {
  background: transparent;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}
