@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
  color: #334155;
  background-color: #f8fafc;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: #1e3a8a;
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.brand-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1e3a8a;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: #475569;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #2563eb;
}

.btn-admin {
  background: #2563eb;
  color: white !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.3s;
}

.btn-admin:hover {
  background: #1d4ed8;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  text-align: center;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-warning {
  background: #f59e0b;
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-warning:hover {
  background: #d97706;
}

.btn-secondary {
  background: #e2e8f0;
  color: #334155;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #cbd5e1;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  padding: 90px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 25px;
  opacity: 0.9;
}

/* Container & Sections */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 60px 0;
}

.bg-light {
  background-color: #f1f5f9;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: #1e3a8a;
  margin-bottom: 10px;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: #64748b;
  margin-bottom: 40px;
}

/* Card Komitmen */
.card-komitmen {
  background: white;
  border-left: 6px solid #2563eb;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.icon-komitmen {
  font-size: 2.8rem;
  color: #2563eb;
  margin-bottom: 15px;
}

.text-komitmen {
  font-size: 1.15rem;
  color: #334155;
  font-style: italic;
  max-width: 850px;
  margin: 0 auto;
}

/* Grid Layanan */
.grid-layanan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card-layanan {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-layanan:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.card-layanan i {
  font-size: 2.5rem;
  color: #2563eb;
  margin-bottom: 20px;
}

.card-layanan h3 {
  font-size: 1.25rem;
  color: #1e293b;
  margin-bottom: 10px;
}

.card-layanan p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* Search Box Cek Status */
.search-box {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 550px;
  margin: 25px auto 0;
}

.search-box input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
}

.search-box input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Status Result Card */
.status-card {
  max-width: 600px;
  margin: 25px auto 0;
  background: white;
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-Pending { background: #fef3c7; color: #d97706; }
.badge-Diproses { background: #dbeafe; color: #1d4ed8; }
.badge-Selesai { background: #dcfce7; color: #15803d; }
.badge-Ditolak { background: #fee2e2; color: #b91c1c; }

/* Forms */
.form-container {
  max-width: 650px;
  margin: 40px auto;
  background: #ffffff;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #334155;
  outline: none;
}

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

/* Footer */
footer {
  text-align: center;
  padding: 25px;
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Tables Admin */
.table-responsive {
  overflow-x: auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th, .table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.table tr:hover {
  background: #f1f5f9;
}

/* Dashboard Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-info h4 {
  font-size: 0.85rem;
  color: #64748b;
  text-transform: uppercase;
}

.stat-info span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}
