/* ---------- GLOBAL ---------- */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
}

.container {
/*  max-width: 960px ;*/
/*  margin: 0 auto; */
/*  padding: 0 16px; */
  
  
 .container {
  width: 90%;          /* << main column is 90% of the page */
  max-width: 960px;    /* but never larger than 960px */
  margin: 0 auto;      /* center horizontally */
  padding: 0 16px;
}
 
  
  
  
}

/* ---------- HEADER / TOPBAR ---------- */

.topbar {
  position: fixed;          /* stays on top */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #111;         /* solid dark */
  color: #fff;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;  /* logo left, menu right on ONE line */
  padding: 10px 16px;
}

/* small round logo */
.logo img {
  height: 56px;
  width: auto;
  border-radius: 50%;
  display: block;
}

/* nav (desktop) */
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.nav a:hover {
  text-decoration: underline;
}

/* header button */
.btn-header-primary {
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #111 !important;
  font-weight: 600;
}

/* burger (mobile only) */
.menu-toggle {
  display: none;            /* hidden on desktop */
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
}

/* main content starts under fixed header */
.page-main {
  padding-top: 80px;
}

/* ---------- HERO (TITLE + SEARCH + CATS) ---------- */

.hero-banner {
  background: #f8f8f8;
  color: #000;
  padding: 20px 0 10px;
}

.hero-main {
  max-width: 960px;
  margin: 0 auto;
}

.hero-title {
  margin: 0 0 8px;
  font-size: 28px;
}

.hero-subtitle {
  margin: 0 0 12px;
  font-size: 14px;
}

/* search bar */
.hero-search {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.hero-search input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #fff;
}

.hero-search button {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: #111;
  color: #fff;
  cursor: pointer;
}

/* categories row */
.hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.hero-cat {
  border: none;
  background: #111;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

/* ---------- SALON CARDS ---------- */

.salon-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
  border: 1px solid #ddd;
}

.salon-card h3 {
  margin-top: 0;
}

/* ---------- FOOTER ---------- */

.site-footer {
  background: #111;
  color: #f5f5f5;
  margin-top: 40px;
  padding: 20px 0 16px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  font-size: 14px;
}

.footer-left {
  max-width: 260px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: #f5f5f5;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 16px;
  padding-top: 8px;
  font-size: 12px;
  text-align: center;
}

/* ---------- RESPONSIVE (MOBILE) ---------- */

@media (max-width: 768px) {

  /* show burger, hide nav initially */
  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 60px;
    right: 16px;
    background: #111;
    border-radius: 8px;
    padding: 10px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    display: none;
  }

  .nav.nav--open {
    display: flex;
  }

  .btn-header-primary {
    width: 100%;
    text-align: left;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .hero-search {
    flex-direction: column;
  }

  .hero-cats {
    flex-wrap: nowrap;
    overflow-x: auto;          /* scroll left/right */
    -webkit-overflow-scrolling: touch;
  }

  .hero-cat {
    flex: 0 0 auto;
    font-size: 12px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}









/* ==== 800salons HEADER FIX (OVERRIDES) ==== */

.topbar {
  position: fixed;          /* stick on top */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #111;
  color: #fff;
}

/* force one single line: logo left, nav right */
.topbar .container.topbar-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

/* logo image */
.topbar .logo img {
  height: 56px;
  width: auto;
  border-radius: 50%;
  display: block;
}

/* nav on desktop */
.topbar .nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.topbar .nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.topbar .nav a:hover {
  text-decoration: underline;
}

/* list-business button */
.topbar .btn-header-primary {
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  color: #111 !important;
  font-weight: 600;
}

/* burger: hidden on desktop by default */
.topbar .menu-toggle {
  display: none;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* main content offset for fixed header */
.page-main {
  padding-top: 80px;
}

/* ---- MOBILE HEADER ---- */
@media (max-width: 768px) {

  /* show burger, hide nav by default */
  .topbar .menu-toggle {
    display: block;
  }

  .topbar .nav {
    position: absolute;
    top: 60px;
    right: 16px;
    background: #111;
    border-radius: 8px;
    padding: 10px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    display: none;
  }

  .topbar .nav.nav--open {
    display: flex;
  }

  .topbar .btn-header-primary {
    width: 100%;
    text-align: left;
  }
}

/*  Profile */
/* ===== profile.php ===== */

.profile-page h1 {
  margin-top: 0;
  margin-bottom: 20px;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-section {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px 18px;
  background: #fff;
}

.profile-section legend {
  font-weight: bold;
  padding: 0 8px;
}

.form-row {
  margin-bottom: 12px;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-row small {
  display: block;
  color: #666;
  font-size: 12px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"] {
  width: 100%;
  padding: 7px 9px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.form-row-2col,
.form-row-3col {
  display: grid;
  gap: 10px 16px;
}

.form-row-2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row-3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.readonly {
  background: #f3f3f3;
}

.inline-options {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.inline-options span {
  font-weight: 600;
}

.security-word {
  display: flex;
  gap: 6px;
}

.security-word input {
  width: 40px;
  text-align: center;
  text-transform: uppercase;
}

.rwg-note {
  font-size: 13px;
  line-height: 1.4;
}

.btn-secondary {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #111;
  color: #111;
  text-decoration: none;
  font-size: 14px;
}

.btn-secondary:hover {
  background: #111;
  color: #fff;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .form-row-2col,
  .form-row-3col {
    grid-template-columns: 1fr;
  }

  .profile-section {
    padding: 14px;
  }
}

/* dashbd-*/
.profile-section {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  border: 1px solid #ddd;
}

.profile-section h2 {
  margin-top: 0;
}

.form-row-3 {
  display: flex;
  gap: 12px;
}

.form-row-3 > div {
  flex: 1;
}

.small-note {
  font-size: 12px;
  color: #666;
}

/*  additi dash  */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.dash-card {
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  color: #111;
  border: 1px solid #ddd;
  transition: box-shadow 0.15s, transform 0.15s;
}

.dash-card h3 {
  margin-top: 0;
}

.dash-card:hover {
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.dash-card-danger {
  border-color: #c0392b;
}
/* RWG*/
/* ===== DASHBOARD ===== */

.dash-salon-name {
  color: #555;
}

.dash-salon-status {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 10px 12px;
  margin: 12px 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  font-size: 14px;
}

.dash-salon-status a {
  text-decoration: none;
  color: #0066cc;
}

.dash-salon-status a:hover {
  text-decoration: underline;
}

.dash-rwg-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-on {
  background: #0f9d58;
  color: #fff;
}

.badge-off {
  background: #ccc;
  color: #333;
}

/* Grid cards (links to other pages) */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.dash-card {
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  color: #111;
  border: 1px solid #ddd;
  transition: box-shadow 0.15s, transform 0.15s;
}

.dash-card h3 {
  margin-top: 0;
}

.dash-card:hover {
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.dash-card-danger {
  border-color: #c0392b;
}

@media (max-width: 768px) {
  .dash-salon-status {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* booking */

.btn-secondary {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #111;
  color: #111;
  text-decoration: none;
  font-size: 14px;
}

.btn-secondary:hover {
  background: #111;
  color: #fff;
}

/* Appointment status form inside table */

.appt-status-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.appt-status-form select {
  font-size: 12px;
  padding: 3px 6px;
}

.appt-status-form button {
  padding: 3px 7px;
  font-size: 12px;
}

/* Status badge colors */

.badge-cancelled {
  background: #c0392b;
  color: #fff;
}

.badge-completed {
  background: #2980b9;
  color: #fff;
}
