@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #26334a;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --accent: #10b981;
  --border: #334155;
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #60a5fa;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* =========================================
   HEADER & NAVIGASI
   ========================================= */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  font-weight: 500;
}

.nav a:hover {
  color: var(--text-main);
}

/* =========================================
   LAYOUT & KARTU (CARDS)
   ========================================= */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(
    to bottom right,
    var(--bg-card),
    rgba(30, 41, 59, 0.2)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.card,
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  margin-bottom: 24px;
}

article.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  background: var(--bg-card-hover);
  border-color: #475569;
}

.card h2,
.form-card h2,
.card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  color: #fff;
  margin-top: 0;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* =========================================
   BUTTONS (TOMBOL)
   ========================================= */
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.button:hover,
button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* =========================================
   FORM ELEMENTS (KHUSUS ADMIN)
   ========================================= */
label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  color: #e2e8f0;
}

input[type="text"],
input[type="url"],
input[type="password"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  background: #0f172a;
  color: var(--text-main);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* =========================================
   TABLES (KHUSUS ADMIN)
   ========================================= */
.table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  text-align: left;
}

th {
  background: rgba(15, 23, 42, 0.6);
  color: #cbd5e1;
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

/* =========================================
   BADGES & ALERTS (NOTIFIKASI)
   ========================================= */
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}
.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
  border-left: 4px solid transparent;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border-left-color: #10b981;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border-left-color: #ef4444;
}

/* =========================================
   HALAMAN SEO (SINGLE PAGE)
   ========================================= */
.content {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin: 24px 0;
}

.content h2,
.content h3 {
  color: #fff;
  margin-top: 24px;
  margin-bottom: 12px;
}
.content p {
  margin-bottom: 16px;
}
.content a {
  word-break: break-word;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px 0;
}

.meta-item {
  background: rgba(51, 65, 85, 0.5);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  color: #e2e8f0;
  font-size: 0.85rem;
}

.cta-box {
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #1e293b, #0f172a);
  text-align: center;
}

.small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =========================================
   FOOTER & RESPONSIVE
   ========================================= */
.site-footer {
  text-align: center;
  padding: 30px 0;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px;
  }
  .table-wrap {
    border: none;
  }
}
