* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
}

body {
  background: #f4f6f9;
}

/* ===== LAYOUT ===== */
.app {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 240px;
  background: #0f172a;
  color: #fff;
  padding: 20px;
  flex-shrink: 0;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  letter-spacing: 1px;
}

.menu {
  list-style: none;
}

.menu li {
  margin-bottom: 8px;
}

.menu li a {
  display: block;
  padding: 12px 15px;
  border-radius: 8px;
  color: #cbd5f5;
  text-decoration: none;
  transition: all 0.3s ease;
}

.menu li a:hover {
  background: #1e293b;
  color: #fff;
}

.menu li.active a {
  background: #2563eb;
  color: #fff;
  font-weight: 600;
}

/* Coba hilangkan sidebar secara paksa di HP untuk tes */
@media (max-width: 768px) {
  .sidebar {
    display: block; /* Kalau ini ditambahin dan sidebar hilang di HP, berarti CSS media query kamu sebelumnya emang belum ke-load */
    
  }
  .main {
    padding: 10px; /* Perkecil padding di HP supaya lega */
  }
}


/* ===== MAIN ===== */
.main {
  flex: 1;
  padding: 20px;
}

/* ===== TOPBAR ===== */
.topbar {
  background: #fff;
  padding: 15px 20px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

/* ===== CONTENT ===== */
.content {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* ===== CARD ===== */
.card {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  flex: 1;
}

.card h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #1e293b;
}

/* ===== STAT CARD ===== */
.card strong {
  font-size: 28px;
  color: #2563eb;
}

/* ===== TABLE ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

table thead {
  background: #f1f5f9;
}

table th {
  text-align: left;
  padding: 12px;
  font-size: 14px;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
}

table td {
  padding: 12px;
  font-size: 14px;
  border-bottom: 1px solid #e2e8f0;
}

table tr:hover {
  background: #f8fafc;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .content {
    flex-direction: column;
  }
}


.btn-primary {
  background: #2563eb;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.btn-primary:hover {
  background: #1d4ed8;
}
/* ===== FORM ===== */
.form-container {
  max-width: 600px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #475569;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  transition: 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-secondary {
  background: #e5e7eb;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: #111827;
  font-weight: 600;
}
.btn-secondary:hover {
  background: #d1d5db;
}
.form-group select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  background: #fff;
}

.form-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15,23,42,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal.active {
  display: flex;
}

.modal-box {
  background: #fff;
  width: 100%;
  max-width: 600px;
  border-radius: 16px;
  padding: 25px;
  animation: fadeUp .3s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.modal-header h3 {
  font-size: 18px;
}

.close-btn {
  cursor: pointer;
  font-size: 22px;
  font-weight: bold;
}

.badge {
  padding: 4px 8px;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
}

.badge.baru { background:#3498db; }
.badge.proses { background:#f39c12; }
.badge.selesai { background:#2ecc71; }
.badge.batal { background:#e74c3c; }

/* Update CSS untuk Card Dashboard yang lebih Modern */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  width: 100%;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px !important;
  border: 1px solid rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}

.stat-info h3 {
  font-size: 14px !important;
  color: #64748b !important;
  margin-bottom: 5px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-info p {
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

/* Variasi Warna Ikon Dashboard */
.stat-card.blue { border-left: 5px solid #2563eb; }
.stat-card.blue .stat-icon { background: rgba(37,99,235,0.1); }

.stat-card.orange { border-left: 5px solid #f59e0b; }
.stat-card.orange .stat-icon { background: rgba(245,158,11,0.1); }

.stat-card.green { border-left: 5px solid #10b981; }
.stat-card.green .stat-icon { background: rgba(16,185,129,0.1); }

.stat-card.purple { border-left: 5px solid #8b5cf6; }
.stat-card.purple .stat-icon { background: rgba(139,92,246,0.1); }

/* Perbaikan untuk Mobile agar Card tidak terlalu sempit */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 20px !important;
  }
}


