/* ============================================================
   style.css – Website Jasa PAC GP Ansor Jati Agung
   Design: Modern Green Theme (GP Ansor)
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Variables (GP Ansor Color System) --- */
:root {
  --ansor-dark:    #1B5E20;
  --ansor-primary: #2E7D32;
  --ansor-medium:  #388E3C;
  --ansor-light:   #4CAF50;
  --ansor-pale:    #A5D6A7;
  --ansor-bg:      #E8F5E9;
  --ansor-bg2:     #F1F8E9;
  --gold:          #FFD700;
  --gold-dark:     #F9A825;

  --text-dark:  #1a1a2e;
  --text-body:  #374151;
  --text-muted: #6B7280;
  --white:      #ffffff;
  --bg-light:   #f8f9fa;
  --border:     #e5e7eb;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1),  0 4px 6px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,.1),  0 10px 10px rgba(0,0,0,.04);
  --shadow-card: 0 4px 24px rgba(46,125,50,.10);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 50px;

  --transition: all .3s cubic-bezier(.4,0,.2,1);
  --transition-fast: all .15s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
}

a { text-decoration: none; color: var(--ansor-primary); transition: var(--transition-fast); }
a:hover { color: var(--ansor-dark); }

img { max-width: 100%; height: auto; }

/* --- Bootstrap Override: btn-ansor --- */
.btn-ansor {
  background: linear-gradient(135deg, var(--ansor-primary), var(--ansor-light));
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  padding: .55rem 1.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(46,125,50,.3);
}
.btn-ansor:hover {
  background: linear-gradient(135deg, var(--ansor-dark), var(--ansor-primary));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46,125,50,.4);
}
.btn-ansor:active { transform: translateY(0); }

.btn-ansor-outline {
  background: transparent;
  color: var(--ansor-primary);
  border: 2px solid var(--ansor-primary);
  border-radius: var(--radius-pill);
  font-weight: 600;
  padding: .5rem 1.5rem;
  transition: var(--transition);
}
.btn-ansor-outline:hover {
  background: var(--ansor-primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(46,125,50,.3);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--text-dark);
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  padding: .65rem 2rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(249,168,37,.35);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(249,168,37,.5);
  color: var(--text-dark);
}

/* --- Badge Override --- */
.badge-ansor { background: var(--ansor-primary); color: var(--white); }
.badge-tersedia { background: #d4edda; color: #155724; }
.badge-sibuk    { background: #f8d7da; color: #721c24; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-ansor {
  background: linear-gradient(135deg, var(--ansor-dark) 0%, var(--ansor-primary) 100%);
  padding: .8rem 0;
  box-shadow: 0 2px 20px rgba(27,94,32,.4);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.navbar-ansor .navbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--white) !important;
  font-size: 1rem;
}
.navbar-ansor .navbar-brand img { height: 40px; width: auto; }
.navbar-ansor .nav-link { color: rgba(255,255,255,.88) !important; font-weight: 500; font-size: .9rem; padding: .5rem .8rem !important; border-radius: var(--radius-sm); transition: var(--transition-fast); }
.navbar-ansor .nav-link:hover, .navbar-ansor .nav-link.active { color: var(--white) !important; background: rgba(255,255,255,.15); }
.navbar-ansor .navbar-toggler { border-color: rgba(255,255,255,.3); }
.navbar-ansor .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%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

.navbar-brand-text { line-height: 1.1; }
.navbar-brand-text span:first-child { font-size: .75rem; font-weight: 400; opacity: .8; display: block; }
.navbar-brand-text span:last-child  { font-size: .95rem; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, var(--ansor-dark) 0%, var(--ansor-primary) 40%, var(--ansor-medium) 70%, #1a7a1a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="900" cy="300" r="400" fill="rgba(255,255,255,0.04)"/><circle cx="200" cy="100" r="200" fill="rgba(255,255,255,0.03)"/><circle cx="1100" cy="500" r="300" fill="rgba(0,0,0,0.05)"/></svg>') no-repeat center/cover;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  padding: .35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: .8rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-title span { color: var(--gold); }
.hero-subtitle { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 2rem; line-height: 1.7; }

.hero-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-stat {
  text-align: center;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: .8rem 1.2rem;
  min-width: 90px;
}
.hero-stat .num { font-size: 1.6rem; font-weight: 800; color: var(--gold); line-height: 1; }
.hero-stat .lbl { font-size: .7rem; color: rgba(255,255,255,.8); margin-top: .2rem; }

.hero-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-logo-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.hero-logo-card:hover { background: rgba(255,255,255,.2); transform: translateY(-4px); }
.hero-logo-card img { height: 70px; width: auto; filter: drop-shadow(0 4px 8px rgba(0,0,0,.2)); }
.hero-logo-card p { color: rgba(255,255,255,.85); font-size: .7rem; margin-top: .5rem; font-weight: 500; }

.hero-foto {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 6px rgba(255,255,255,.15);
  border: 3px solid rgba(255,255,255,.3);
  transition: var(--transition);
}
.hero-foto:hover { transform: scale(1.02); }
.hero-foto img { width: 100%; height: 380px; object-fit: cover; display: block; }

/* ============================================================
   SEARCH SECTION
   ============================================================ */
.search-section { padding: 2.5rem 0; background: var(--white); }
.search-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(46,125,50,.08);
  padding: 2rem;
  position: relative;
  top: -40px;
  margin-bottom: -40px;
}
.search-input-wrapper {
  position: relative;
  flex: 1;
}
.search-input-wrapper .bi {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ansor-primary);
  font-size: 1.1rem;
  z-index: 1;
}
.search-input {
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  padding: .75rem 1rem .75rem 2.8rem;
  font-size: .95rem;
  width: 100%;
  transition: var(--transition);
  background: var(--bg-light);
}
.search-input:focus {
  border-color: var(--ansor-light);
  box-shadow: 0 0 0 4px rgba(76,175,80,.15);
  outline: none;
  background: var(--white);
}
.search-select {
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  padding: .75rem 1rem;
  font-size: .95rem;
  background: var(--bg-light);
  transition: var(--transition);
  cursor: pointer;
}
.search-select:focus {
  border-color: var(--ansor-light);
  box-shadow: 0 0 0 4px rgba(76,175,80,.15);
  outline: none;
}

/* ============================================================
   CATEGORY CHIPS
   ============================================================ */
.category-chips { display: flex; gap: .6rem; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--ansor-bg);
  color: var(--ansor-primary);
  border: 1.5px solid var(--ansor-pale);
  border-radius: var(--radius-pill);
  padding: .35rem .9rem;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.chip:hover, .chip.active {
  background: var(--ansor-primary);
  color: var(--white);
  border-color: var(--ansor-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46,125,50,.25);
}
.chip i { font-size: .85rem; }

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section-header { margin-bottom: 2.5rem; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--ansor-bg);
  color: var(--ansor-primary);
  border-radius: var(--radius-pill);
  padding: .3rem .9rem;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: .6rem;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.section-title span { color: var(--ansor-primary); }
.section-subtitle { color: var(--text-muted); font-size: .95rem; }
.divider-ansor { width: 50px; height: 4px; background: linear-gradient(90deg, var(--ansor-primary), var(--ansor-light)); border-radius: 2px; margin: .8rem 0 1rem; }

/* ============================================================
   PROVIDER CARDS
   ============================================================ */
.providers-section { padding: 4rem 0; background: var(--bg-light); }

.provider-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid rgba(46,125,50,.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.provider-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(46,125,50,.18);
  border-color: var(--ansor-pale);
}
.provider-card-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.provider-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: var(--transition);
}
.provider-card:hover .provider-card-img img { transform: scale(1.06); }
.provider-card-img .badge-status {
  position: absolute;
  top: .8rem; right: .8rem;
  padding: .3rem .8rem;
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 600;
}
.provider-card-img .category-tag {
  position: absolute;
  bottom: .8rem; left: .8rem;
  background: rgba(27,94,32,.85);
  backdrop-filter: blur(4px);
  color: var(--white);
  padding: .25rem .7rem;
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 500;
}

.provider-card-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.provider-name { font-size: 1rem; font-weight: 700; margin-bottom: .2rem; color: var(--text-dark); }
.provider-skill { font-size: .82rem; color: var(--ansor-primary); font-weight: 600; margin-bottom: .5rem; }
.provider-info { font-size: .8rem; color: var(--text-muted); margin-bottom: .3rem; display: flex; align-items: center; gap: .4rem; }
.provider-info i { color: var(--ansor-light); font-size: .85rem; }
.provider-price { font-size: .9rem; font-weight: 700; color: var(--ansor-dark); margin: .6rem 0; }
.provider-price small { font-weight: 400; color: var(--text-muted); font-size: .75rem; }

.provider-card-footer {
  padding: .8rem 1.2rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: .5rem;
}
.provider-card-footer .btn { flex: 1; font-size: .8rem; padding: .45rem .5rem; border-radius: var(--radius-sm); }

/* Provider Detail */
.detail-hero {
  background: linear-gradient(135deg, var(--ansor-dark), var(--ansor-primary));
  padding: 3rem 0 5rem;
  position: relative;
}
.detail-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--bg-light);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.provider-avatar {
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 5px solid var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  object-fit: cover;
}
.detail-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.8rem;
  border: 1px solid rgba(46,125,50,.08);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover { transform: scale(1.04); box-shadow: var(--shadow-lg); }
.gallery-item:hover img { transform: scale(1.08); }

/* ============================================================
   INFO SECTION
   ============================================================ */
.info-section { padding: 5rem 0; background: var(--white); }
.info-card {
  background: linear-gradient(135deg, var(--ansor-bg) 0%, var(--ansor-bg2) 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--ansor-pale);
  transition: var(--transition);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.info-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--ansor-primary), var(--ansor-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(46,125,50,.3);
}
.info-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.info-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--ansor-dark) 0%, var(--ansor-primary) 50%, #1a7a1a 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 400"><circle cx="700" cy="200" r="300" fill="rgba(255,255,255,0.04)"/><circle cx="100" cy="50" r="150" fill="rgba(255,255,255,0.03)"/></svg>') center/cover;
}
.cta-section h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: var(--white); }
.cta-section p { color: rgba(255,255,255,.85); font-size: 1rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form-section { padding: 4rem 0; background: var(--bg-light); }
.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid rgba(46,125,50,.08);
}
.form-card-header {
  background: linear-gradient(135deg, var(--ansor-dark), var(--ansor-primary));
  padding: 2rem 2.5rem;
  color: var(--white);
}
.form-card-header h2 { color: var(--white); font-size: 1.4rem; margin-bottom: .3rem; }
.form-card-header p { color: rgba(255,255,255,.8); font-size: .88rem; margin: 0; }
.form-card-body { padding: 2rem 2.5rem; }

.form-label { font-weight: 600; font-size: .87rem; color: var(--text-dark); margin-bottom: .4rem; }
.form-label .required { color: #ef4444; }
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .65rem .9rem;
  font-size: .92rem;
  transition: var(--transition);
  background: var(--bg-light);
}
.form-control:focus, .form-select:focus {
  border-color: var(--ansor-light);
  box-shadow: 0 0 0 4px rgba(76,175,80,.15);
  background: var(--white);
  outline: none;
}
.form-control.is-invalid { border-color: #ef4444; }
.form-section-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ansor-primary);
  padding: .7rem 1rem;
  background: var(--ansor-bg);
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
  border-left: 4px solid var(--ansor-primary);
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--ansor-pale);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--ansor-bg2);
}
.upload-area:hover { border-color: var(--ansor-primary); background: var(--ansor-bg); }
.upload-area.dragover { border-color: var(--ansor-primary); background: var(--ansor-bg); }
.upload-icon { font-size: 2.5rem; color: var(--ansor-pale); margin-bottom: .5rem; }
.upload-text { font-size: .85rem; color: var(--text-muted); }
.upload-text strong { color: var(--ansor-primary); }
.upload-area + input[type="file"], .upload-area ~ input[type="file"] { display: none; }
.preview-grid { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.preview-item { position: relative; }
.preview-item img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); border: 2px solid var(--border); }
.preview-item .remove-btn {
  position: absolute; top: -6px; right: -6px;
  background: #ef4444; color: var(--white);
  border: none; border-radius: 50%;
  width: 20px; height: 20px;
  font-size: .65rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* Success State */
.success-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 3rem;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.success-icon { font-size: 4rem; color: var(--ansor-primary); margin-bottom: 1rem; }
.order-number { background: var(--ansor-bg); border: 2px dashed var(--ansor-pale); border-radius: var(--radius-md); padding: 1rem; margin: 1rem 0; }
.order-number span { font-size: 1.4rem; font-weight: 800; color: var(--ansor-dark); }

/* ============================================================
   STATUS PAGE
   ============================================================ */
.status-section { padding: 4rem 0; background: var(--bg-light); min-height: 80vh; }
.status-timeline { position: relative; padding-left: 2.5rem; }
.status-timeline::before {
  content: '';
  position: absolute;
  left: 1rem; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--ansor-primary), var(--ansor-pale));
}
.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.9rem;
  top: 1rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 3px solid var(--white);
  background: var(--ansor-pale);
  box-shadow: 0 0 0 3px var(--ansor-pale);
}
.timeline-item.active::before { background: var(--ansor-primary); box-shadow: 0 0 0 3px var(--ansor-light); }
.timeline-item.active { border-left: 3px solid var(--ansor-primary); background: var(--ansor-bg); }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-wrapper { display: flex; min-height: 100vh; background: #f0f2f5; }
.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--ansor-dark) 0%, #0d3b0f 100%);
  color: var(--white);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1040;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 2px; }

.sidebar-brand {
  padding: 1.5rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.sidebar-brand img { height: 36px; width: auto; }
.sidebar-brand-text p { margin: 0; font-size: .7rem; opacity: .7; }
.sidebar-brand-text strong { font-size: .9rem; }

.sidebar-nav { padding: 1rem 0; flex: 1; }
.sidebar-section-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.4);
  padding: 1rem 1.2rem .4rem;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem 1.2rem;
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  font-weight: 500;
  transition: var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.sidebar-item:hover { color: var(--white); background: rgba(255,255,255,.08); text-decoration: none; }
.sidebar-item.active { color: var(--white); background: rgba(255,255,255,.12); border-left-color: var(--gold); }
.sidebar-item i { font-size: 1rem; width: 1.2rem; text-align: center; }
.sidebar-badge { background: var(--gold); color: var(--text-dark); border-radius: var(--radius-pill); padding: .15rem .55rem; font-size: .7rem; font-weight: 700; margin-left: auto; }

.sidebar-footer {
  padding: 1rem 1.2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

.admin-main { margin-left: 260px; flex: 1; display: flex; flex-direction: column; }
.admin-topbar {
  background: var(--white);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 10px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-topbar h5 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--text-dark); }
.topbar-breadcrumb { font-size: .8rem; color: var(--text-muted); margin-top: .1rem; }
.admin-topbar .admin-user { display: flex; align-items: center; gap: .7rem; }
.topbar-avatar { width: 36px; height: 36px; background: linear-gradient(135deg, var(--ansor-primary), var(--ansor-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: .9rem; font-weight: 700; }

.admin-content { padding: 1.5rem; flex: 1; }

/* --- Admin Cards --- */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 6px; height: 100%;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.stat-card.green::after  { background: linear-gradient(180deg, var(--ansor-primary), var(--ansor-light)); }
.stat-card.gold::after   { background: linear-gradient(180deg, var(--gold-dark), var(--gold)); }
.stat-card.blue::after   { background: linear-gradient(180deg, #1565C0, #42A5F5); }
.stat-card.orange::after { background: linear-gradient(180deg, #E65100, #FF9800); }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: .8rem; }
.stat-icon.green  { background: var(--ansor-bg); color: var(--ansor-primary); }
.stat-icon.gold   { background: #FFF9C4; color: var(--gold-dark); }
.stat-icon.blue   { background: #E3F2FD; color: #1565C0; }
.stat-icon.orange { background: #FBE9E7; color: #E65100; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: .2rem; }
.stat-change { font-size: .75rem; margin-top: .5rem; }
.stat-change.up { color: #16a34a; }
.stat-change.down { color: #dc2626; }

/* Admin Tables */
.admin-table-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.admin-table-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
}
.admin-table-header h6 { margin: 0; font-weight: 700; font-size: .95rem; }
.admin-table { margin: 0; }
.admin-table thead th {
  background: var(--ansor-bg);
  color: var(--ansor-dark);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border: none;
  padding: .8rem 1rem;
}
.admin-table tbody td { padding: .8rem 1rem; vertical-align: middle; font-size: .87rem; border-color: var(--border); }
.admin-table tbody tr:hover { background: var(--ansor-bg2); }

/* Provider Avatar Small */
.provider-avatar-sm { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ansor-pale); }
.provider-info-sm .name { font-weight: 600; font-size: .9rem; margin: 0; }
.provider-info-sm .sub { font-size: .77rem; color: var(--text-muted); margin: 0; }

/* Forms Admin */
.admin-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.admin-form-header {
  padding: 1.2rem 1.5rem;
  background: var(--ansor-bg);
  border-bottom: 1px solid var(--ansor-pale);
}
.admin-form-header h6 { margin: 0; font-weight: 700; color: var(--ansor-dark); }
.admin-form-body { padding: 1.5rem; }

/* Status Badge */
.status-badge {
  padding: .3rem .75rem;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 600;
  display: inline-block;
}
.status-menunggu    { background: #FEF3C7; color: #92400E; }
.status-dikonfirmasi{ background: #DBEAFE; color: #1E40AF; }
.status-diproses    { background: #E0E7FF; color: #3730A3; }
.status-dikerjakan  { background: #D1FAE5; color: #065F46; }
.status-selesai     { background: #D1FAE5; color: #166534; }
.status-dibatalkan  { background: #FEE2E2; color: #991B1B; }
.status-disetujui   { background: #D1FAE5; color: #166534; }
.status-ditolak     { background: #FEE2E2; color: #991B1B; }
.status-nonaktif    { background: #F3F4F6; color: #374151; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-main {
  background: linear-gradient(180deg, var(--ansor-dark) 0%, #0d3b0f 100%);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 0;
}
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-brand img { height: 45px; }
.footer-brand-text h5 { color: var(--white); margin: 0; font-size: 1rem; }
.footer-brand-text small { color: rgba(255,255,255,.6); font-size: .75rem; }
.footer-desc { font-size: .85rem; line-height: 1.7; color: rgba(255,255,255,.65); }
.footer-title { color: var(--white); font-size: .9rem; font-weight: 700; margin-bottom: 1.2rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-link { display: block; color: rgba(255,255,255,.65); font-size: .83rem; margin-bottom: .5rem; transition: var(--transition-fast); }
.footer-link:hover { color: var(--gold); padding-left: .4rem; }
.footer-social { display: flex; gap: .6rem; margin-top: .8rem; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: .9rem;
  transition: var(--transition);
}
.social-btn:hover { background: var(--gold); color: var(--text-dark); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.2rem 0;
  margin-top: 3rem;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-ansor { color: var(--ansor-primary) !important; }
.bg-ansor   { background: var(--ansor-primary) !important; }
.bg-ansor-light { background: var(--ansor-bg) !important; }
.border-ansor { border-color: var(--ansor-pale) !important; }

.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.spinner-ansor {
  width: 40px; height: 40px;
  border: 4px solid var(--ansor-pale);
  border-top-color: var(--ansor-primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Pulse animation */
@keyframes pulse-ring {
  0% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(76,175,80,.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(76,175,80,0); }
  100% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(76,175,80,0); }
}
.pulse-ansor { animation: pulse-ring 2s infinite; }

/* Float animation */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float-anim { animation: float 3s ease-in-out infinite; }

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--ansor-primary), var(--ansor-light));
  color: var(--white);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 999;
  opacity: 0; transform: translateY(20px);
  transition: var(--transition);
}
.scroll-top.show { opacity: 1; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.show { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; color: var(--white); font-size: 2rem; cursor: pointer; line-height: 1; }

/* Invoice */
@media print {
  .no-print, .admin-sidebar, .admin-topbar { display: none !important; }
  .admin-main { margin-left: 0 !important; }
  body { background: white; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.show { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-topbar { position: relative; }
  .hero-foto { margin-top: 2rem; }
  .hero-foto img { height: 280px; }
  .hero-logos { gap: 1rem; }
  .hero-logo-card { padding: .8rem 1rem; }
  .hero-logo-card img { height: 55px; }
}

@media (max-width: 767.98px) {
  .search-card { top: 0; margin-bottom: 0; padding: 1.2rem; }
  .form-card-body { padding: 1.5rem 1rem; }
  .form-card-header { padding: 1.5rem 1rem; }
  .hero-stats { gap: .8rem; }
  .hero-stat { padding: .5rem .8rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

@media (max-width: 575.98px) {
  .navbar-ansor .navbar-brand { font-size: .85rem; }
  .navbar-ansor .navbar-brand img { height: 32px; }
  .hero-section { padding: 80px 0 40px; }
  .hero-title { font-size: 1.7rem; }
  .hero-stat .num { font-size: 1.3rem; }
  .provider-card-footer { flex-direction: column; }
  .admin-content { padding: 1rem; }
}
