/* ═══════════════════════════════════════════════
   SOLARakyat ID — Shared Design System
   Matches original solarakyat.id aesthetic
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --yellow: #EAB308;
  --yellow-hover: #CA8A04;
  --orange: #F97316;
  --orange-hover: #EA6B0A;
  --orange-50: #FFF7ED;
  --orange-100: #FFEDD5;
  --yellow-50: #FEFCE8;
  --yellow-100: #FEF9C3;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --green: #16A34A;
  --green-50: #F0FDF4;
  --red: #DC2626;
  --red-50: #FEF2F2;
  --blue: #2563EB;
  --blue-50: #EFF6FF;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: linear-gradient(135deg, var(--orange-50) 0%, var(--white) 40%, var(--yellow-50) 100%);
  min-height: 100vh;
  color: var(--gray-800);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── TEXT GRADIENT ── */
.text-gradient {
  background: linear-gradient(135deg, var(--orange) 0%, var(--yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── GLASS EFFECT (nav) ── */
.glass-effect {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(234,179,8,0.15);
}

/* ══════════════════════════
   NAVIGATION
══════════════════════════ */
nav {
  position: fixed; top:0; left:0; right:0;
  z-index: 1000; height: 64px;
}

.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 18px;
  color: var(--gray-900);
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(249,115,22,0.35);
  animation: sun-pulse 3s ease-in-out infinite;
}

@keyframes sun-pulse {
  0%,100% { box-shadow: 0 2px 8px rgba(249,115,22,0.35); }
  50% { box-shadow: 0 2px 16px rgba(249,115,22,0.55); }
}

.nav-logo span.logo-text { color: var(--gray-900); }
.nav-logo span.logo-text b { color: var(--orange); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}

.nav-links a {
  position: relative;
  padding: 6px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--gray-600);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--yellow-hover); background: var(--yellow-50); }

.nav-links a.active {
  color: var(--yellow-hover); font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  position: absolute; bottom: -2px; left: 14px; right: 14px; height: 2px;
  background: var(--yellow);
  border-radius: 2px;
}

.nav-right {
  display: flex; align-items: center; gap: 8px;
}

.nav-cart-btn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none; background: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--gray-600);
  transition: background 0.2s, color 0.2s;
}
.nav-cart-btn:hover { background: var(--yellow-100); color: var(--yellow-hover); }

.cart-badge {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px;
  background: var(--orange);
  color: white; font-size: 10px; font-weight: 700;
  border-radius: 50%;
  display: none; align-items: center; justify-content: center;
}
.cart-badge.show { display: flex; }

.nav-admin-btn {
  padding: 7px 16px;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: white; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(249,115,22,0.3);
}
.nav-admin-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ══════════════════════════
   MAIN CONTENT
══════════════════════════ */
main { padding-top: 64px; min-height: calc(100vh - 64px); }

/* ══════════════════════════
   FOOTER
══════════════════════════ */
footer {
  background: linear-gradient(135deg, var(--orange) 0%, var(--yellow) 100%);
  color: white;
  padding: 48px 24px 24px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1280px; margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}

.footer-brand-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 18px; color: white;
  margin-bottom: 12px;
}

.footer-brand-logo-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.footer-desc { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.7; }

.footer-col h4 {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.85); transition: color 0.2s; }
.footer-col ul li a:hover { color: white; }

.footer-contact-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.7);
  flex-wrap: wrap; gap: 8px;
}

/* ══════════════════════════
   BUTTONS
══════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: all 0.2s; text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: white;
  box-shadow: 0 2px 8px rgba(249,115,22,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(249,115,22,0.4); }

.btn-outline {
  background: white; color: var(--orange);
  border: 1.5px solid var(--orange);
}
.btn-outline:hover { background: var(--orange-50); }

.btn-ghost {
  background: transparent; color: var(--gray-600);
  border: 1.5px solid var(--gray-200);
}
.btn-ghost:hover { background: var(--gray-50); border-color: var(--gray-300); }

.btn-danger {
  background: var(--red-50); color: var(--red);
  border: 1.5px solid #FECACA;
}
.btn-danger:hover { background: #FEE2E2; }

.btn-success {
  background: var(--green-50); color: var(--green);
  border: 1.5px solid #BBF7D0;
}
.btn-success:hover { background: #DCFCE7; }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ══════════════════════════
   FORM ELEMENTS
══════════════════════════ */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--gray-700); margin-bottom: 6px;
}

.form-label .req { color: var(--red); margin-left: 2px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; color: var(--gray-800);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(234,179,8,0.12);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--gray-400); }

.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.form-select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 36px;
}

.form-hint { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; display: none; }
.form-error.show { display: block; }

/* Image upload area */
.upload-area {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--gray-50);
}
.upload-area:hover, .upload-area.drag-over {
  border-color: var(--yellow);
  background: var(--yellow-50);
}
.upload-area-icon { font-size: 36px; margin-bottom: 8px; }
.upload-area-text { font-size: 14px; color: var(--gray-500); }
.upload-area-text b { color: var(--orange); }

/* ══════════════════════════
   CARDS
══════════════════════════ */
.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
  box-shadow: var(--shadow);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: rgba(234,179,8,0.3); }

/* ══════════════════════════
   BADGES / TAGS
══════════════════════════ */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px;
}
.badge-orange { background: var(--orange-100); color: var(--orange-hover); }
.badge-yellow { background: var(--yellow-100); color: var(--yellow-hover); }
.badge-green { background: var(--green-50); color: var(--green); }
.badge-red { background: var(--red-50); color: var(--red); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-blue { background: var(--blue-50); color: var(--blue); }

/* ══════════════════════════
   PAGE HEADER
══════════════════════════ */
.page-header {
  background: linear-gradient(135deg, var(--orange-50), var(--yellow-50));
  padding: 48px 24px 40px;
  text-align: center;
  border-bottom: 1px solid rgba(234,179,8,0.15);
}

.page-header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800; margin-bottom: 12px;
}

.page-header p {
  font-size: 16px; color: var(--gray-500);
  max-width: 560px; margin: 0 auto;
  line-height: 1.7;
}

/* ══════════════════════════
   SECTION
══════════════════════════ */
.section { padding: 60px 0; }
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700; margin-bottom: 8px;
}
.section-sub { font-size: 15px; color: var(--gray-500); margin-bottom: 32px; }

/* ══════════════════════════
   EMPTY STATE
══════════════════════════ */
.empty-state {
  text-align: center; padding: 80px 24px;
}
.empty-state-icon { font-size: 56px; margin-bottom: 16px; }
.empty-state h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--gray-700); margin-bottom: 8px;
}
.empty-state p { font-size: 14px; color: var(--gray-500); }

/* ══════════════════════════
   MODAL
══════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: white; border-radius: var(--radius-xl);
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  transform: scale(0.95) translateY(16px);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: var(--shadow-xl);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-head {
  padding: 24px 24px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 20px; font-weight: 700;
}
.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%; border: none;
  background: var(--gray-100); color: var(--gray-600);
  font-size: 18px; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--gray-200); }
.modal-body { padding: 20px 24px 24px; }

/* ══════════════════════════
   TOAST NOTIFICATION
══════════════════════════ */
#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}

.toast {
  display: flex; align-items: center; gap: 10px;
  background: white;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--green);
  font-size: 14px; font-weight: 500;
  min-width: 280px; max-width: 360px;
  animation: toast-in 0.3s ease;
}

.toast.error { border-color: var(--red); }
.toast.warning { border-color: var(--yellow); }
.toast.info { border-color: var(--blue); }

@keyframes toast-in {
  from { opacity:0; transform: translateX(24px); }
  to { opacity:1; transform: translateX(0); }
}

/* ══════════════════════════
   LOADING
══════════════════════════ */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--gray-200);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════
   RESPONSIVE
══════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-header { padding: 32px 20px 28px; }
  .section { padding: 40px 0; }
}

/* ══════════════════════════════
   GLOBAL MOBILE NAV FIX
   Pastikan hamburger tampil di layar kecil
══════════════════════════════ */
@media (max-width: 768px) {
  nav {
    padding: 0 16px !important;
    gap: 8px !important;
  }

  .nav-logo {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
  }

  .nav-logo img {
    max-width: 190px !important;
    height: auto !important;
  }

  .nav-right {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .nav-right .btn-nav-cta,
  .nav-right .btn-nav-primary,
  .nav-right a.btn-nav-cta {
    display: none !important;
  }

  .nav-hamburger {
    display: flex !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    border-radius: 12px !important;
    background: #f3f4f6 !important;
    color: #1C1917 !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 100000 !important;
  }
}