:root {
  --bg: #f3f7f4;
  --surface: #ffffff;
  --surface-soft: #f8fbf8;
  --text: #1f2d2b;
  --muted: #60706d;
  --line: #dbe5df;
  --primary: #1f7a63;
  --primary-strong: #0f5a47;
  --accent: #f2b45a;
  --shadow-lg: 0 20px 48px rgba(16, 40, 33, 0.12);
  --shadow-md: 0 10px 24px rgba(16, 40, 33, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, #dcefe7 0, transparent 35%),
    radial-gradient(circle at 86% 12%, #e4efe3 0, transparent 30%),
    linear-gradient(170deg, #f5faf6 0%, #edf4ee 48%, #f7f2e8 100%);
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  padding: 24px 16px 96px;
}

.bg-orb {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(44px);
  pointer-events: none;
  z-index: -1;
}

.orb-1 {
  top: -120px;
  right: -110px;
  background: rgba(57, 153, 124, 0.24);
}

.orb-2 {
  bottom: -160px;
  left: -140px;
  background: rgba(236, 177, 86, 0.18);
}

.arsip-header {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 28px;
  background: linear-gradient(135deg, #1f7a63, #185848);
  color: #f4fff8;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px;
  opacity: 0.8;
}

.arsip-header h1 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.subhead {
  margin: 0;
  max-width: 620px;
  color: rgba(240, 255, 246, 0.9);
  line-height: 1.5;
}

.container {
  max-width: 980px;
  margin: 22px auto 0;
}

.controls-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 14px;
}

.search-bar,
.filter-bar {
  display: grid;
  gap: 8px;
}

.search-bar label,
.filter-bar label {
  font-size: 13px;
  font-weight: 700;
  color: #39524d;
}

.search-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar input:focus,
.filter-bar select:focus {
  border-color: #4a9b84;
  box-shadow: 0 0 0 3px rgba(31, 122, 99, 0.14);
}

.arsip-list {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.arsip-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid #e2ebe5;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 22px rgba(23, 52, 44, 0.07);
}

.arsip-item-text h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.arsip-date {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.download-btn {
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 14px;
  white-space: nowrap;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.download-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.empty-state {
  padding: 28px 18px;
  text-align: center;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px dashed #cfded6;
  color: var(--muted);
}

/* ===============================
   BOTTOM NAVIGATION
================================ */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.bottom-nav .nav-item {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #333;
  padding: 6px 0;
  position: relative;
  transition: all .25s ease;
}

.bottom-nav .icon {
  font-size: 22px;
  display: block;
}

.bottom-nav .label {
  font-size: 12px;
}

.bottom-nav .admin {
  color: #b00000;
  font-weight: bold;
}

.bottom-nav .nav-item.active {
  color: #0b5ed7;
  transform: translateY(-2px);
}

.bottom-nav .nav-item.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30%;
  right: 30%;
  height: 3px;
  background: #0b5ed7;
  border-radius: 0 0 6px 6px;
}


.more-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 34, 29, 0.45);
  display: none;
  z-index: 1100;
}

.more-menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%;
  z-index: 1200;
  background: #fff;
  border-radius: 18px 18px 0 0;
  transition: bottom 0.28s ease;
}

.more-menu.show {
  bottom: 0;
}

.more-overlay.show {
  display: block;
}

.more-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5ebe7;
  padding: 14px 18px;
  font-weight: 700;
}

.more-header button {
  border: none;
  background: none;
  font-size: 17px;
  cursor: pointer;
}

.more-menu a {
  display: block;
  padding: 14px 18px;
  text-decoration: none;
  color: #233532;
  border-bottom: 1px solid #eef2ef;
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 16px 20px;
  min-width: 300px;
  max-width: 500px;
  animation: slideIn 0.35s ease-out;
  z-index: 1300;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notification-content {
  display: flex;
  gap: 12px;
  flex: 1;
}

.notification-icon {
  font-size: 22px;
  font-weight: 700;
  min-width: 28px;
  text-align: center;
  line-height: 1;
}

.notification-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.notification-message {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.35;
}

.notification-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #a0aaa6;
  cursor: pointer;
}

.notification-success {
  border-left: 4px solid #2ca16e;
  background: linear-gradient(135deg, #f2fdf7 0%, #ffffff 100%);
}

.notification-error {
  border-left: 4px solid #d9534f;
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.notification-info {
  border-left: 4px solid #2d7dbb;
  background: linear-gradient(135deg, #f4f9ff 0%, #ffffff 100%);
}

@keyframes slideIn {
  from {
    transform: translateX(360px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification.hide {
  animation: slideOut 0.28s ease-in forwards;
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(360px);
    opacity: 0;
  }
}

@media (min-width: 720px) {
  .controls-card {
    grid-template-columns: 1.7fr 1fr;
    align-items: end;
  }
}

@media (max-width: 640px) {
  body {
    padding: 16px 12px 88px;
  }

  .arsip-header {
    padding: 24px 18px;
  }

  .arsip-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-btn {
    width: 100%;
    text-align: center;
  }

  .notification {
    left: 12px;
    right: 12px;
    min-width: auto;
  }
}
