:root {
  --primary:#1d4ed8;
  --dark:#0f172a;
  --muted:#64748b;
  --soft:#f8fafc;
  --border:#e2e8f0;
}
*{box-sizing:border-box}
body{
  background:radial-gradient(circle at top left,rgba(29,78,216,.10),transparent 30%),#f8fafc;
  color:var(--dark);
  font-family:"Segoe UI",Arial,sans-serif;
}
a{text-decoration:none}
.navbar{background:rgba(255,255,255,.9)!important;backdrop-filter:blur(16px)}
.hero-section{
  min-height:100vh;padding-top:110px;color:white;
  background:linear-gradient(135deg,rgba(15,23,42,.92),rgba(29,78,216,.78)),url("https://images.unsplash.com/photo-1608231387042-66d1773070a5?auto=format&fit=crop&w=1600&q=80");
  background-size:cover;background-position:center;
}
.card,.service-card{
  background:rgba(255,255,255,.95);border:1px solid var(--border);
  border-radius:26px;box-shadow:0 20px 55px rgba(15,23,42,.08);overflow:hidden
}
.service-card{transition:.25s}
.service-card:hover{transform:translateY(-6px)}
.btn{border-radius:14px;font-weight:700;padding:10px 18px}
.btn-primary{background:linear-gradient(135deg,#1d4ed8,#2563eb);border:0}
.form-control,.form-select{border-radius:14px;padding:11px;border:1px solid var(--border)}
.auth-page{
  min-height:100vh;display:flex;align-items:center;
  background:linear-gradient(135deg,rgba(15,23,42,.88),rgba(29,78,216,.80)),url("https://images.unsplash.com/photo-1511556532299-8f662fc26c06?auto=format&fit=crop&w=1400&q=80");
  background-size:cover;background-position:center;
}
.auth-card{max-width:460px;background:rgba(255,255,255,.95);padding:34px;border-radius:28px;box-shadow:0 28px 80px rgba(0,0,0,.22)}
.sidebar{
  position:fixed;left:-280px;top:0;width:280px;height:100%;z-index:1000;
  background:linear-gradient(180deg,#0f172a,#1d4ed8);transition:.3s;padding-top:12px
}
.sidebar.active{left:0}
.sidebar a{display:block;color:white;padding:13px 14px;margin:6px 18px;border-radius:14px;font-weight:700}
.sidebar a:hover{background:rgba(255,255,255,.14)}
.admin-sidebar{background:linear-gradient(180deg,#111827,#020617)}
.toggle-btn{position:fixed;top:18px;left:18px;z-index:1200;border:0;background:#1d4ed8;color:white;padding:11px 15px;border-radius:15px;transition:.3s}
.content{
  padding-top:70px;
  transition:margin-left .3s ease,width .3s ease;
  width:100%;
  min-height:100vh;
}
body.sidebar-open .content{
  margin-left:280px;
  width:calc(100% - 280px);
  transform:none;
}
body.sidebar-open .toggle-btn{
  left:298px;
  transform:none;
}
.service-photo-box{height:230px;background:#eef4ff;border:1px dashed #93c5fd;border-radius:22px;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:18px}
.service-photo-box img{width:100%;height:100%;object-fit:cover}
.service-photo-placeholder{text-align:center;color:#64748b;padding:20px}
.price-pill{display:inline-block;background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:8px 13px;font-weight:900}
.customer-hero{border-radius:32px;padding:42px;margin-bottom:30px;color:white;background:linear-gradient(135deg,rgba(29,78,216,.95),rgba(15,23,42,.96)),url("https://images.unsplash.com/photo-1542291026-7eec264c27ff?auto=format&fit=crop&w=1600&q=80");background-size:cover}
.section-badge{display:inline-block;background:rgba(29,78,216,.10);color:#1d4ed8;padding:8px 14px;border-radius:999px;font-weight:800}
.review-box{background:#f8fafc;border:1px solid var(--border);border-radius:18px;padding:12px;margin-top:10px}
.review-admin{margin-top:8px;color:#1d4ed8;background:#eff6ff;border-radius:12px;padding:8px}
.admin-thumb{width:96px;height:72px;object-fit:cover;border-radius:14px}
.topbar-actions{position:fixed;top:18px;right:20px;z-index:1300}
.notif-wrapper{position:relative}
.notif-bell{width:48px;height:48px;border-radius:16px;border:0;background:white;box-shadow:0 10px 28px rgba(15,23,42,.12);font-size:20px;position:relative}
.notif-count{position:absolute;top:-6px;right:-6px;background:#ef4444;color:white;border-radius:999px;min-width:22px;height:22px;font-size:11px;display:flex;align-items:center;justify-content:center;font-weight:800}
.notif-dropdown{position:absolute;right:0;top:60px;width:360px;max-height:420px;overflow:auto;background:white;border-radius:22px;box-shadow:0 28px 70px rgba(15,23,42,.18);padding:18px;display:none}
.notif-dropdown.show{display:block}
.notif-item{border:1px solid #e2e8f0;border-radius:16px;padding:12px;margin-bottom:10px;background:#f8fafc}
.notif-initial-tag{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:28px;border-radius:999px;background:#1d4ed8;color:white;font-size:12px;font-weight:800;margin-right:8px}
.rating-modal{position:fixed;inset:0;background:rgba(15,23,42,.55);backdrop-filter:blur(6px);display:none;align-items:center;justify-content:center;z-index:2500;padding:20px}
.rating-modal.show{display:flex}
.rating-modal-content{width:100%;max-width:520px;background:white;border-radius:28px;padding:28px;box-shadow:0 28px 80px rgba(15,23,42,.28);position:relative}
.rating-close{position:absolute;top:16px;right:18px;border:0;background:#f1f5f9;width:36px;height:36px;border-radius:50%;font-size:22px}
.payment-success-alert{background:linear-gradient(135deg,#dcfce7,#f0fdf4);color:#166534;border-radius:22px;padding:18px 20px}
.upload-hint{background:#fffbeb;border:1px solid #fde68a;color:#92400e;border-radius:18px;padding:14px}
@media(max-width:768px){
  body.sidebar-open .content{
    margin-left:0;
    width:100%;
    filter:blur(1px);
  }
  body.sidebar-open .toggle-btn{
    left:18px;
  }
  body.sidebar-open::after{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.35);
    z-index:900;
  }
  body.sidebar-open .sidebar,
  body.sidebar-open .toggle-btn,
  body.sidebar-open .topbar-actions{
    z-index:1300;
  }
  .notif-dropdown{width:310px;right:-70px}
  .customer-hero{padding:28px}
}
@media print{.no-print,.sidebar,.toggle-btn,.topbar-actions{display:none!important}.content{padding-top:0}.card{box-shadow:none;border:0}}


.review-slider {
  max-width: 720px;
  min-height: 260px;
  position: relative;
}

.review-slide {
  display: none;
  animation: fadeReview .45s ease;
}

.review-slide.active {
  display: block;
}

.service-review-slider {
  min-height: 150px;
  position: relative;
}

.service-review-slide {
  display: none;
  animation: fadeReview .45s ease;
}

.service-review-slide.active {
  display: block;
}

@keyframes fadeReview {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== FINAL SIDEBAR LAYOUT FIX ===== */

.sidebar{
  position:fixed;
  top:0;
  left:-280px;
  width:280px;
  height:100vh;
  transition:all .3s ease;
  z-index:1000;
}

.sidebar.active{
  left:0;
}

.content{
  width:100%;
  min-height:100vh;
  padding-top:70px;
  transition:all .3s ease;
}

body.sidebar-open .content{
  margin-left:280px !important;
  width:calc(100% - 280px) !important;
}

.toggle-btn{
  position:fixed;
  top:18px;
  left:18px;
  z-index:1200;
  transition:all .3s ease;
}

body.sidebar-open .toggle-btn{
  left:298px !important;
}

@media(max-width:768px){

  body.sidebar-open .content{
    margin-left:0 !important;
    width:100% !important;
  }

  body.sidebar-open .toggle-btn{
    left:18px !important;
  }

}


.service-photo-slider {
  position: relative;
}

.service-photo-slide {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fadeReview .45s ease;
}

.service-photo-slide.active {
  display: block;
}

.service-admin-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.service-admin-photo {
  width: 190px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 10px;
}

.service-admin-photo img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
}

.image-preview-area {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.preview-image-box {
  width: 150px;
  background: #f8fafc;
  border: 1px dashed #93c5fd;
  border-radius: 16px;
  padding: 8px;
  text-align: center;
  color: #64748b;
  font-size: 12px;
}

.preview-image-box img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 6px;
}
