/* ===== W-TILAS STYLE – SAGE GREEN THEME ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --sage: #7D9B76;
  --sage-light: #A8C4A2;
  --sage-dark: #4E6E49;
  --sage-pale: #EDF4EC;
  --sage-mid: #C8DCC5;
  --accent: #5C8A55;
  --gold: #C8A96E;
  --white: #FFFFFF;
  --gray-50: #F9FAF8;
  --gray-100: #F0F4EF;
  --gray-200: #DDE6DB;
  --gray-300: #BCCFBA;
  --gray-400: #9BAF98;
  --gray-600: #5A7257;
  --gray-800: #2D3D2B;
  --gray-900: #1B261A;
  
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --info: #3b82f6;
  --info-light: #eff6ff;

  --sidebar-w: 280px;
  --topbar-h: 70px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(77,110,73,0.06);
  --shadow: 0 4px 20px rgba(77,110,73,0.12);
  --shadow-lg: 0 12px 40px rgba(77,110,73,0.2);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--gray-50); color: var(--gray-800); min-height: 100vh; overflow-x: hidden; }

/* ===== UTILS ===== */
.hidden { display: none !important; }
.mt-16 { margin-top: 16px; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; line-height: 1; border: 1px solid transparent; }
.badge-success { background: var(--success-light); color: var(--success); border-color: rgba(16,185,129,0.2); }
.badge-warning { background: var(--warning-light); color: var(--warning); border-color: rgba(245,158,11,0.2); }
.badge-info { background: var(--info-light); color: var(--info); border-color: rgba(59,130,246,0.2); }
.badge-kec { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4); color: white; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-block; margin-top: 16px; }

/* ===== LOGIN ===== */
.login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--sage-dark) 0%, var(--sage) 50%, var(--sage-light) 100%);
  position: relative; overflow: hidden; padding: 20px;
}
.login-bg-anim {
  position: absolute; inset: 0; opacity: 0.1;
  background-image: 
    radial-gradient(circle at 20% 20%, white 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, white 0%, transparent 40%);
  animation: bgFloat 10s ease-in-out infinite alternate;
}
@keyframes bgFloat { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }

.login-card {
  background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
  border-radius: 24px; padding: 48px 40px; width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg); position: relative; z-index: 1;
  border: 1px solid rgba(255,255,255,0.6);
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }

.login-logo { text-align: center; margin-bottom: 36px; }
.logo-img { width: 110px; height: auto; margin-bottom: 16px; drop-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.login-logo h1 { font-size: 32px; font-weight: 900; color: var(--sage-dark); letter-spacing: 1px; margin-bottom: 4px; }
.tagline-login { font-size: 14px; color: var(--gray-600); line-height: 1.5; font-weight: 500; }

.login-form .form-group { margin-bottom: 22px; }
.login-form label { display: block; font-size: 13px; font-weight: 700; color: var(--gray-800); margin-bottom: 8px; }
.login-form label i { margin-right: 6px; color: var(--sage); }
.login-form input {
  width: 100%; padding: 14px 16px; border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 15px; font-family: inherit;
  transition: var(--transition); outline: none; background: var(--gray-50);
}
.login-form input:focus { border-color: var(--sage); background: white; box-shadow: 0 0 0 4px rgba(125,155,118,0.15); }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 48px; }
.pass-wrap button {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--gray-400); font-size: 16px; transition: color 0.2s;
}
.pass-wrap button:hover { color: var(--sage-dark); }
.login-error { background: var(--danger-light); color: var(--danger); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; font-weight: 500; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(239,68,68,0.2); }

.btn-login {
  width: 100%; padding: 16px; background: linear-gradient(135deg, var(--sage-dark), var(--sage));
  color: white; border: none; border-radius: var(--radius-sm); font-size: 16px; font-weight: 700;
  cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 4px 12px rgba(78,110,73,0.2);
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(78,110,73,0.35); }
.login-hint { text-align: center; margin-top: 24px; font-size: 13px; color: var(--gray-600); background: var(--gray-50); padding: 10px; border-radius: 8px; border: 1px dashed var(--gray-200); }
.login-hint b { color: var(--sage-dark); }

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed; left: 0; top: 0; height: 100vh; width: var(--sidebar-w);
  background: white; border-right: 1px solid var(--gray-200);
  z-index: 1000; display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 4px 0 24px rgba(0,0,0,0.05);
}
.sidebar.open { transform: translateX(0); }

.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 24px 20px; border-bottom: 1px solid var(--gray-100);
}
.sidebar-logo-wrap { display: flex; align-items: center; gap: 12px; }
.sidebar-logo-img { width: 44px; height: auto; }
.sidebar-app-name { font-size: 20px; font-weight: 900; color: var(--sage-dark); letter-spacing: 0.5px; line-height: 1.2; }
.sidebar-app-sub { font-size: 11px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.close-btn { background: var(--gray-50); border: 1px solid var(--gray-200); color: var(--gray-600); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 14px; transition: var(--transition); display: none; }
.close-btn:hover { background: var(--sage-pale); color: var(--sage-dark); border-color: var(--sage-mid); }

.sidebar-user { padding: 20px 24px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--gray-100); background: var(--gray-50); position: relative; }
.user-ava i { font-size: 42px; color: var(--sage-mid); }
.user-info { flex: 1; }
.user-name { color: var(--gray-800); font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.user-role { color: var(--gray-600); font-size: 12px; font-weight: 500; }
.user-online { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); }
.user-online span { display: block; width: 10px; height: 10px; background: var(--success); border-radius: 50%; border: 2px solid white; box-shadow: 0 0 0 2px var(--success-light); }

.sidebar-section-label { padding: 24px 24px 8px; font-size: 11px; font-weight: 800; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1px; }
.sidebar-menu { list-style: none; padding: 0 12px; flex: 1; overflow-y: auto; }
.sidebar-menu::-webkit-scrollbar { width: 4px; }
.sidebar-menu::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }
.sidebar-menu li { margin-bottom: 4px; }
.menu-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  color: var(--gray-600); text-decoration: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; transition: var(--transition);
}
.menu-item i { width: 20px; text-align: center; font-size: 16px; color: var(--gray-400); transition: var(--transition); }
.menu-item:hover { background: var(--sage-pale); color: var(--sage-dark); }
.menu-item:hover i { color: var(--sage); }
.menu-item.active { background: var(--sage); color: white; box-shadow: 0 4px 12px rgba(125,155,118,0.3); }
.menu-item.active i { color: white; }

.sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--gray-100); background: white; }
.sidebar-ver { text-align: center; font-size: 11px; color: var(--gray-400); margin-bottom: 12px; font-weight: 500; }
.btn-logout {
  width: 100%; padding: 12px; background: var(--danger-light);
  color: var(--danger); border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: var(--transition);
}
.btn-logout:hover { background: var(--danger); color: white; }

.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(27,38,26,0.6);
  z-index: 999; backdrop-filter: blur(3px);
  animation: fadeIn 0.3s ease;
}

/* ===== TOPBAR ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h);
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; z-index: 100; box-shadow: var(--shadow-sm);
  transition: padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hamburger {
  background: var(--sage-pale); border: 1px solid var(--sage-mid); font-size: 18px; color: var(--sage-dark);
  cursor: pointer; width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.hamburger:hover { background: var(--sage); color: white; }
.topbar-brand { display: flex; align-items: center; gap: 16px; flex: 1; margin-left: 20px; }
.topbar-logo { width: 36px; height: auto; display: none; }
.topbar-title { font-size: 18px; font-weight: 800; color: var(--gray-900); }

.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-info { text-align: right; display: flex; flex-direction: column; }
.topbar-user { font-size: 14px; font-weight: 700; color: var(--gray-800); }
.topbar-date { font-size: 12px; color: var(--gray-400); font-weight: 500; }
.btn-notif {
  background: white; border: 1px solid var(--gray-200); width: 40px; height: 40px; border-radius: 50%;
  color: var(--gray-600); cursor: pointer; font-size: 16px; transition: var(--transition);
  position: relative;
}
.btn-notif:hover { background: var(--sage-pale); color: var(--sage-dark); border-color: var(--sage-mid); }
.btn-notif::after { content: ''; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background: var(--danger); border-radius: 50%; border: 2px solid white; }

/* ===== MAIN CONTENT ===== */
.main-content { margin-top: var(--topbar-h); padding: 32px 40px; min-height: calc(100vh - var(--topbar-h)); transition: padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

@media (min-width: 1025px) {
  .sidebar { transform: translateX(0); }
  .topbar { padding-left: calc(var(--sidebar-w) + 24px); }
  .topbar-brand { margin-left: 0; }
  .hamburger { display: none; }
  .main-content { padding-left: calc(var(--sidebar-w) + 40px); }
}

.page { display: none; animation: pageIn 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.page.active { display: block; }
@keyframes pageIn { from { opacity:0; transform:translateY(15px); } to { opacity:1; transform:translateY(0); } }

.page-header-wrap { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; gap: 16px; flex-wrap: wrap; }
.page-h2 { font-size: 28px; font-weight: 800; color: var(--gray-900); letter-spacing: -0.5px; }
.page-sub { color: var(--gray-600); margin-top: 6px; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.highlight { color: var(--sage-dark); }

/* Buttons */
.btn-primary {
  padding: 12px 24px; background: linear-gradient(135deg, var(--sage-dark), var(--sage));
  color: white; border: none; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 12px rgba(78,110,73,0.2); text-decoration: none;
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(78,110,73,0.35); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }

.btn-secondary {
  padding: 12px 24px; background: white; color: var(--gray-800);
  border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-400); }

.btn-outline {
  padding: 10px 20px; background: transparent; color: var(--sage-dark);
  border: 2px solid var(--sage-mid); border-radius: var(--radius-sm); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { background: var(--sage-pale); border-color: var(--sage); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-group { display: flex; gap: 12px; }

/* Cards */
.card { background: white; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); }
.card-header { font-size: 16px; font-weight: 800; color: var(--gray-900); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.card-header i { color: var(--sage); font-size: 18px; }
.card-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card-header-flex .card-header { margin-bottom: 0; }
.card-link { font-size: 13px; font-weight: 600; color: var(--sage-dark); text-decoration: none; display: flex; align-items: center; gap: 4px; transition: var(--transition); }
.card-link:hover { color: var(--sage); gap: 8px; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: white; border-radius: var(--radius); padding: 24px;
  display: flex; align-items: center; gap: 20px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
  transition: var(--transition); position: relative; overflow: hidden;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sage-mid); }
.stat-card::before { content:''; position:absolute; top:0; left:0; width:4px; height:100%; background: var(--sage); }
.s1::before { background: var(--info); }
.s2::before { background: var(--warning); }
.s3::before { background: var(--sage); }
.s4::before { background: var(--gold); }

.stat-icon {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
}
.s1 .stat-icon { background: var(--info-light); color: var(--info); }
.s2 .stat-icon { background: var(--warning-light); color: var(--warning); }
.s3 .stat-icon { background: var(--sage-pale); color: var(--sage-dark); }
.s4 .stat-icon { background: #fef3c7; color: var(--gold); }

.stat-num { font-size: 32px; font-weight: 900; color: var(--gray-900); line-height: 1.1; }
.stat-label { font-size: 13px; color: var(--gray-600); margin-top: 4px; font-weight: 500; }

.dash-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1200px) { .dash-grid { grid-template-columns: 2fr 1fr; } }

/* Forms */
.form-card { padding: 40px; }
.form-row-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: 14px; font-weight: 700; color: var(--gray-800); margin-bottom: 8px; }
.form-label.required::after { content: '*'; color: var(--danger); margin-left: 4px; }
.label-opt { font-weight: 400; color: var(--gray-400); font-size: 12px; }

.form-control {
  width: 100%; padding: 14px 16px; border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 15px; font-family: inherit; color: var(--gray-900);
  transition: var(--transition); outline: none; background: var(--gray-50);
}
.form-control:focus { border-color: var(--sage); background: white; box-shadow: 0 0 0 4px rgba(125,155,118,0.15); }
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 120px; line-height: 1.6; }

.field-hint { font-size: 12px; color: var(--gray-400); margin-top: 6px; }
.field-error { font-size: 12px; color: var(--danger); margin-top: 6px; font-weight: 500; }
.char-count { font-size: 12px; color: var(--gray-400); text-align: right; margin-top: 6px; }

.file-drop {
  border: 2px dashed var(--gray-300); border-radius: var(--radius-sm);
  padding: 40px 20px; text-align: center; cursor: pointer; transition: var(--transition);
  background: var(--gray-50); display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.file-drop:hover { border-color: var(--sage); background: var(--sage-pale); }
.file-drop i { font-size: 40px; color: var(--sage-light); margin-bottom: 12px; transition: var(--transition); }
.file-drop:hover i { color: var(--sage); transform: translateY(-4px); }
.file-drop p { color: var(--gray-800); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.file-drop small { color: var(--gray-400); font-size: 12px; }

.foto-preview { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.foto-preview-item { position: relative; width: 100px; height: 100px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--sage-mid); box-shadow: var(--shadow-sm); }
.foto-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.btn-remove-foto { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; background: rgba(239,68,68,0.9); color: white; border: none; border-radius: 50%; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); transition: var(--transition); }
.btn-remove-foto:hover { background: var(--danger); transform: scale(1.1); }

.form-divider { height: 1px; background: var(--gray-200); margin: 32px 0; }
.form-actions { display: flex; gap: 16px; justify-content: flex-end; }

/* Filter Bar */
.filter-bar { display: flex; gap: 16px; margin-bottom: 24px; align-items: center; flex-wrap: wrap; background: white; padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); }
.search-wrap { position: relative; flex: 1; min-width: 250px; }
.search-wrap i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gray-400); }
.search-wrap input { width: 100%; padding: 12px 16px 12px 40px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; outline: none; transition: var(--transition); }
.search-wrap input:focus { border-color: var(--sage); }
.filter-sel { width: auto; min-width: 180px; padding: 12px 16px; border-width: 2px; }
.rekap-count { font-size: 14px; color: var(--gray-600); margin-bottom: 16px; }

/* Activity List */
.activity-list { display: flex; flex-direction: column; gap: 12px; }
.rekap-list { display: flex; flex-direction: column; gap: 16px; }

.kegiatan-item {
  display: flex; align-items: flex-start; gap: 16px; padding: 20px;
  background: white; border-radius: var(--radius);
  border: 1px solid var(--gray-200); transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.kegiatan-item:hover { transform: translateY(-2px); border-color: var(--sage-mid); box-shadow: var(--shadow); }
.item-dot {
  width: 12px; height: 12px; border-radius: 50%; margin-top: 6px;
  background: linear-gradient(135deg, var(--sage-dark), var(--sage-light)); flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--sage-pale);
}
.item-content { flex: 1; min-width: 0; }
.item-judul { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; line-height: 1.4; }
.item-meta { font-size: 13px; color: var(--gray-400); font-weight: 500; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.item-badges { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; min-width: 120px; }
.item-badge-cat { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--gray-100); color: var(--gray-600); border: 1px solid var(--gray-200); white-space: nowrap; }

.item-actions { display: flex; gap: 8px; margin-left: 16px; flex-shrink: 0; }
.btn-icon {
  width: 36px; height: 36px; border: none; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.btn-delete { background: var(--danger-light); color: var(--danger); }
.btn-delete:hover { background: var(--danger); color: white; transform: scale(1.05); }
.btn-view { background: var(--info-light); color: var(--info); }
.btn-view:hover { background: var(--info); color: white; transform: scale(1.05); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.3s ease; }
.modal-box { background: white; border-radius: var(--radius); width: 100%; max-width: 600px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slideUp 0.3s ease; }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 18px; font-weight: 800; color: var(--gray-900); }
.modal-close { background: var(--gray-100); border: none; width: 32px; height: 32px; border-radius: 50%; color: var(--gray-600); cursor: pointer; transition: var(--transition); }
.modal-close:hover { background: var(--danger-light); color: var(--danger); transform: rotate(90deg); }
.modal-body { padding: 24px; overflow-y: auto; }
.modal-meta { background: var(--gray-50); padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); margin-bottom: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-meta p { font-size: 13px; color: var(--gray-800); }
.modal-meta i { color: var(--sage); width: 16px; }
.modal-desc h4 { font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.modal-desc p { font-size: 14px; color: var(--gray-600); line-height: 1.7; white-space: pre-wrap; }
.modal-fotos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 24px; border-top: 1px solid var(--gray-200); padding-top: 24px; }
.modal-fotos img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius-sm); border: 2px solid var(--gray-200); cursor: pointer; transition: var(--transition); }
.modal-fotos img:hover { border-color: var(--sage); transform: scale(1.02); }

/* Paparan (Presentation) */
.paparan-container {
  position: fixed; inset: 0; background: var(--gray-900);
  z-index: 3000; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.slide {
  display: none; width: 100%; height: 100%; position: absolute; inset: 0;
  animation: slideFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide.active { display: flex; align-items: center; justify-content: center; }
@keyframes slideFade { from { opacity:0; transform:scale(0.95) translateY(20px); } to { opacity:1; transform:scale(1) translateY(0); } }

.paparan-cover {
  background: linear-gradient(135deg, var(--sage-dark) 0%, #2d4a29 50%, var(--sage) 100%);
  flex-direction: column; text-align: center; padding: 60px; position: relative;
}
.cover-bg-deco { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 60%); pointer-events: none; }
.cover-content { max-width: 800px; position: relative; z-index: 1; }
.cover-logo-img { width: 140px; height: auto; margin-bottom: 32px; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.2)); }
.cover-title { font-size: 72px; font-weight: 900; color: white; letter-spacing: 4px; margin-bottom: 12px; text-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.cover-sub { font-size: 32px; font-weight: 500; color: rgba(255,255,255,0.9); margin-bottom: 20px; }
.cover-tagline { font-size: 18px; color: rgba(255,255,255,0.7); font-style: italic; letter-spacing: 1px; }
.cover-meta { margin-top: 48px; display: inline-flex; flex-direction: column; gap: 8px; background: rgba(0,0,0,0.2); padding: 16px 32px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px); }
.cover-meta span { color: white; font-size: 16px; font-weight: 600; }
.cover-unit { color: var(--gold) !important; font-size: 14px !important; text-transform: uppercase; letter-spacing: 2px; }

.slide-kegiatan {
  background: white; flex-direction: column; padding: 60px 100px; align-items: flex-start; justify-content: center; position: relative;
}
.slide-num {
  position: absolute; top: 40px; right: 40px; font-size: 14px; font-weight: 700; color: var(--gray-400);
  background: var(--gray-50); padding: 6px 16px; border-radius: 20px; border: 1px solid var(--gray-200);
}
.slide-badges { display: flex; gap: 12px; margin-bottom: 24px; }
.slide-badge {
  background: var(--sage-pale); color: var(--sage-dark); padding: 8px 20px;
  border-radius: 20px; font-size: 14px; font-weight: 700;
  border: 1px solid var(--sage-mid);
}
.slide-date { font-size: 16px; font-weight: 600; color: var(--gray-600); margin-bottom: 16px; }
.slide-judul { font-size: 40px; font-weight: 900; color: var(--gray-900); margin-bottom: 24px; line-height: 1.2; max-width: 80%; }
.slide-uraian { font-size: 20px; color: var(--gray-600); line-height: 1.8; max-width: 65%; }
.slide-foto { position: absolute; right: 80px; top: 50%; transform: translateY(-50%); width: 320px; }
.slide-foto img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 8px solid white; transform: rotate(2deg); transition: var(--transition); }
.slide-foto img:hover { transform: rotate(0deg) scale(1.05); }
.foto-label { text-align: center; font-size: 13px; font-weight: 600; color: var(--gray-400); margin-top: 16px; }
.slide-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(180deg, var(--sage-dark), var(--sage-light)); }
.slide-footer { position: absolute; bottom: 32px; left: 80px; font-size: 14px; font-weight: 600; color: var(--gray-400); }

.slide-closing { background: linear-gradient(135deg, var(--sage-dark) 0%, #2d4a29 50%, var(--sage) 100%); flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.closing-content { max-width: 700px; padding: 40px; }
.closing-icon { width: 100px; height: 100px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 32px; border: 2px solid rgba(255,255,255,0.2); }
.closing-icon i { font-size: 48px; color: var(--gold); }
.closing-content h2 { font-size: 56px; font-weight: 900; color: white; margin-bottom: 16px; }
.closing-content > p { font-size: 20px; color: rgba(255,255,255,0.8); margin-bottom: 48px; font-weight: 500; }
.closing-stats { display: flex; gap: 40px; justify-content: center; margin-bottom: 48px; background: rgba(0,0,0,0.2); padding: 32px 48px; border-radius: 24px; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px); }
.cs-item { text-align: center; }
.cs-item span { display: block; font-size: 48px; font-weight: 900; color: white; line-height: 1; margin-bottom: 8px; }
.cs-item label { font-size: 14px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }
.closing-brand { font-size: 16px; font-weight: 600; color: white; display: flex; align-items: center; justify-content: center; gap: 12px; background: rgba(255,255,255,0.1); padding: 12px 24px; border-radius: 40px; display: inline-flex; }

.paparan-nav { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 24px; z-index: 10; background: rgba(0,0,0,0.6); padding: 12px 32px; border-radius: 40px; backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.slide-btn { width: 44px; height: 44px; background: rgba(255,255,255,0.1); border: none; color: white; border-radius: 50%; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.slide-btn:hover { background: var(--sage); transform: scale(1.1); }
.slide-indicator { color: white; font-size: 16px; font-weight: 700; min-width: 80px; text-align: center; font-variant-numeric: tabular-nums; }
.slide-indicator .sep { color: rgba(255,255,255,0.4); margin: 0 8px; }

.btn-fullscreen { position: fixed; bottom: 40px; right: 40px; background: rgba(0,0,0,0.6); color: white; border: 1px solid rgba(255,255,255,0.15); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 16px; transition: var(--transition); z-index: 10; backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; }
.btn-fullscreen:hover { background: var(--sage); }

.btn-print-paparan { position: fixed; bottom: 94px; right: 40px; background: rgba(0,0,0,0.6); color: white; border: 1px solid rgba(255,255,255,0.15); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 16px; transition: var(--transition); z-index: 10; backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; }
.btn-print-paparan:hover { background: var(--sage); }

.exit-paparan { position: fixed; top: 40px; right: 40px; background: rgba(0,0,0,0.4); color: white; border: 1px solid rgba(255,255,255,0.2); padding: 12px 24px; border-radius: 30px; cursor: pointer; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; transition: var(--transition); z-index: 10; backdrop-filter: blur(8px); }
.exit-paparan:hover { background: var(--danger); border-color: var(--danger); }

/* Laporan Mingguan Styles */
.week-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 24px; background: white; padding: 16px; border-radius: var(--radius); border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm); }
.week-range-label { font-size: 16px; font-weight: 700; color: var(--gray-800); background: var(--sage-pale); padding: 8px 20px; border-radius: 40px; border: 1px solid var(--sage-mid); }

.laporan-table-wrap { background: white; border-radius: var(--radius); border: 1px solid var(--gray-200); overflow-x: auto; box-shadow: var(--shadow-sm); }
.laporan-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.laporan-table th { background: var(--gray-50); color: var(--gray-800); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; padding: 16px; border-bottom: 2px solid var(--gray-200); text-align: left; }
.laporan-table td { padding: 16px; border-bottom: 1px solid var(--gray-100); font-size: 14px; vertical-align: top; line-height: 1.6; }
.laporan-table tr:last-child td { border-bottom: none; }
.laporan-table tr:hover { background: var(--gray-50); }

/* Signature Block */
.laporan-ttd { display: flex; justify-content: space-between; margin-top: 40px; gap: 40px; }
.ttd-box { text-align: center; flex: 1; max-width: 250px; }
.ttd-box p { font-size: 14px; margin-bottom: 4px; color: var(--gray-800); }
.ttd-space { height: 80px; }

/* Toast */
.toast { position: fixed; bottom: 32px; right: 32px; padding: 16px 24px; background: var(--gray-900); color: white; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; z-index: 9999; box-shadow: var(--shadow-lg); border-left: 4px solid var(--sage); display: flex; align-items: center; gap: 12px; }

/* Responsive */
@media (max-width: 768px) {
  .form-row-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .main-content { padding: 24px 20px; }
  .page-h2 { font-size: 24px; }
  .kegiatan-item { flex-direction: column; align-items: stretch; }
  .item-actions { margin-left: 0; margin-top: 12px; justify-content: flex-end; }
  .item-badges { align-items: flex-start; flex-direction: row; }
  .slide-kegiatan { padding: 40px; }
  .slide-foto { position: relative; right: auto; top: auto; transform: none; width: 100%; margin-top: 32px; }
  .slide-uraian { max-width: 100%; font-size: 16px; }
  .slide-judul { font-size: 28px; max-width: 100%; }
  .cover-title { font-size: 48px; }
  .closing-stats { flex-direction: column; gap: 24px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .login-card { padding: 32px 24px; }
  .topbar { padding: 0 16px; }
  .topbar-info { display: none; }
}

/* Print Styles */
@media print {
    body { background: white; margin: 0; padding: 0; }
    .sidebar, .topbar, .paparan-nav, .btn-fullscreen, .btn-print-paparan, .exit-paparan, .toast, .week-nav, .btn-group, .btn-primary.btn-sm { display: none !important; }
    .main-content { padding: 0 !important; margin: 0 !important; margin-top: 0 !important; }
    
    /* Show ONLY the active page */
    .page { display: none !important; }
    .page.active { display: block !important; padding: 0 !important; }
    
    /* Paparan Print */
    #page-paparan.active .paparan-container { position: static; background: white; display: block; overflow: visible; }
    #page-paparan.active .slide { position: static; display: flex !important; opacity: 1 !important; transform: none !important; page-break-after: always; width: 100vw; height: 100vh; animation: none !important; padding: 40px; box-sizing: border-box; border: none !important; }
    
    /* Laporan Print */
    #page-laporan.active { padding: 40px !important; }
    #page-laporan.active .laporan-table-wrap { border: 1px solid #000; box-shadow: none; border-radius: 0; overflow: visible !important; }
    #page-laporan.active .laporan-table-wrap::-webkit-scrollbar { display: none !important; }
    #page-laporan.active .laporan-table { min-width: 100% !important; width: 100% !important; table-layout: auto !important; }
    #page-laporan.active .laporan-table th { background: #eee !important; border-bottom: 2px solid #000; -webkit-print-color-adjust: exact; }
    #page-laporan.active .laporan-table td { border-bottom: 1px solid #ccc; overflow: visible !important; }
    #page-laporan.active .page-header-wrap { border-bottom: 2px solid #000; margin-bottom: 20px; padding-bottom: 10px; }
    
    .slide-kegiatan { align-items: flex-start; justify-content: center; }
    .slide-foto { position: absolute; right: 40px; top: 50%; transform: translateY(-50%) !important; width: 300px; }
    .slide-foto img { transform: none !important; border: 4px solid #eee; box-shadow: none; }
    .slide-judul { max-width: 60%; }
    .slide-uraian { max-width: 60%; }
    .slide-accent { display: none; }
    
    .cover-content, .closing-content { color: black !important; text-shadow: none !important; }
    .cover-title, .cover-sub, .cover-tagline, .cover-unit { color: black !important; }
    .closing-content h2, .closing-content > p, .cs-item span, .cs-item label, .closing-brand { color: black !important; }
    .closing-stats { background: transparent !important; border: 1px solid #000; }
    .paparan-cover, .slide-closing { background: white !important; }
    
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}

