/* ============================
   SalonBook — Global Styles
   Palette:
   --plum:   #2D1B33
   --blush:  #F5C6D0
   --gold:   #C9A96E
   --cream:  #FAF7F5
   --slate:  #4A4A5A
   --light:  #F0EBF4
============================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --plum:   #2D1B33;
  --blush:  #F5C6D0;
  --gold:   #C9A96E;
  --cream:  #FAF7F5;
  --slate:  #4A4A5A;
  --light:  #F0EBF4;
  --white:  #ffffff;
  --danger: #e74c3c;
  --success:#27ae60;
  --warning:#f39c12;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--slate);
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--plum);
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--plum); }

/* ── NAVBAR ── */
.navbar {
  background: var(--plum) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(45,27,51,.3);
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--blush) !important;
  letter-spacing: .5px;
}

.navbar-brand span { color: var(--gold); }

.navbar-nav .nav-link {
  color: rgba(245,198,208,.85) !important;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .3px;
  padding: .5rem 1rem !important;
  transition: color .2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--gold) !important;
}

.navbar-toggler { border-color: var(--blush); }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28245,198,208,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* ── BUTTONS ── */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #b8904f);
  color: var(--white);
  border: none;
  padding: .7rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .5px;
  transition: all .3s;
  box-shadow: 0 4px 15px rgba(201,169,110,.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,169,110,.5);
  color: var(--white);
}

.btn-plum {
  background: var(--plum);
  color: var(--blush);
  border: none;
  padding: .7rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all .3s;
}

.btn-plum:hover {
  background: #3d2545;
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: .65rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all .3s;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--plum) 0%, #4a2558 60%, #2d1b33 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,169,110,.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,198,208,.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  color: var(--blush);
  font-style: italic;
}

.hero p {
  color: rgba(245,198,208,.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
}

.hero-stat .number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.hero-stat .label {
  font-size: .8rem;
  color: rgba(245,198,208,.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── SECTION STYLES ── */
.section { padding: 5rem 0; }
.section-light { background: var(--cream); }
.section-white { background: var(--white); }
.section-plum { background: var(--plum); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: .5rem;
}
.section-header h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.section-header p { color: #777; max-width: 500px; margin: 0 auto; }

/* Ribbon divider */
.ribbon-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blush));
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ── SERVICE CARDS ── */
.service-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(45,27,51,.08);
  transition: all .3s;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(45,27,51,.15);
}

.service-card .card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--light), var(--blush));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.service-card .card-body { padding: 1.5rem; }
.service-card .service-name { font-size: 1.1rem; margin-bottom: .3rem; }
.service-card .service-price { color: var(--gold); font-weight: 700; font-size: 1.2rem; }
.service-card .service-duration { font-size: .8rem; color: #999; margin-top: .2rem; }

/* ── STYLIST CARDS ── */
.stylist-card {
  text-align: center;
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(45,27,51,.08);
  transition: all .3s;
}

.stylist-card:hover { transform: translateY(-5px); box-shadow: 0 12px 35px rgba(45,27,51,.15); }

.stylist-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), var(--light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  border: 3px solid var(--gold);
}

.stylist-name { font-size: 1.1rem; margin-bottom: .3rem; }
.stylist-spec { font-size: .85rem; color: var(--gold); font-weight: 500; }

/* ── TESTIMONIAL ── */
.testimonial-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(45,27,51,.08);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--blush);
  position: absolute;
  top: .5rem;
  left: 1.5rem;
  line-height: 1;
}

.testimonial-text { padding-top: 1.5rem; font-style: italic; color: var(--slate); margin-bottom: 1rem; }
.testimonial-author { font-weight: 600; color: var(--plum); font-size: .9rem; }
.stars { color: var(--gold); font-size: .9rem; }

/* ── FOOTER ── */
footer {
  background: var(--plum);
  color: rgba(245,198,208,.75);
  padding: 3rem 0 1.5rem;
}

footer h5 {
  color: var(--blush);
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
}

footer a { color: rgba(245,198,208,.7); font-size: .9rem; }
footer a:hover { color: var(--gold); }
footer .footer-bottom { border-top: 1px solid rgba(245,198,208,.15); margin-top: 2rem; padding-top: 1.5rem; font-size: .85rem; }

/* ── AUTH FORMS ── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--plum), #4a2558);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(45,27,51,.4);
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo h2 { font-size: 1.8rem; }
.auth-logo span { color: var(--gold); }
.auth-logo p { color: #999; font-size: .9rem; margin-top: .5rem; }

.form-label { font-weight: 500; color: var(--plum); font-size: .9rem; }

.form-control {
  border: 2px solid #e8e0ec;
  border-radius: 10px;
  padding: .7rem 1rem;
  font-size: .9rem;
  transition: border-color .2s;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,.15);
  outline: none;
}

.form-select {
  border: 2px solid #e8e0ec;
  border-radius: 10px;
  padding: .7rem 1rem;
  font-size: .9rem;
}

.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,.15);
}

/* ── DASHBOARD LAYOUT ── */
.dashboard-wrapper { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  background: var(--plum);
  flex-shrink: 0;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-brand {
  padding: 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(245,198,208,.1);
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--blush);
}

.sidebar-brand span { color: var(--gold); }

.sidebar-user {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(245,198,208,.1);
}

.sidebar-user .user-name { font-weight: 600; color: var(--blush); font-size: .9rem; }
.sidebar-user .user-role { font-size: .75rem; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }

.sidebar-nav { padding: 1rem 0; }

.sidebar-section {
  padding: .5rem 1.5rem .3rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245,198,208,.4);
  margin-top: .5rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem 1.5rem;
  color: rgba(245,198,208,.75);
  font-size: .9rem;
  font-weight: 500;
  transition: all .2s;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--gold);
  background: rgba(201,169,110,.08);
  border-left-color: var(--gold);
}

.sidebar-nav a i { width: 18px; text-align: center; }

.main-content {
  margin-left: 260px;
  flex: 1;
  background: #f6f3f9;
  min-height: 100vh;
}

.topbar {
  background: var(--white);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(45,27,51,.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar h4 { font-size: 1.2rem; margin: 0; color: var(--plum); }
.topbar-actions { display: flex; align-items: center; gap: 1rem; }

.page-content { padding: 2rem; }

/* ── STAT CARDS ── */
.stat-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(45,27,51,.06);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.stat-icon {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-icon.plum { background: rgba(45,27,51,.1); color: var(--plum); }
.stat-icon.gold { background: rgba(201,169,110,.15); color: var(--gold); }
.stat-icon.blush { background: rgba(245,198,208,.4); color: #c06080; }
.stat-icon.green { background: rgba(39,174,96,.12); color: var(--success); }

.stat-info .number { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--plum); line-height: 1; }
.stat-info .label { font-size: .8rem; color: #999; margin-top: .2rem; }

/* ── TABLES ── */
.data-table { background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 15px rgba(45,27,51,.06); }
.data-table .table-header { padding: 1.2rem 1.5rem; border-bottom: 1px solid #f0eaf4; display: flex; justify-content: space-between; align-items: center; }
.data-table .table-header h5 { margin: 0; font-size: 1rem; }

.table { margin: 0; }
.table thead th { background: var(--light); color: var(--plum); font-weight: 600; font-size: .85rem; border: none; padding: .9rem 1rem; }
.table tbody td { padding: .85rem 1rem; font-size: .9rem; vertical-align: middle; border-bottom: 1px solid #f5f0f8; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(240,235,244,.5); }

/* ── STATUS BADGES ── */
.badge-status {
  padding: .35rem .8rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.status-pending   { background: #fff3cd; color: #856404; }
.status-confirmed { background: #d1e7dd; color: #0f5132; }
.status-completed { background: #cff4fc; color: #055160; }
.status-cancelled { background: #f8d7da; color: #842029; }
.status-rescheduled { background: #e2d9f3; color: #432874; }

/* ── BOOKING FORM ── */
.booking-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 25px rgba(45,27,51,.1);
}

.booking-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--plum);
  color: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

.step-label { font-weight: 600; color: var(--plum); }

/* ── CALENDAR BADGE ── */
.appt-calendar {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--plum);
  border-radius: 10px;
  overflow: hidden;
  width: 50px;
}

.appt-calendar .month { background: var(--gold); color: white; font-size: .65rem; font-weight: 700; text-transform: uppercase; padding: 2px 0; width: 100%; text-align: center; }
.appt-calendar .day { color: var(--blush); font-family: 'Playfair Display', serif; font-size: 1.2rem; padding: 4px 0; }

/* ── ALERTS ── */
.alert { border-radius: 10px; border: none; font-size: .9rem; }
.alert-success { background: #d1e7dd; color: #0f5132; }
.alert-danger { background: #f8d7da; color: #842029; }
.alert-warning { background: #fff3cd; color: #856404; }
.alert-info { background: #cff4fc; color: #055160; }

/* ── RATING STARS ── */
.rating-input input[type="radio"] { display: none; }
.rating-input label { font-size: 1.5rem; color: #ddd; cursor: pointer; transition: color .2s; }
.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label { color: var(--gold); }
.rating-input { display: flex; flex-direction: row-reverse; gap: .2rem; }

/* ── GALLERY ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.gallery-item { border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: linear-gradient(135deg, var(--blush), var(--light)); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; cursor: pointer; transition: transform .3s; }
.gallery-item:hover { transform: scale(1.03); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform .3s; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .hero { min-height: 75vh; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
}

/* ── PROMO BANNER ── */
.promo-banner {
  background: linear-gradient(135deg, var(--gold), #b8904f);
  color: white;
  padding: .7rem 1.5rem;
  text-align: center;
  font-size: .9rem;
  font-weight: 500;
}

/* ── NOTIFICATION DOT ── */
.notif-dot {
  width: 8px;
  height: 8px;
  background: var(--blush);
  border-radius: 50%;
  display: inline-block;
  margin-left: .3rem;
}

/* ── CARD PANEL ── */
.panel {
  background: var(--white);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(45,27,51,.06);
  margin-bottom: 1.5rem;
}

.panel-title {
  font-size: 1rem;
  border-bottom: 1px solid var(--light);
  padding-bottom: .8rem;
  margin-bottom: 1.2rem;
}