/* ===== CSS VARIABLES ===== */
:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #d1fae5;

  --accent: #f59e0b;
  --accent-hover: #d97706;
  --secondary-blue: #3b82f6;
  --secondary-purple: #8b5cf6;

  --dark: #1e293b;
  --text: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f0fdf4;

  --card-shadow: 0 4px 15px rgba(16, 185, 129, 0.08);
  --card-shadow-hover: 0 10px 30px rgba(16, 185, 129, 0.15);
}

* {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* ===== TOPBAR ===== */
.topbar {
  background: var(--dark);
  padding: 5px 0;
  font-size: 0.75rem;
}

.topbar a {
  color: #94a3b8;
  transition: color .2s;
}

.topbar a:hover {
  color: var(--accent);
}

/* ===== NAVBAR ===== */
.navbar {
  box-shadow: 0 2px 20px rgba(0, 0, 0, .06);
  background: #fff;
}

.navbar-item {
  font-weight: 500;
  font-size: .88rem;
  color: var(--text) !important;
}

.navbar-item:hover {
  color: var(--primary) !important;
  background: var(--primary-light) !important;
}

.navbar-brand .navbar-item {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary) !important;
}

.navbar-brand .navbar-item:hover {
  background: transparent !important;
}

.navbar-brand .brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  margin-right: 10px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.navbar-burger span {
  height: 2px;
  background: var(--text);
}

.navbar-dropdown {
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .08);
  padding: 8px;
}

.navbar-dropdown .navbar-item {
  border-radius: 6px;
  font-weight: 400;
  padding: 8px 16px;
}

.navbar-dropdown .navbar-item:hover {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
}

.btn-login {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: .82rem;
  padding: 0 22px;
  height: 38px;
  transition: all .2s;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-login:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ===== DATASET CARD (shared) ===== */
.dataset-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: all .3s;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dataset-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.dataset-card .card-stripe {
  height: 4px;
  width: 100%;
}

.dataset-card .card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dataset-card .badge-kat {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: .68rem;
  font-weight: 600;
  margin-bottom: 8px;
  width: fit-content;
}

.dataset-card h4 {
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.45;
  margin-bottom: 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dataset-card h4:hover {
  color: var(--primary);
}

.dataset-card .org {
  font-size: .76rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 12px;
}

.dataset-card .meta {
  display: flex;
  gap: 14px;
  font-size: .72rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.dataset-card .meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dataset-card .card-footer-custom {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dataset-card .btn-detail {
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color .2s;
}

.dataset-card .btn-detail:hover {
  color: var(--primary-dark);
}

.format-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 4px;
}

.format-csv {
  background: #d1fae5;
  color: #059669;
}

.format-xlsx {
  background: #dbeafe;
  color: #2563eb;
}

.format-pdf {
  background: #fee2e2;
  color: #dc2626;
}

.format-json {
  background: #fef3c7;
  color: #d97706;
}

/* ===== FOOTER ===== */
.footer-main {
  background: #0f172a;
  color: #cbd5e1;
}

.footer-main h5 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1rem;
  font-weight: 600;
}

.footer-main a {
  color: #94a3b8;
  text-decoration: none;
  transition: .3s;
}

.footer-main a:hover {
  color: #38bdf8;
}

.social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff !important;
  transition: .3s;
}

.social-link:hover {
  background: #0d6efd;
  transform: translateY(-3px);
}

.footer-main hr {
  opacity: .15;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all .2s;
  font-size: .85rem;
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
}

.footer-bottom {
  background: #0f172a;
  padding: 14px 0;
  text-align: center;
  font-size: .76rem;
  color: #64748b;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #fff;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
  max-width: 360px;
  border-left: 4px solid var(--primary);
  font-size: .85rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all .3s;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 84px;
  right: 24px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(16, 185, 129, .4);
  transition: all .3s;
  opacity: 0;
  transform: translateY(10px);
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}