:root {
  --primary: #10b981;
  --primary-hover: #059669;
  --bg-color: #f0fdf4; 
  --sidebar-bg: #ffffff;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --input-bg: #f8fafc;
  --focus-ring: rgba(16, 185, 129, 0.2);
}

body { font-family: 'Poppins', sans-serif; background-color: var(--bg-color); color: var(--text-main); margin: 0; display: flex; min-height: 100vh; overflow-x: hidden;}
.sidebar { width: 260px; background-color: var(--sidebar-bg); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; position: fixed; height: 100vh; box-shadow: 4px 0 15px rgba(0,0,0,0.03); z-index: 100; }
.sidebar-header { padding: 30px 20px; text-align: center; border-bottom: 1px solid var(--border-color); }
.sidebar-header h2 { margin: 0; color: var(--primary); font-size: 20px; font-weight: 700; }
.sidebar-menu { padding: 20px 15px; flex-grow: 1; overflow-y: auto; }
.menu-item { display: flex; align-items: center; padding: 14px 20px; margin-bottom: 10px; border-radius: 12px; color: var(--text-muted); text-decoration: none; font-weight: 500; cursor: pointer; transition: all 0.3s ease; }
.menu-item i { margin-right: 15px; width: 20px; text-align: center; font-size: 18px; }
.menu-item:hover { background-color: #f0fdf4; color: var(--primary); }
.menu-item.active { background: linear-gradient(135deg, var(--primary) 0%, #059669 100%); color: white; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }

.main-content { flex-grow: 1; margin-left: 260px; padding: 40px; background-image: radial-gradient(circle at 50% 0%, #d1fae5 0%, transparent 50%); }
.section-container { display: none; animation: fadeIn 0.4s ease-out; }
.section-container.active { display: block; }
.card { width: 100%; max-width: 600px; margin: 0 auto; background: var(--card-bg); padding: 35px 40px; border-radius: 20px; box-shadow: 0 20px 40px -15px rgba(0,0,0,0.08), 0 0 10px rgba(0,0,0,0.02); border: 1px solid rgba(255,255,255,0.8); box-sizing: border-box; }
h3.section-title { text-align: center; color: var(--text-main); margin-top: 0; margin-bottom: 25px; font-weight: 700; font-size: 24px; }
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 600; color: #334155; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
input, select, textarea { width: 100%; padding: 14px 16px; border: 1.5px solid var(--border-color); border-radius: 12px; background-color: var(--input-bg); box-sizing: border-box; font-size: 15px; font-family: 'Poppins', sans-serif; color: var(--text-main); transition: all 0.3s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); background-color: #ffffff; outline: none; box-shadow: 0 0 0 4px var(--focus-ring); }
input::placeholder, textarea::placeholder { color: #94a3b8; }
.info-text { font-size: 12px; color: var(--text-muted); margin-top: 6px; display: block; }
button.btn-submit { width: 100%; padding: 16px; background: linear-gradient(135deg, var(--primary) 0%, #059669 100%); color: white; border: none; border-radius: 12px; cursor: pointer; font-size: 16px; font-weight: 600; letter-spacing: 1px; margin-top: 20px; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
button.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4); }
button.btn-submit:disabled { background: #cbd5e1; box-shadow: none; cursor: not-allowed; transform: none; }

.table-responsive { overflow-x: auto; margin-top: 25px; border-radius: 12px; border: 1px solid var(--border-color); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.data-table th, .data-table td { padding: 14px 15px; border-bottom: 1px solid var(--border-color); white-space: nowrap; }
.data-table th { background-color: #f8fafc; font-weight: 600; color: #334155; text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px;}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background-color: #f1f5f9; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; border: none; cursor: pointer; color: white; font-weight: 600; transition: 0.2s;}
.btn-danger { background-color: #ef4444; } .btn-danger:hover { background-color: #dc2626; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; background: #e0f2fe; color: #0369a1; }

#welcomeText { text-align: center; color: var(--primary-hover); font-weight: 600; font-size: 14px; margin-bottom: 25px; padding: 12px; background-color: #ecfdf5; border-radius: 10px; border: 1px dashed #a7f3d0; }
#infoPRBox { display: none; margin-bottom: 25px; padding: 16px; background-color: #fdfae8; border: 1px solid #fef08a; border-left: 5px solid #f59e0b; border-radius: 12px; font-size: 13px; }
.pr-info-title { font-weight: 700; color: #b45309; margin-bottom: 8px; font-size: 12px; text-transform: uppercase;}
.pr-info-row { display: flex; flex-direction: column; margin-bottom: 8px; }
.pr-info-label { color: #d97706; font-weight: 600; font-size: 12px;}
.pr-info-value { color: #78350f; font-weight: 500;}
.tab-container { display: flex; margin-bottom: 25px; background: #f1f5f9; padding: 5px; border-radius: 14px; }
.tab-btn { flex: 1; padding: 12px; text-align: center; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text-muted); transition: all 0.3s ease; border-radius: 10px; }
.tab-btn.active { background: #ffffff; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.tab-content { display: none; animation: fadeIn 0.4s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.pr-section { position: relative; margin: 35px 0 25px; text-align: center; }
.pr-section::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; border-top: 2px dashed var(--border-color); z-index: 1; }
.title-pr { position: relative; z-index: 2; background: var(--card-bg); color: #f59e0b; padding: 0 15px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.title-pagi { color: var(--primary); text-align: center; font-weight: 700; margin-bottom: 20px; font-size: 18px; }
#loginOverlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(240, 253, 244, 0.95); z-index: 1000; display: flex; justify-content: center; align-items: center; }

.simak-tabs { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; overflow-x: auto; scrollbar-width: none;}
.simak-tab { padding: 10px 18px; cursor: pointer; font-weight: 600; color: var(--text-muted); border-radius: 8px; transition: 0.3s; white-space: nowrap; font-size: 14px;}
.simak-tab:hover { background: #f1f5f9; }
.simak-tab.active { background: var(--primary); color: white; box-shadow: 0 4px 10px rgba(16,185,129,0.2); }
.simak-tab-content { display: none; animation: fadeIn 0.4s; }
.simak-tab-content.active { display: block; }

.custom-modal { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.6); z-index: 2000; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; backdrop-filter: blur(3px);}
.custom-modal.show { display: flex; animation: fadeIn 0.3s; }
.modal-box { background: #fff; padding: 30px; border-radius: 16px; width: 100%; max-width: 500px; box-shadow: 0 15px 35px rgba(0,0,0,0.15); border: 1px solid #e2e8f0; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; border-bottom: 2px dashed var(--border-color); padding-bottom: 15px;}
.modal-title { font-size: 20px; font-weight: 700; color: var(--text-main); margin:0; }
.close-modal { background: #f1f5f9; border: none; font-size: 20px; cursor: pointer; color: var(--text-muted); width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.2s;}
.close-modal:hover { background: #e2e8f0; color: #ef4444; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 30px; }
.btn-secondary { background: #e2e8f0; color: #475569; } .btn-secondary:hover { background: #cbd5e1; }

@media (max-width: 768px) {
  body { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; border-right: none; border-bottom: 1px solid var(--border-color); }
  .sidebar-header { padding: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; }
  .sidebar-header i { margin-bottom: 0 !important; font-size: 24px !important; }
  .sidebar-menu { display: flex; overflow-x: auto; padding: 10px; gap: 10px; }
  .menu-item { margin-bottom: 0; white-space: nowrap; padding: 10px 15px; flex: 1; justify-content: center; }
  .menu-item i { margin-right: 8px; }
  .main-content { margin-left: 0; padding: 20px 15px; }
  .card { padding: 25px 20px; }
  .tab-container { flex-wrap: wrap; }
  .tab-btn { margin-bottom: 5px; }
  #loginOverlay .card { margin: 20px; }
}