/* SEGARA Beauty Salon - Global Theme */

:root {
  --brand-primary: #6f42c1; /* elegant purple */
  --brand-secondary: #e83e8c; /* rose accent */
  --brand-dark: #212529;
  --brand-light: #f8f9fa;
  --text-muted: #6c757d;
  --card-shadow: 0 8px 24px rgba(33, 37, 41, 0.08);
}

html, body {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
  color: #212529;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 10px rgba(33, 37, 41, 0.06);
}
.navbar-dark.bg-dark {
  background: linear-gradient(180deg, #1e1f24, #141519) !important;
}
.navbar-brand {
  font-weight: 600;
  letter-spacing: 0.2px;
}
.navbar .nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: color .15s ease, background-color .15s ease;
}
.navbar .nav-link.active,
.navbar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

/* Buttons */
.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-primary:hover { filter: brightness(0.95); }
.btn-outline-primary { color: var(--brand-primary); border-color: var(--brand-primary); }
.btn-outline-primary:hover { background-color: var(--brand-primary); color: #fff; }

/* WhatsApp button */
.btn-whatsapp {
  background-color: #25D366;
  border-color: #25D366;
  color: #fff;
}
.btn-whatsapp:hover { filter: brightness(0.95); color: #fff; }

/* Hero button customization */
.btn-hero {
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
}
.btn-hero.has-image {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  border-color: transparent !important;
}

/* Hero section customization */
.hero-section {
  border-radius: 16px;
  overflow: hidden;
}
.hero-section.full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  border-radius: 0;
}
.hero-section.has-image {
  position: relative;
  color: #fff;
}
.hero-section.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}
.hero-section .hero-inner {
  position: relative;
  z-index: 1;
}
.hero-logo {
  max-height: 80px;
}

/* Cards */
.card { border: none; box-shadow: var(--card-shadow); }
.card-header { background-color: #fff; border-bottom-color: #eee; font-weight: 600; }
.card-title { font-weight: 600; }
.card-subtitle { color: var(--text-muted); }

/* Tables */
.table thead th { border-bottom: 2px solid #e9ecef; font-weight: 600; }
.table tbody tr { transition: background-color .15s ease; }
.table-hover tbody tr:hover { background-color: #fafafa; }

/* Forms */
.form-control, .form-select { border-radius: 8px; }
.form-control:focus, .form-select:focus { box-shadow: 0 0 0 .25rem rgba(111, 66, 193, .15); border-color: var(--brand-primary); }
.form-check-input:focus { box-shadow: 0 0 0 .25rem rgba(111, 66, 193, .15); }

/* Badges */
.badge.bg-primary { background-color: var(--brand-primary) !important; }
.badge.bg-secondary { background-color: var(--brand-secondary) !important; }

/* Alerts */
.alert { border-radius: 10px; }

/* Footer */
footer { border-top: 1px solid #eee; background-color: #fff; }
.footer-map iframe { width: 100%; border: 0; min-height: 240px; border-radius: 12px; box-shadow: var(--card-shadow); }

/* Section titles */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-subtitle { color: var(--text-muted); }

/* Admin sidebar */
.list-group { border-radius: 10px; box-shadow: var(--card-shadow); }
.list-group-item-action { border: none; }
.list-group-item-action.active { background-color: var(--brand-primary); border-color: var(--brand-primary); }
.admin-sidebar { position: sticky; top: 5rem; }

/* Booking page tweaks */
.booking-form .form-group { margin-bottom: 1rem; }
.booking-form .form-check { margin-bottom: .5rem; }
.booking-summary { background-color: var(--brand-light); border-radius: 12px; padding: 1rem; }
/* Booking page enhancements */
.booking-steps { display: flex; flex-wrap: wrap; gap: .5rem; }
.step-chip { display: inline-flex; align-items: center; padding: .25rem .6rem; border-radius: 999px; border: 1px solid #e9ecef; background-color: #fff; color: var(--text-muted); font-weight: 600; }
.step-chip .step-index { width: 24px; height: 24px; border-radius: 50%; background-color: var(--brand-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; margin-right: .5rem; }
.step-chip.active { border-color: var(--brand-primary); background-color: #f4effa; color: var(--brand-dark); }
/* Admin bookings edit panel highlight */
.admin-edit-card .card-header { background-color: #fff3cd; border-bottom-color: #ffeeba; }
.admin-edit-card .card-body { background-color: #fffdf5; }

/* Busy booking slots appear red and disabled */
.time-option-busy { color: #dc3545; }

/* Dashboard metrics cards */
.metric-card .card-body { display: flex; align-items: center; justify-content: space-between; }
.metric-card .display-6 { font-weight: 700; }
.metric-card .icon { width: 36px; height: 36px; border-radius: 10px; background-color: rgba(111,66,193,.12); display: inline-flex; align-items: center; justify-content: center; color: var(--brand-primary); }

/* Utilities */
.shadow-soft { box-shadow: var(--card-shadow) !important; }
.rounded-12 { border-radius: 12px !important; }

/* Gallery */
.gallery-card img { height: 220px; object-fit: cover; }

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .admin-sidebar { position: static; top: auto; }
}

/* Services page enhancements */
.services-filter .btn { border-radius: 999px; }
.service-card { border: none; box-shadow: var(--card-shadow); border-radius: 12px; transition: transform .15s ease, box-shadow .15s ease; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(33,37,41,0.12); }
.service-meta { font-weight: 600; }
.services-category .card-header { background: linear-gradient(180deg, #1e1f24, #141519) !important; color: #fff; border-radius: 12px 12px 0 0; }
.services-category .card { border-radius: 12px; overflow: hidden; }

.hero-section {
  position: relative;
  overflow: hidden;
}
.hero-section.full { min-height: 82vh; }
.hero-section.has-image { color: #fff; }
.hero-section .hero-inner { position: relative; z-index: 2; }

/* Media background support for video/slider */
.hero-section.has-media .hero-media,
.hero-section.has-image .hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-section .hero-video,
.hero-section .hero-iframe,
.hero-section .carousel {
  width: 100%;
  height: 100%;
}
.hero-section .hero-video { object-fit: cover; }
.hero-section .carousel-item img { width: 100%; height: 100%; object-fit: cover; }

/* Mobile: prevent head cropping in slider */
@media (max-width: 575.98px) {
  .hero-section .carousel-item img { object-position: top; }
  .hero-section .hero-video { object-position: top; }
}

.btn-hero.has-image {
  background-blend-mode: multiply;
}
.hero-logo {
  max-height: 80px;
}

/* Cards */
.card { border: none; box-shadow: var(--card-shadow); }
.card-header { background-color: #fff; border-bottom-color: #eee; font-weight: 600; }
.card-title { font-weight: 600; }
.card-subtitle { color: var(--text-muted); }

/* Tables */
.table thead th { border-bottom: 2px solid #e9ecef; font-weight: 600; }
.table tbody tr { transition: background-color .15s ease; }
.table-hover tbody tr:hover { background-color: #fafafa; }

/* Forms */
.form-control, .form-select { border-radius: 8px; }
.form-control:focus, .form-select:focus { box-shadow: 0 0 0 .25rem rgba(111, 66, 193, .15); border-color: var(--brand-primary); }
.form-check-input:focus { box-shadow: 0 0 0 .25rem rgba(111, 66, 193, .15); }

/* Badges */
.badge.bg-primary { background-color: var(--brand-primary) !important; }
.badge.bg-secondary { background-color: var(--brand-secondary) !important; }

/* Alerts */
.alert { border-radius: 10px; }

/* Footer */
footer { border-top: 1px solid #eee; background-color: #fff; }
.footer-map iframe { width: 100%; border: 0; min-height: 240px; border-radius: 12px; box-shadow: var(--card-shadow); }

/* Section titles */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-subtitle { color: var(--text-muted); }

/* Admin sidebar */
.list-group { border-radius: 10px; box-shadow: var(--card-shadow); }
.list-group-item-action { border: none; }
.list-group-item-action.active { background-color: var(--brand-primary); border-color: var(--brand-primary); }
.admin-sidebar { position: sticky; top: 5rem; }

/* Booking page tweaks */
.booking-form .form-group { margin-bottom: 1rem; }
.booking-form .form-check { margin-bottom: .5rem; }
.booking-summary { background-color: var(--brand-light); border-radius: 12px; padding: 1rem; }
/* Booking page enhancements */
.booking-steps { display: flex; flex-wrap: wrap; gap: .5rem; }
.step-chip { display: inline-flex; align-items: center; padding: .25rem .6rem; border-radius: 999px; border: 1px solid #e9ecef; background-color: #fff; color: var(--text-muted); font-weight: 600; }
.step-chip .step-index { width: 24px; height: 24px; border-radius: 50%; background-color: var(--brand-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; margin-right: .5rem; }
.step-chip.active { border-color: var(--brand-primary); background-color: #f4effa; color: var(--brand-dark); }
/* Admin bookings edit panel highlight */
.admin-edit-card .card-header { background-color: #fff3cd; border-bottom-color: #ffeeba; }
.admin-edit-card .card-body { background-color: #fffdf5; }

/* Busy booking slots appear red and disabled */
.time-option-busy { color: #dc3545; }

/* Dashboard metrics cards */
.metric-card .card-body { display: flex; align-items: center; justify-content: space-between; }
.metric-card .display-6 { font-weight: 700; }
.metric-card .icon { width: 36px; height: 36px; border-radius: 10px; background-color: rgba(111,66,193,.12); display: inline-flex; align-items: center; justify-content: center; color: var(--brand-primary); }

/* Utilities */
.shadow-soft { box-shadow: var(--card-shadow) !important; }
.rounded-12 { border-radius: 12px !important; }

/* Gallery */
.gallery-card img { height: 220px; object-fit: cover; }

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .admin-sidebar { position: static; top: auto; }
}

/* Services page enhancements */
.services-filter .btn { border-radius: 999px; }
.service-card { border: none; box-shadow: var(--card-shadow); border-radius: 12px; transition: transform .15s ease, box-shadow .15s ease; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(33,37,41,0.12); }
.service-meta { font-weight: 600; }
.services-category .card-header { background: linear-gradient(180deg, #1e1f24, #141519) !important; color: #fff; border-radius: 12px 12px 0 0; }
.services-category .card { border-radius: 12px; overflow: hidden; }

/* Media Lightbox sizing */
.modal-media .modal-dialog {
  max-width: min(92vw, 840px);
  margin: 0.5rem auto;
}
.modal-media .modal-body { padding: 0.75rem; }
.modal-media .media-frame { position: relative; width: 100%; max-width: 88vw; max-height: calc(100vh - 8rem); margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.modal-media .media-frame img,
.modal-media .media-frame video,
.modal-media .media-frame iframe { max-width: 100%; max-height: calc(100vh - 8rem); width: auto; height: auto; object-fit: contain; border-radius: 12px; background: #000; }
/* Center play/pause overlay for videos */
.modal-media .media-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 5; transition: opacity .15s ease; }
.modal-media .media-overlay.hidden { opacity: 0; pointer-events: none; }
.modal-media .media-overlay .btn-play-pause { width: 72px; height: 72px; border-radius: 999px; background: rgba(17,17,17,0.7); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 10px 24px rgba(0,0,0,0.22); border: 0; }
.modal-media .media-overlay .btn-play-pause:hover { background: rgba(17,17,17,0.85); }
/* Admin processing overlay (MP4 upload) */
.processing-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); backdrop-filter: blur(1px); z-index: 2000; display: none; align-items: center; justify-content: center; }
.processing-overlay .processing-box { padding: 1rem 1.25rem; border-radius: 12px; background: rgba(17,17,17,0.55); color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,0.35); }

/* Gallery overlay icons and caption bar */
.gallery-card { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 0; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; border-radius: 0; }
/* If there is any direct child .media-icon, position it bottom-left (legacy) */
.gallery-card > .media-icon { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(17,17,17,0.65); color: #fff; font-size: 1.25rem; box-shadow: 0 10px 24px rgba(0,0,0,0.22); text-decoration: none; }
.gallery-card > .media-icon:hover { background: rgba(17,17,17,0.85); color: #fff; }
/* Bottom caption overlay with icon left and text right */
.gallery-card .card-body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55)); color: #fff; }
.gallery-card .card-body .media-icon { position: static; width: 28px; height: 28px; border-radius: 999px; background: rgba(17,17,17,0.65); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; color: #fff; }
.gallery-card .card-body .caption-text { overflow: hidden; }
.gallery-card .card-body .caption-text .card-title { color: #fff; margin: 0; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-card .card-body .caption-text p { color: #f0f0f0; margin: 0; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-card .media-icon:hover { background: rgba(17,17,17,0.85); color: #fff; }

/* Hero media poster fallback */
.hero-section.has-media .hero-media { background-size: cover; background-position: center; }
/* Hero play icon overlay */
.hero-section .media-icon {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(17,17,17,0.7);
  color: #fff;
  z-index: 3;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  cursor: pointer;
  text-decoration: none;
}
.hero-section .media-icon:hover { background: rgba(17,17,17,0.85); color: #fff; }
.hero-section .media-icon i { font-size: 1.8rem; }
.our-work-section {
  max-width: 1100px;
  margin: 0 auto;
  margin-bottom: 2rem;
}
@media (max-width: 575.98px) {
  .our-work-section { padding-left: .75rem; padding-right: .75rem; }
}
.hero-section .hero-video { object-fit: cover; }
.hero-section .carousel-item img { width: 100%; height: 100%; object-fit: cover; }

/* Mobile: prevent head cropping in slider */
@media (max-width: 575.98px) {
  .hero-section .carousel-item img { object-position: top; }
  .hero-section .hero-video { object-position: top; }
}

.btn-hero.has-image {
  background-blend-mode: multiply;
}
.hero-logo {
  max-height: 80px;
}

/* Cards */
.card { border: none; box-shadow: var(--card-shadow); }
.card-header { background-color: #fff; border-bottom-color: #eee; font-weight: 600; }
.card-title { font-weight: 600; }
.card-subtitle { color: var(--text-muted); }

/* Tables */
.table thead th { border-bottom: 2px solid #e9ecef; font-weight: 600; }
.table tbody tr { transition: background-color .15s ease; }
.table-hover tbody tr:hover { background-color: #fafafa; }

/* Forms */
.form-control, .form-select { border-radius: 8px; }
.form-control:focus, .form-select:focus { box-shadow: 0 0 0 .25rem rgba(111, 66, 193, .15); border-color: var(--brand-primary); }
.form-check-input:focus { box-shadow: 0 0 0 .25rem rgba(111, 66, 193, .15); }

/* Badges */
.badge.bg-primary { background-color: var(--brand-primary) !important; }
.badge.bg-secondary { background-color: var(--brand-secondary) !important; }

/* Alerts */
.alert { border-radius: 10px; }

/* Footer */
footer { border-top: 1px solid #eee; background-color: #fff; }
.footer-map iframe { width: 100%; border: 0; min-height: 240px; border-radius: 12px; box-shadow: var(--card-shadow); }

/* Section titles */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-subtitle { color: var(--text-muted); }

/* Admin sidebar */
.list-group { border-radius: 10px; box-shadow: var(--card-shadow); }
.list-group-item-action { border: none; }
.list-group-item-action.active { background-color: var(--brand-primary); border-color: var(--brand-primary); }
.admin-sidebar { position: sticky; top: 5rem; }

/* Booking page tweaks */
.booking-form .form-group { margin-bottom: 1rem; }
.booking-form .form-check { margin-bottom: .5rem; }
.booking-summary { background-color: var(--brand-light); border-radius: 12px; padding: 1rem; }
/* Booking page enhancements */
.booking-steps { display: flex; flex-wrap: wrap; gap: .5rem; }
.step-chip { display: inline-flex; align-items: center; padding: .25rem .6rem; border-radius: 999px; border: 1px solid #e9ecef; background-color: #fff; color: var(--text-muted); font-weight: 600; }
.step-chip .step-index { width: 24px; height: 24px; border-radius: 50%; background-color: var(--brand-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; margin-right: .5rem; }
.step-chip.active { border-color: var(--brand-primary); background-color: #f4effa; color: var(--brand-dark); }
/* Admin bookings edit panel highlight */
.admin-edit-card .card-header { background-color: #fff3cd; border-bottom-color: #ffeeba; }
.admin-edit-card .card-body { background-color: #fffdf5; }

/* Busy booking slots appear red and disabled */
.time-option-busy { color: #dc3545; }

/* Dashboard metrics cards */
.metric-card .card-body { display: flex; align-items: center; justify-content: space-between; }
.metric-card .display-6 { font-weight: 700; }
.metric-card .icon { width: 36px; height: 36px; border-radius: 10px; background-color: rgba(111,66,193,.12); display: inline-flex; align-items: center; justify-content: center; color: var(--brand-primary); }

/* Utilities */
.shadow-soft { box-shadow: var(--card-shadow) !important; }
.rounded-12 { border-radius: 12px !important; }

/* Gallery */
.gallery-card img { height: 220px; object-fit: cover; }

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .admin-sidebar { position: static; top: auto; }
}

/* Services page enhancements */
.services-filter .btn { border-radius: 999px; }
.service-card { border: none; box-shadow: var(--card-shadow); border-radius: 12px; transition: transform .15s ease, box-shadow .15s ease; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(33,37,41,0.12); }
.service-meta { font-weight: 600; }
.services-category .card-header { background: linear-gradient(180deg, #1e1f24, #141519) !important; color: #fff; border-radius: 12px 12px 0 0; }
.services-category .card { border-radius: 12px; overflow: hidden; }

/* Media Lightbox sizing */
.modal-media .modal-dialog {
  max-width: min(92vw, 840px);
  margin: 0.5rem auto;
}
.modal-media .modal-body { padding: 0.75rem; }
.modal-media .media-frame { width: 100%; max-width: 88vw; max-height: calc(100vh - 8rem); margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.modal-media .media-frame img,
.modal-media .media-frame video,
.modal-media .media-frame iframe { max-width: 100%; max-height: calc(100vh - 8rem); width: auto; height: auto; object-fit: contain; border-radius: 12px; background: #000; }

/* Gallery overlay icons and caption bar */
.gallery-card { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 0; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; border-radius: 0; }
/* If there is any direct child .media-icon, position it bottom-left (legacy) */
.gallery-card > .media-icon { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(17,17,17,0.65); color: #fff; font-size: 1.25rem; box-shadow: 0 10px 24px rgba(0,0,0,0.22); text-decoration: none; }
.gallery-card > .media-icon:hover { background: rgba(17,17,17,0.85); color: #fff; }
/* Bottom caption overlay with icon left and text right */
.gallery-card .card-body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55)); color: #fff; }
.gallery-card .card-body .media-icon { position: static; width: 28px; height: 28px; border-radius: 999px; background: rgba(17,17,17,0.65); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; color: #fff; }
.gallery-card .card-body .caption-text { overflow: hidden; }
.gallery-card .card-body .caption-text .card-title { color: #fff; margin: 0; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-card .card-body .caption-text p { color: #f0f0f0; margin: 0; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-card .media-icon:hover { background: rgba(17,17,17,0.85); color: #fff; }

/* Hero media poster fallback */
.hero-section.has-media .hero-media { background-size: cover; background-position: center; }