/* === Base === */
body {
  font-family: 'Inter', 'Amiri', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  margin: 0;
  background: linear-gradient(180deg, #fffdf5, #f0fdf4);
  color: #0f172a;
  line-height: 1.6;
  background-image: url('lantern-pattern.png');
  background-size: cover;
  background-attachment: fixed;
}

.container {
  max-width: 1100px;
  margin: 28px auto;
  padding: 18px;
}

/* === Header === */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  font-weight: 900;
  font-size: 28px;
  background: linear-gradient(90deg, #16a34a, #facc15, #22c55e);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.header a {
  color: #166534;
  margin-left: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
.header a:hover {
  color: #facc15;
}

/* === Card === */
.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  border: 2px solid #facc15;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.12);
  margin-bottom: 20px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(22, 163, 74, 0.2);
}

/* === Tables === */
.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-container .table {
  min-width: 600px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}
.table th {
  text-align: left;
  padding: 10px 12px;
  color: #166534;
  font-size: 13px;
  border-bottom: 2px solid #d9f99d;
}
.table td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.table tr:hover td {
  background: #fef9c3;
}

/* === Highlight top 3 === */
.highlight {
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  font-weight: bold;
  border-left: 4px solid #facc15;
}

/* === KPI Row === */
.kpi-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.kpi {
  flex: 1;
  min-width: 160px;
  background: linear-gradient(135deg, #fefce8, #dcfce7);
  padding: 18px;
  border-radius: 14px;
  border: 2px solid #facc15;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.kpi:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.18);
}
.kpi .num {
  font-weight: 900;
  font-size: 30px;
  color: #15803d;
}
.kpi .small {
  color: #4d7c0f;
  font-size: 13px;
  margin-top: 6px;
}

/* === Badges === */
.badge-live {
  background: #dcfce7;
  color: #15803d;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #22c55e;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.25s, transform 0.15s;
}
.btn.primary {
  background: linear-gradient(90deg, #15803d, #16a34a);
  color: white;
}
.btn.danger {
  background: linear-gradient(90deg, #b91c1c, #dc2626);
  color: white;
}
.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}
.btn.disabled {
  background: #cbd5e1;
  color: white;
  pointer-events: none;
}

/* === Navbar === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: linear-gradient(90deg, #15803d, #22c55e, #facc15);
  color: white;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.navbar .brand {
  font-weight: 900;
  font-size: 22px;
}
.navbar .nav-links a {
  color: white;
  margin-left: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.25s;
}
.navbar .nav-links a:hover {
  opacity: 0.85;
  color: #fef08a;
}

/* === Hero Section === */
.hero {
  text-align: center;
  padding: 70px 20px;
  background: linear-gradient(135deg, #ecfccb, #fef9c3);
  border-radius: 18px;
  margin-bottom: 26px;
  box-shadow: 0 8px 20px rgba(22,163,74,0.12);
}
.hero h1 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 12px;
  color: #166534;
}
.hero h1 span {
  background: linear-gradient(90deg, #15803d, #facc15, #22c55e);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
.hero p {
  color: #365314;
  max-width: 640px;
  margin: 0 auto 20px auto;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* === Footer === */
.footer {
  text-align: center;
  color: #84cc16;
  padding: 28px 12px;
  font-size: 13px;
  margin-top: 20px;
}
.footer .sub {
  font-size: 12px;
  color: #a3e635;
}

.footer .sub_middle {
  /*font-size: 12px;
  color: #a3e635;*/
  display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
   
    font-size: 13px;
     flex: 1;
    text-align: center;
}

/* === Responsive Breakpoints === */

/* Large Screens (≥1200px) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
    padding: 24px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .kpi .num {
    font-size: 38px;
  }
  .table {
    font-size: 15px;
  }
}

/* Medium Screens (≤1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 16px;
  }
  .header {
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero {
    padding: 50px 20px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .kpi-row {
    gap: 10px;
  }
  .table th,
  .table td {
    padding: 10px;
  }
}

/* Small Screens (≤700px) */
@media (max-width: 700px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-radius: 0;
    padding: 12px 16px;
  }
  .navbar .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero {
    padding: 40px 16px;
    margin-bottom: 20px;
  }
  .hero h1 {
    font-size: 26px;
    line-height: 1.2;
  }
  .hero p {
    font-size: 14px;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
  .kpi-row {
    flex-direction: column;
    gap: 14px;
  }
  .kpi {
    min-width: auto;
  }
  .table {
    font-size: 13px;
  }
  .table th, .table td {
    padding: 8px;
  }
  .card {
    padding: 16px;
  }
  .footer {
    font-size: 12px;
    padding: 20px 10px;
  }
}

/* Extra Small Screens (≤400px) */
@media (max-width: 400px) {
  .brand {
    font-size: 20px;
  }
  .hero h1 {
    font-size: 22px;
  }
  .hero p {
    font-size: 13px;
  }
  .kpi .num {
    font-size: 26px;
  }
  .btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}
