/* ============================================================
   PKB Care GTD Kota Bogor — Global Design System
   Version: 1.0 Final
   Primary: Green #15803d | Emergency: #dc2626
   ============================================================ */

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

:root {
  --green-50:  #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  --red-50:    #fef2f2;
  --red-100:   #fee2e2;
  --red-500:   #ef4444;
  --red-600:   #dc2626;
  --amber-50:  #fffbeb;
  --amber-100: #fef3c7;
  --amber-600: #d97706;
  --blue-50:   #eff6ff;
  --blue-100:  #dbeafe;
  --blue-600:  #2563eb;
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white:     #ffffff;

  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow:    0 4px 16px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg: 0 16px 40px rgba(15,23,42,.10), 0 4px 8px rgba(15,23,42,.05);

  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-2xl: 28px;

  --transition: .2s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: Inter, "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #f0fdf4 60%, #f8fafc 100%);
  color: var(--slate-800);
  line-height: 1.55;
  font-size: 1rem;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Container ---- */
.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

/* ---- Topbar / Navbar ---- */
.topbar {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 1.15rem;
  flex-shrink: 0;
}
.brand-title { font-size: 1rem; font-weight: 800; color: var(--green-800); line-height: 1.2; }
.brand-subtitle { font-size: .78rem; color: var(--slate-500); }

.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: .9rem;
  color: var(--slate-700);
  font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover { background: var(--slate-100); }
.nav-link.active { background: var(--green-100); color: var(--green-800); font-weight: 700; }

.mobile-menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: var(--radius); color: var(--slate-700);
}

/* ---- Flash Messages ---- */
.flash {
  padding: 15px 18px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  border-left: 5px solid transparent;
  font-size: .95rem;
  line-height: 1.5;
}
.flash-error   { background: var(--red-50);   border-color: var(--red-600);   color: #991b1b; }
.flash-success { background: var(--green-50); border-color: var(--green-600); color: #166534; }
.flash-info    { background: var(--blue-50);  border-color: var(--blue-600);  color: #1e40af; }
.flash-warning { background: var(--amber-50); border-color: var(--amber-600); color: #92400e; }
.flash strong  { font-weight: 700; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  border: none; border-radius: var(--radius-lg);
  font-size: .96rem; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  text-align: center; white-space: nowrap;
  line-height: 1.3;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: #fff;
  box-shadow: 0 4px 14px rgba(21,128,61,.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(21,128,61,.3);
}

.btn-danger {
  background: linear-gradient(135deg, #b91c1c, var(--red-600));
  color: #fff;
  box-shadow: 0 4px 14px rgba(220,38,38,.25);
}
.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220,38,38,.32);
}

.btn-secondary {
  background: #fff; color: var(--slate-700);
  border: 1.5px solid var(--slate-300);
}
.btn-secondary:hover { background: var(--slate-50); }

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

.btn-sm { padding: 9px 16px; font-size: .88rem; border-radius: var(--radius); }
.btn-lg { padding: 16px 28px; font-size: 1.08rem; border-radius: var(--radius-xl); }
.btn-full { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---- Cards ---- */
.card {
  background: rgba(255,255,255,.95);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.card-body { padding: 28px; }
.card-header { padding: 20px 28px; border-bottom: 1px solid var(--slate-100); }
.card-footer { padding: 16px 28px; border-top: 1px solid var(--slate-100); }

/* ---- GRID ---- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 14px;
}

.form-group label {
    display:block;
    font-size:0.8rem;
    color:var(--slate-500);
    margin-bottom:4px;
}

/* ---- Form Elements ---- */
.field-group { display: grid; gap: 7px; }

label {
  font-size: .91rem; font-weight: 700;
  color: var(--slate-800); line-height: 1.3;
}

.required { color: var(--red-600); font-weight: 800; }

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="date"],
select,
textarea {
  width: 100%;
  border: 1.5px solid var(--slate-300);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 13px 16px;
  font-size: .96rem;
  color: var(--slate-800);
  transition: var(--transition);
  outline: none;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

textarea { min-height: 120px; resize: vertical; line-height: 1.55; }

input:focus, select:focus, textarea:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}

input.is-invalid, select.is-invalid, textarea.is-invalid {
  border-color: var(--red-600);
  box-shadow: 0 0 0 4px rgba(220,38,38,.08);
}

.hint { font-size: .82rem; color: var(--slate-500); }
.error-text {
  display: none; font-size: .82rem; color: #b91c1c; font-weight: 600;
}
.error-text.show { display: block; }

select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23334155' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 40px;
}

select:disabled { background-color: var(--slate-50); color: var(--slate-400); }

.checkbox-card {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1.5px solid var(--slate-200); background: var(--slate-50);
  padding: 16px; border-radius: var(--radius-lg);
}
.checkbox-card.urgent   { border-color: #fca5a5; background: var(--red-50); }
.checkbox-card.warning  { border-color: #fde68a; background: var(--amber-50); }

.checkbox-card input[type="checkbox"] {
  width: auto; border: none; box-shadow: none;
  margin-top: 3px; transform: scale(1.2); cursor: pointer;
  flex-shrink: 0;
}

/* ---- Grid Helpers ---- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---- Badge / Status ---- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px;
  font-size: .82rem; font-weight: 700;
  white-space: nowrap;
}
.badge-green   { background: var(--green-100); color: var(--green-800); }
.badge-red     { background: var(--red-100);   color: #991b1b; }
.badge-amber   { background: var(--amber-100); color: #92400e; }
.badge-blue    { background: var(--blue-100);  color: #1e40af; }
.badge-slate   { background: var(--slate-100); color: var(--slate-700); }

/* status-specific */
.status-pending     { background: var(--amber-100); color: #92400e; }
.status-in_progress { background: var(--blue-100);  color: #1e40af; }
.status-completed   { background: var(--green-100); color: var(--green-800); }
.status-rejected    { background: var(--red-100);   color: #991b1b; }
.status-new         { background: var(--slate-100); color: var(--slate-700); }
.status-reviewed    { background: var(--blue-100);  color: #1e40af; }
.status-escalated   { background: var(--red-100);   color: #991b1b; }
.status-closed      { background: var(--green-100); color: var(--green-800); }

.urgency-urgent { background: var(--red-100); color: #991b1b; }
.urgency-normal { background: var(--slate-100); color: var(--slate-700); }

/* ---- Table ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--slate-200); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
thead { background: var(--slate-50); }
th {
  padding: 12px 16px; text-align: left;
  font-size: .82rem; font-weight: 700; color: var(--slate-600);
  border-bottom: 1px solid var(--slate-200); white-space: nowrap;
  text-transform: uppercase; letter-spacing: .04em;
}
td { padding: 13px 16px; border-bottom: 1px solid var(--slate-100); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--slate-50); }

/* ---- Upload Box ---- */
.upload-box {
  border: 2px dashed var(--slate-300); border-radius: var(--radius-xl);
  padding: 20px; background: #fff; transition: var(--transition);
  cursor: pointer;
}
.upload-box:hover, .upload-box.dragover {
  border-color: var(--green-500); background: var(--green-50);
}
.upload-meta { font-size: .84rem; color: var(--slate-500); margin-top: 8px; }

.preview-wrap {
  display: none; margin-top: 14px;
  border-radius: var(--radius-lg);
  background: var(--slate-50); border: 1px solid var(--slate-200); padding: 14px;
}
.preview-file  { display: flex; gap: 14px; align-items: center; }
.preview-thumb {
  width: 80px; height: 80px; border-radius: var(--radius-lg);
  object-fit: cover; border: 1px solid var(--slate-200);
}
.pdf-thumb {
  width: 80px; height: 80px; border-radius: var(--radius-lg);
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--slate-200);
  color: #b91c1c; font-weight: 900; font-size: 1rem;
}
.preview-name { font-weight: 700; color: var(--slate-900); font-size: .92rem; }
.preview-size { font-size: .82rem; color: var(--slate-500); margin-top: 3px; }

/* ---- WA Float Button ---- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366;
  box-shadow: 0 6px 20px rgba(37,211,102,.4);
  display: grid; place-items: center;
  transition: var(--transition);
  font-size: 1.6rem; color: #fff;
}
.wa-float:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 10px 28px rgba(37,211,102,.5);
}

/* ---- Inline Alert ---- */
.inline-alert {
  display: none; margin-bottom: 18px; padding: 14px 16px;
  border-radius: var(--radius-lg); background: var(--red-50);
  color: #991b1b; border: 1px solid var(--red-100); font-size: .94rem;
}
.inline-alert.show { display: block; }

/* ---- Section & Hero ---- */
.section { padding: 32px 0; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--slate-900); margin-bottom: 8px; }
.section-subtitle { color: var(--slate-600); margin-bottom: 24px; }

/* ---- Stat Card ---- */
.stat-card {
  background: #fff; border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl); padding: 22px;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-label { font-size: .82rem; color: var(--slate-500); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.stat-value { font-size: 2.25rem; font-weight: 900; color: var(--slate-900); line-height: 1; }
.stat-sub   { font-size: .85rem; color: var(--slate-500); margin-top: 6px; }

/* ---- Admin Sidebar ---- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 256px; flex-shrink: 0;
  background: var(--slate-900);
  padding: 0; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar-brand {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #fff;
}
.admin-sidebar-brand strong { display: block; font-size: .95rem; font-weight: 800; }
.admin-sidebar-brand span   { font-size: .78rem; color: var(--slate-400); }
.admin-nav { padding: 12px 10px; flex: 1; }
.admin-nav-section { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--slate-500); padding: 14px 12px 6px; font-weight: 700; }
.admin-nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: var(--radius);
  color: var(--slate-400); font-size: .92rem; font-weight: 500;
  transition: var(--transition);
}
.admin-nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav-link.active { background: var(--green-700); color: #fff; font-weight: 700; }
.admin-nav-link svg { flex-shrink: 0; }
.admin-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.admin-topbar {
  background: #fff; border-bottom: 1px solid var(--slate-200);
  padding: 14px 28px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; position: sticky; top: 0; z-index: 50;
}
.admin-content { padding: 28px; flex: 1; overflow-y: auto; }

/* ---- Pilar Cards ---- */
.pilar-card {
  background: #fff; border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-xl); padding: 22px;
  transition: var(--transition); cursor: pointer;
  display: flex; flex-direction: column; gap: 10px;
}
.pilar-card:hover { border-color: var(--green-400); box-shadow: var(--shadow); transform: translateY(-3px); }
.pilar-icon {
  width: 52px; height: 52px; border-radius: var(--radius-lg);
  display: grid; place-items: center; font-size: 1.5rem;
}
.pilar-title { font-size: 1.02rem; font-weight: 800; color: var(--slate-900); }
.pilar-desc  { font-size: .88rem; color: var(--slate-600); line-height: 1.5; }

/* ---- Hero Emergency Button ---- */
.emergency-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #b91c1c, var(--red-600));
  color: #fff; font-weight: 900; font-size: 1.05rem;
  box-shadow: 0 6px 24px rgba(220,38,38,.35);
  transition: var(--transition); animation: pulse-emergency 2s infinite;
}
.emergency-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(220,38,38,.45); }

@keyframes pulse-emergency {
  0%, 100% { box-shadow: 0 6px 24px rgba(220,38,38,.35); }
  50%       { box-shadow: 0 6px 34px rgba(220,38,38,.58); }
}

/* ---- Timeline ---- */
.timeline { display: grid; gap: 0; position: relative; }
.timeline-item { display: flex; gap: 16px; padding-bottom: 24px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-line {
  position: absolute; left: 17px; top: 36px; bottom: 0;
  width: 2px; background: var(--slate-200);
}
.timeline-item:last-child .timeline-line { display: none; }
.timeline-dot {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: .9rem;
  border: 2px solid var(--slate-200); background: #fff;
}
.timeline-dot.active { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.timeline-body { flex: 1; padding-top: 6px; }
.timeline-title { font-weight: 700; color: var(--slate-900); font-size: .95rem; }
.timeline-meta  { font-size: .82rem; color: var(--slate-500); margin-top: 2px; }

/* ---- Modal ---- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15,23,42,.5); backdrop-filter: blur(4px);
  display: none; place-items: center; padding: 20px;
}
.modal-backdrop.open { display: grid; }
.modal {
  background: #fff; border-radius: var(--radius-2xl);
  max-width: 680px; width: 100%;
  max-height: calc(100vh - 40px); overflow-y: auto;
  box-shadow: 0 24px 60px rgba(15,23,42,.18);
}
.modal-header {
  padding: 22px 24px; border-bottom: 1px solid var(--slate-100);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-body   { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--slate-100); display: flex; gap: 10px; justify-content: flex-end; }
.modal-close  { background: none; border: none; cursor: pointer; color: var(--slate-500); border-radius: var(--radius); padding: 6px; }
.modal-close:hover { background: var(--slate-100); }

/* ---- Char Counter ---- */
.char-counter {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; color: var(--slate-500);
}

/* ---- Pagination ---- */
.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius);
  border: 1px solid var(--slate-200); background: #fff;
  color: var(--slate-700); font-size: .9rem; font-weight: 600;
  transition: var(--transition); cursor: pointer;
}
.page-link:hover   { background: var(--slate-100); }
.page-link.active  { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.page-link.disabled{ opacity: .4; cursor: not-allowed; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.font-bold   { font-weight: 700; }
.font-black  { font-weight: 900; }
.text-sm     { font-size: .88rem; }
.text-xs     { font-size: .8rem; }
.text-green  { color: var(--green-700); }
.text-red    { color: var(--red-600); }
.text-slate  { color: var(--slate-600); }
.mt-4  { margin-top: 16px; }
.mb-4  { margin-bottom: 16px; }
.gap-2 { gap: 8px; }
.flex  { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---- Footer ---- */
.site-footer {
  background: var(--slate-900); color: var(--slate-400);
  padding: 40px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand-title { color: #fff; font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.footer-brand-desc  { font-size: .88rem; line-height: 1.65; }
.footer-nav-title   { color: #fff; font-size: .85rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em; }
.footer-nav-link    { display: block; font-size: .88rem; padding: 4px 0; transition: var(--transition); }
.footer-nav-link:hover { color: var(--green-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07); padding-top: 22px;
  font-size: .84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .admin-sidebar { width: 220px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .topbar-inner { flex-wrap: wrap; gap: 10px; }
  .nav-links { display: none; flex-direction: column; width: 100%; }
  .nav-links.open { display: flex; }
  .mobile-menu-toggle { display: block; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; }
  /*.admin-nav { display: none; }*/
  .admin-nav.open { display: block; }

  .footer-grid { grid-template-columns: 1fr; }
  .modal { border-radius: var(--radius-xl); }
}

@media (max-width: 480px) {
  .card-body { padding: 18px; }
  .admin-content { padding: 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .btn-lg { padding: 14px 20px; font-size: 1rem; }
}
/* ===== LAYANAN PAGE FIX ===== */
.layanan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.layanan-card {
  background: #fff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.layanan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green-400);
}

.layanan-card-icon {
  font-size: 28px;
}

.layanan-card-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--slate-900);
}

.layanan-card-desc {
  font-size: 0.88rem;
  color: var(--slate-600);
  line-height: 1.5;
}
.layanan-card {
  cursor: pointer;
}
.navbar {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 40px;
}

.brand-title {
  font-weight: bold;
}

.brand-subtitle {
  font-size: 12px;
  color: #666;
}

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
}

.nav-menu a.active {
  color: #16a34a;
  font-weight: bold;
}
/* ===== FIX NAVBAR FINAL ===== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--slate-200);
}

.navbar-container {
  max-width: 1180px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

/* BRAND */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--green-800);
}

.brand-subtitle {
  font-size: 11px;
  color: var(--slate-500);
}

/* MENU */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-menu a {
  font-size: 14px;
  color: var(--slate-700);
  padding: 8px 12px;
  border-radius: 999px;
  transition: 0.2s;
}

.nav-menu a:hover {
  background: var(--slate-100);
}

.nav-menu a.active {
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 700;
}
.logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
/* FIX LOGO NAVBAR */
.brand img {
  width: 48px;      /* atur ukuran logo */
  height: 48px;
  object-fit: contain;
}

/* biar teks sejajar */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px; /* opsional */
}
/* FORCE FIX LOGO */
.brand img {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain;
}

/* kalau masih ngikutin container lama */
.brand-logo {
  width: 40px !important;
  height: 40px !important;
}
.logo {
  width: 32px !important;
  height: 32px !important;
}

.logo-box {
  width: 40px;
  height: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-box img {
  max-width: 100%;
  max-height: 100%;
}
/* PERBESAR JUDUL */
.brand-title {
  font-size: 16px !important;
  font-weight: 800;
  color: var(--green-800);
  line-height: 1.2;
}

/* SUBTITLE BIAR PROPORSIONAL */
.brand-subtitle {
  font-size: 12px !important;
  color: var(--slate-500);
}
.brand-title {
  letter-spacing: 0.3px;
}
/* ===== BRANDING NAVBAR PREMIUM ===== */

/* container brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* logo */
.logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* judul utama */
.brand-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--green-800);
  line-height: 1.2;
  letter-spacing: 0.3px;
}

/* highlight kata penting */
.brand-title span {
  color: #dc2626; /* merah */
}

/* subtitle */
.brand-subtitle {
  font-size: 12px;
  color: var(--slate-500);
  letter-spacing: 0.2px;
}

/* menu */
.nav-links a {
  position: relative;
}

/* efek hover modern */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0%;
  height: 2px;
  background: var(--green-600);
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* active menu lebih hidup */
.nav-link.active {
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 700;
}
.brand-title {
  text-transform: uppercase;
  font-size: 16px;
}
/* NAVBAR HIJAU */
.topbar {
  background: linear-gradient(135deg, var(--green-700), var(--green-600)) !important;
  border-bottom: none;
}
/* teks brand */
.brand-title {
  color: #ffffff !important;
}

.brand-subtitle {
  color: rgba(255,255,255,0.8) !important;
}

/* menu */
.nav-link {
  color: rgba(255,255,255,0.9) !important;
}

.nav-link:hover {
  background: rgba(255,255,255,0.15);
}

/* menu aktif */
.nav-link.active {
  background: rgba(255,255,255,0.2);
  color: #ffffff !important;
}
.brand-title span {
  color: #E60000; /* merah kuat */
}
/* NAVBAR HIJAU MUDA */
.topbar {
  background: var(--green-50) !important;
  border-bottom: 1px solid var(--green-200);
}
.brand-title {
  color: var(--green-800) !important;
}

.brand-subtitle {
  color: var(--slate-600) !important;
}

.nav-link {
  color: var(--slate-700) !important;
}
.nav-link:hover {
  background: var(--green-100);
}

.nav-link.active {
  background: var(--green-200);
  color: var(--green-900) !important;
}
/* ===== RUNNING TEXT PREMIUM ===== */

.running-bar {
  width: 100%;
  background: linear-gradient(90deg, var(--amber-100), var(--amber-50));
  border-bottom: 1px solid var(--amber-600);
  overflow: hidden;
  position: relative;
}

/* track */
.running-track {
  display: flex;
  width: max-content;
  animation: runningText 18s linear infinite;
}

/* text item */
.running-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
  white-space: nowrap;
}

/* animasi */
@keyframes runningText {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* pause saat hover (premium feel) */
.running-bar:hover .running-track {
  animation-play-state: paused;
}
.running-item::before {
  content: "🚧";
  animation: pulseIcon 1.5s infinite;
}

@keyframes pulseIcon {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
/* FIX LAYOUT ADMIN */
.admin-container {
    display: flex;
}

.admin-sidebar {
    width: 260px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
}

.admin-main {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
}

.admin-header {
    padding: 20px;
}
.contact-photo {
    width:80px;
    height:80px;
    border-radius:50%;
    object-fit:cover;
    object-position:center;
    margin:0 auto 12px;
    border:3px solid #22c55e;
    display:block;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
    transition:0.2s;
}

.contact-photo:hover {
    transform:scale(1.05);
}
/* =======================================================
   FOTO FLOAT (DIAM)
   ======================================================= */
.contact-photo {
    /* 1. KUNCI DIAM DI TENGAH: Jangan diubah! */
    transform: translate(-50%, -50%) scale(1);
    
    /* 2. Ukuran Asli */
    width: 90px;
    height: 90px;
    
    /* 3. Posisi Absolut */
    position: absolute;
    top: 0;
    left: 50%;
    
    /* 4. Tampilan */
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: #fff;
    z-index: 10;
    
    /* 5. Transisi: Agar membesarnya halus, bukan patah-patah */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    cursor: pointer;
}

/* =======================================================
   EFEK MEMBESAR 2X (SEBELUM DIKLIK)
   KUNCI: translate(-50%, -50%) HARUS ADA LAGI
   ======================================================= */
.contact-photo:hover {
    /* translate(-50%, -50%) berfungsi menengahkan (jangan dihapus) */
    /* scale(2.0) artinya membesar 2 kali lipat dari ukuran asli */
    transform: translate(-50%, -50%) scale(2.0);
    
    /* 2. Efek bayangan lebih dramatis agar terlihat melayang */
    box-shadow: 0 25px 50px rgba(0,0,0,0.35);
    
    /* 3. Z-Index: Sangat penting agar foto di hover berada DI ATAS segalanya */
    z-index: 999;
}
/* OFFSET DESKTOP */
.admin-main {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* MOBILE FIX TOTAL */
@media (max-width: 768px) {
    .admin-main {
        margin-left: 0 !important;
        width: 100%;
    }
    .admin-topbar{
        display: grid;
    }
    .admin-topbar h1{
      text-align: center;
    }
}
