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

/* ---------- GLOBAL ---------- */
:root {
  --accent:#0b2d52;
  --highlight:#FFC107;
  --bg-overlay:rgba(255,255,255,0.15);
}

*{ box-sizing:border-box; }

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  color: #0b2233;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* === BACKGROUND UTAMA: Smooth Fade Antara 5 Gambar === */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: smoothFade5 100s ease-in-out infinite;
  z-index: -3;
  filter: brightness(0.9);
}

@keyframes smoothFade5 {
  0%, 19% {
    background-image: url("../images/adtecmelaka1.jpg");
    opacity: 1;
  }
  20%, 39% {
    background-image: url("../images/adtecmelaka6.jpg");
    opacity: 1;
  }
  40%, 59% {
    background-image: url("../images/adtecmelaka3.jpg");
    opacity: 1;
  }
  60%, 79% {
    background-image: url("../images/adtecmelaka4.jpg");
    opacity: 1;
  }
  80%, 100% {
    background-image: url("../images/adtecmelaka5.jpg");
    opacity: 1;
  }
}

/* === CAHAYA HALUS BERGERAK (Particle Glow) === */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.35) 2px, transparent 3px),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.25) 2px, transparent 3px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.2) 2px, transparent 3px),
    radial-gradient(circle at 60% 40%, rgba(255,255,255,0.3) 2px, transparent 3px);
  background-size: 300px 300px;
  animation: moveParticles 60s linear infinite;
  z-index: -2;
}

@keyframes moveParticles {
  0% { background-position: 0 0, 50px 50px, 100px 100px, 150px 150px; }
  100% { background-position: 300px 300px, 350px 350px, 400px 400px, 450px 450px; }
}

/* === CAHAYA HALUS BERGERAK (Particle Glow) === */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.35) 2px, transparent 3px),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.25) 2px, transparent 3px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.2) 2px, transparent 3px),
    radial-gradient(circle at 60% 40%, rgba(255,255,255,0.3) 2px, transparent 3px);
  background-size: 300px 300px;
  animation: moveParticles 60s linear infinite;
  z-index: -2;
}

@keyframes moveParticles {
  0% { background-position: 0 0, 50px 50px, 100px 100px, 150px 150px; }
  100% { background-position: 300px 300px, 350px 350px, 400px 400px, 450px 450px; }
}

/* ---------- NAVBAR ---------- */
.site-header{
  background:rgba(11,45,82,0.65);
  position:sticky;top:0;z-index:999;
  box-shadow:0 6px 20px rgba(11,45,82,0.3);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.nav-container{
  max-width:1200px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 20px;
}
.logo-wrap{display:flex;align-items:center;gap:10px}
.logo{max-height:40px;display:block}
.brand{font-weight:700;color:var(--highlight);font-size:20px}
.top-menu{display:flex;gap:22px;align-items:center}
.top-menu a{
  color:#fff;text-decoration:none;font-weight:600;position:relative;padding:8px 0;
}
.top-menu a::after{
  content:"";position:absolute;left:0;bottom:0;height:3px;
  background:var(--highlight);width:0%;
  transition:width .28s cubic-bezier(.2,.8,.2,1);
}
.top-menu a.active::after,.top-menu a:hover::after{width:100%}
.top-menu a:hover{color:var(--highlight)}
.hamburger{display:none;color:#fff;font-size:24px;cursor:pointer}
@media (max-width:820px){
  .top-menu{display:none;position:absolute;right:14px;top:62px;
    background:rgba(11,45,82,0.9);flex-direction:column;padding:12px;
    border-radius:6px;box-shadow:0 8px 30px rgba(11,45,82,0.35)}
  .top-menu.show{display:flex}
  .hamburger{display:block}
}

/* ---------- MAIN LAYOUT ---------- */
.utama-main {
  display:flex;justify-content:center;align-items:flex-start;
  min-height:calc(100vh - 70px);
  padding:20px;
  flex-direction: column;
}

/* ---------- ADUAN & STATUS CARD (Normal Style) ---------- */
.aduan-card,
.status-card,
.info-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  padding: 25px 28px;
  color: #222;
  transition: all 0.3s ease;
}

.aduan-card:hover,
.status-card:hover,
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* ---------- STATUS BOX ENHANCED ---------- */
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #f9fbff 0%, #eef3ff 100%);
  border: 1px solid rgba(0, 60, 120, 0.1);
  padding: 14px 18px;
  margin: 10px 0;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: 0.3s ease;
}

.status-row:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Status title */
.status-row strong {
  color: #0b2d52;
  font-weight: 700;
  font-size: 1em;
}

/* Status label */
.status-label {
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9em;
  letter-spacing: 0.4px;
  text-transform: capitalize;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Warna label baru */
.status-cemas {
  background: linear-gradient(135deg, #ff6b6b, #ff3b3b);
  color: #fff;
}
.status-sederhana {
  background: linear-gradient(135deg, #ffd633, #ffb300);
  color: #333;
}
.status-rendah {
  background: linear-gradient(135deg, #00c851, #007e33);
  color: #fff;
}

/* View Button */
.view-btn {
  background: #007aff;
  border: none;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}
.view-btn:hover {
  background: #005de8;
  box-shadow: 0 4px 10px rgba(0, 90, 255, 0.3);
}

/* ---------- AUTH CARD (LOGIN BOX) ---------- */
.auth-card {
  max-width: 400px;
  width: 90%;
  margin: 60px auto;
  padding: 35px 28px;
  text-align: left;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.auth-card h2 {
  text-align: center;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
  margin-bottom: 25px;
}

.auth-card label {
  color: #f1f1f1;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.auth-card input {
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  color: #111;
  font-weight: 500;
  transition: 0.25s;
}

.auth-card input::placeholder {
  color: #333;
  opacity: 0.8;
}

.auth-card input:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.95);
}

/* ---------- BUTTON (Login) ---------- */
.btn-submit {
  width: 100%;
  font-size: 16px;
  background: linear-gradient(135deg, #007aff, #00c6ff);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  letter-spacing: 0.5px;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ---------- LINK STYLING (Daftar, Admin) ---------- */
.auth-card p, .auth-card a {
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.auth-card a:hover {
  color: #ffe066;
  text-shadow: 0 0 6px rgba(255, 240, 150, 0.8);
}

/* --- FORM STYLING BALANCE (clear text tapi masih glassy) --- */
input, select, textarea {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  outline: none;
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12); /* maintain glass effect */
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 6px rgba(0, 136, 255, 0.6);
}

label {
  display: block;
  font-weight: 500;
  color: #f5f5f5; /* lebih cerah dari sebelum ni */
  margin-bottom: 6px;
}

/* ---------- BUTTONS ---------- */
.btn,.btn-submit{
  display:inline-block;padding:10px 16px;border-radius:12px;
  border:none;cursor:pointer;font-weight:700;
  transition:0.2s;
}
.btn.primary{background:var(--highlight);color:#000}
.btn-submit{
  width:100%;font-size:16px;
  background:linear-gradient(135deg,#007aff,#00c6ff);
  color:#fff;
  box-shadow:0 6px 15px rgba(0,0,0,0.25);
}
.btn-submit:hover{transform:translateY(-3px);box-shadow:0 6px 18px rgba(0,0,0,0.35)}

/* ---------- STATUS ---------- */
.status-header{text-align:center;margin-bottom:20px}
.status-header h2{
  font-size:1.8em;color:#fff;
  border-bottom:2px solid #00c6ff;
  display:inline-block;padding-bottom:5px;
}
.status-row{
  display:flex;justify-content:space-between;align-items:center;
  padding:14px 18px;margin:8px 0;border-radius:10px;
  background:rgba(255,255,255,0.15);
  box-shadow:0 2px 6px rgba(0,0,0,0.15);
  transition:0.2s;
  backdrop-filter:blur(10px);
  color:#fff;
}
.status-row:hover{transform:translateY(-2px);box-shadow:0 6px 12px rgba(0,0,0,0.2)}
.status-label{padding:6px 12px;border-radius:20px;font-size:.85em;font-weight:700}
.status-cemas{background:#ffe0e0;color:#c00}
.status-sederhana{background:#fff6cc;color:#b36b00}
.status-rendah{background:#d9f9d9;color:#267326}
.view-btn{cursor:pointer;border:none;background:#00c6ff;color:#fff;
  border-radius:6px;padding:4px 8px;font-size:1em}
.view-btn:hover{background:#0096e6}

/* ---------- MODAL ---------- */
.modal{
  display:none;position:fixed;top:0;left:0;width:100%;height:100%;
  background:rgba(0,0,0,0.6);display:flex;justify-content:center;align-items:center;
  z-index:9999;
}
.modal-content{
  background:#fff;padding:20px;border-radius:12px;
  width:90%;max-width:600px;box-shadow:0 8px 20px rgba(0,0,0,0.25);
  animation:fadeIn 0.3s ease;position:relative;z-index:10000;
}
.close{float:right;cursor:pointer;font-size:1.5em;color:#666}
.close:hover{color:#000}

/* ---------- PREVIEW ---------- */
#preview{
  margin-top:10px;display:flex;flex-wrap:wrap;gap:10px;
}
#preview img,#preview embed,#preview video{
  border-radius:8px;box-shadow:0 4px 10px rgba(0,0,0,0.15);
}

/* ---------- ADMIN CARDS (JANGAN USIK - KEKAL) ---------- */
.admin-cards{
  display:flex;flex-wrap:wrap;gap:20px;justify-content:center;margin-top:30px
}
.admin-cards .card{
  flex:1 1 250px;background:linear-gradient(135deg,#007aff,#00c6ff);color:#fff;
  text-align:center;cursor:pointer;transition:.3s;
}
.admin-cards .card:hover{
  transform:translateY(-8px) scale(1.03);
  box-shadow:0 10px 20px rgba(0,0,0,0.3)
}

/* ---------- BRAND TITLE ---------- */
.brand-title{
  font-family:'Montserrat',sans-serif;font-size:20px;font-weight:700;
  text-transform:uppercase;letter-spacing:1px;
  background:linear-gradient(90deg,#fff,#ffe066,#fff);
  background-size:200% auto;background-clip:text;-webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:shine 5s linear infinite;
}
.brand-sub{
  display:block;font-size:13px;font-weight:500;color:#ffe066;
  margin-top:2px;letter-spacing:.5px;
}
@keyframes shine{0%{background-position:0% center}100%{background-position:200% center}}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}

/* ---------- LOGOUT BUTTON ---------- */
.btn-logout{
  padding:8px 16px;
  border:none;
  border-radius:12px;
  background:linear-gradient(135deg,#ff4b5c,#ff6b81);
  color:#fff;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(255,75,92,0.3);
  transition:0.2s;
}
.btn-logout:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(255,75,92,0.4);
}

/* === TULISAN DALAM KOTAK (ADUAN, STATUS, INFO) === */
.aduan-card,
.status-card,
.info-card {
  color: #0b2233; /* teks utama */
  background: rgba(255, 255, 255, 0.9); /* lebih solid, masih lembut */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.4);
}

/* Tajuk dalam kad */
.aduan-card h2,
.status-card h2,
.info-card h2 {
  color: #0b2d52;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}

/* Label dan teks kecil */
.aduan-card label,
.status-card label,
.info-card label {
  color: #333;
  font-weight: 600;
}

/* Supaya semua input dalam kad lebih kontras */
.aduan-card input,
.aduan-card select,
.status-card input,
.status-card select {
  color: #000;
  background: rgba(255, 255, 255, 0.95);
}

/* === FIX: Nampakkan teks dalam input dan textarea === */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  color: #0b2233;              /* teks warna gelap */
  background-color: #ffffff;   /* latar belakang putih */
  border: 1px solid #ccc;      /* sempadan lembut */
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
}

textarea:focus,
input:focus,
select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 4px rgba(0,123,255,0.3);
}

textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.modal-content {
  background: #fff;
  border-radius: 14px;
  padding: 25px 30px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh; /* 🔥 had tinggi supaya boleh scroll */
  overflow-y: auto; /* 🔥 enable scroll dalam modal */
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  animation: fadeIn 0.3s ease;
  color: #0b2233;
}

/* Responsif untuk laptop/screen kecil */
@media (max-width: 768px) {
  .modal-content {
    padding: 20px;
    width: 95%;
    max-height: 85vh;
  }
}
