/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #212529;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;

}

/* HEADER */
.aurora-header {
  position: fixed;
  top: 10%;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  padding: 0;              /* buang padding kiri/kanan */
  z-index: 1000;
}

/* KIRI (menu + logo) */
.header-left {
  display: flex;
  align-items: center;
  background: #160032;
  border-radius: 0 999px 999px 0; 
  overflow: hidden;
  height: 70px;
  padding-right: 10px;
  position: relative;
}

.header-left:hover .logo {
  max-width: 120px;     /* width gambar */
  opacity: 1;
  margin-left: 10px;
}

.logo {
  overflow: hidden;
  transition: max-width 0.4s ease, opacity 0.4s ease;
  max-width: 0;         /* sorok logo */
  opacity: 0;
}

.logo img {
  height: 60px;
  object-fit: contain;
  display: block;
}

.menu-btn {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  padding: 0 20px;
  margin: 0;
  border: none;
  cursor: pointer;
  background: #160032;
  color: #fff;
  z-index: 2;
}


.menu-btn:hover {
  background: #f07c00;
  transform: scale(1);
}

/* Fullscreen menu (awal) */
.fullscreen-menu {
  position: fixed;
  top: 0;
  left: -100%; /* sembunyi luar screen kiri */
  width: 100%;
  height: 100%;
  background: rgba(15, 5, 40, 0.96);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: left 0.5s ease;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

/* Bila active → slide masuk */
.fullscreen-menu.active {
  left: 0;
  transform: translateX(0);
}

/* Close button */
.close-btn {
  position: absolute;
  top: 30px;
  right: 50px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.close-btn:hover {
  transform: rotate(90deg) scale(1.2);
  color: #f07c00;
}

/* Menu list */
.fullscreen-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.fullscreen-menu li {
  margin: 1.5rem 0;
}

/* Links */
.fullscreen-menu a {
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 2rem;
  border-radius: 14px;
  transition: all 0.35s ease;
  display: inline-block;
}

.fullscreen-menu a:hover {
  background: #f07c00;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}


/* HEADER KANAN */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;         
  margin-right: 15px;
  background: transparent;
  transition: 0.3s;
}

.header-right .btn:hover {
  background: #f07c00;
  transform: scale(1.1);
}

/* Book Now */
.book-btn {
  padding: 6px 16px;
  border-radius: 20px;
  background: #160032;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  transition: 0.3s;
  text-decoration: none;
}
.book-btn:hover {
  background: #d96d00;
  transform: scale(1.1);
}

/* SHARED BULAT BUTTON STYLE */
.circle-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin: 0;   /* terus rapat */
  cursor: pointer;
  border: none;
  background: #160032;
  color: #fff;
  transition: background 0.3s;
  text-decoration: none;
  transition: 0.3s;
}

.circle-btn:hover {
  background: #f07c00;
  color: #fff;
  transform: scale(1.1);
}

/* Translate dropdown */
.translate-wrapper {
  position: relative;
}

.translate-options {
  position: absolute;
  top: 55px; /* bawah button */
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 2000;
}

.translate-options button {
  background: none;
  border: none;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: #160032;
  transition: background 0.3s;
  text-decoration: none;
  transition: 0.3s;
}

.translate-options button:hover {
  background: #f07c00;
  color: #fff;
  transform: scale(1.1);
}

/* BANNER PROMOTION SLIDER */
.slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto;   /* jangan fixed height */
}


.slide {
  display: none;
  width: 100%;
  height: auto;
  text-align: center;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: auto;  /* ikut ratio asal */
  display: block;
}

.slide-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.slide-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.slide-text p {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.slide-text .btn {
  background: #160032;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

.prev { left: 10px; }
.next { right: 10px; }

@keyframes fade {
  from {opacity: 0.4;}
  to {opacity: 1;}
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .slide-text {
    left: 20px;
    right: 20px;
    bottom: 20px;
    padding: 15px;
  }
  .slide-text h2 {
    font-size: 1.5rem;
  }
  .slide-text p {
    font-size: 0.9rem;
  }
  .prev, .next {
    font-size: 1.5rem;
    padding: 8px;
  }
}

/* Banner fade */
.slide.fade {
  animation: fadeIn 1s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* SECTIONS */
.ticket-section {
  padding: 4rem 10%;
  background: #160032;
  text-align: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ticket-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #f07c00;
}

.ticket-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.ticket-form select,
.ticket-form input {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  min-width: 150px;
  font-size: 1rem;
  transition: border 0.3s, transform 0.2s;
}

.ticket-form select,
.ticket-form input[type="date"] {
  flex: 1;          /* Semua sama lebar, stretch */
  min-width: 150px; /* Elak terlalu sempit */
  padding: 8px;
  font-size: 16px;
}

.ticket-form select:focus,
.ticket-form input:focus {
  border-color: #f07c00;
  outline: none;
  transform: scale(1.05);
}

.ticket-form .btn {
  padding: 0.6rem 1.8rem;
  border-radius: 30px;
  background: #160032;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  text-decoration: none;
}

.ticket-form .btn:hover {
  background: #f07c00;
  transform: scale(1.05);
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  .ticket-form {
    flex-direction: column;
    gap: 0.5rem;
  }

  .ticket-form select,
  .ticket-form input,
  .ticket-form .btn {
    min-width: 100%;
  }
}
/* Planned Closure */

#planned-closure{
  background: #441690;
}

#planned-closure .cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: nowrap;
}

#planned-closure .card {
  flex: 0 0 250px;   /* fix size supaya semua sama */
}


.attractions {
  padding: 4rem 10%;
  text-align: center;
  background:#441690;
}

.attractions h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #f07c00;
}

.things-feature {
  padding: 4rem 10%;
  text-align: center;
  background: linear-gradient(to top, #160032, #441690);
}

.things-feature h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #f07c00;
}

.cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.card {
  background: #160032;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  width: 280px;
  transition: transform 0.3s;
  text-align: center;
  color: #fff; 
}

.closure-card h3, p{
  color: #fff; 
}

.cards .card img {
  width: 100%;
  height: 160px; 
  object-fit: cover;
}


.card:hover {
  transform: translateY(-8px);
}

.card .btn {
  margin-top: 1rem;
  display: inline-block;
  background: #441690;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  text-decoration: none;
  transition: 0.3s;
}

.card .btn:hover {
  background: #f07c00;
}

/* Responsive */
@media (max-width: 768px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }
}

.about {
  padding: 4rem 10%;
  text-align: left;
  color: #212529;
  background: #441690;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #f07c00;
  text-align: center;
}

.about h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  color: #160032;
}

.about p {
  font-size: 1rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .about {
    padding: 2rem 5%;
  }
}

/* Accordion Buttons */
.accordion {
  background: linear-gradient(to bottom, #160032, #0c001c);
  color: #fff;
  cursor: pointer;
  padding: 12px 20px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  font-size: 1.1rem;
  transition: 0.3s;
  border-radius: 8px;
  transition: 0.3s;
  margin-top: 1rem;
}

.accordion:hover {
  background: linear-gradient(to bottom, #f07c00, #be6301);
  transform: scale(1.01);

}

/* Panel (hidden content) */
.panel {
  max-height: 0;
  overflow: hidden;
  background-color: #f8f9fa;
  transition: max-height 0.5s ease;
  padding: 0 20px;
  border-radius: 0 0 8px 8px;
  margin-bottom: 0.5rem;
}

.panel.open {
  max-height: 500px; /* cukup tinggi untuk content */
  padding: 10px 20px;
}

.panel p {
  margin: 1rem;
  margin-bottom: 2rem;
  color: #000;
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  display: block; /* make <a> block to wrap image & text */
}

.card-img-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-img-wrapper:hover img {
  transform: scale(1.1); /* zoom effect */
}

.card-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  color: #fff;
  background: rgba(22,0,50,0.6); /* semi-transparent overlay */
  padding: 1rem;
  text-align: center;
}

.card-text h3 {
  margin: 0;
  font-size: 1.25rem;
  text-decoration: none;
}

.card-text p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

/* Explore Our Wolrds */
.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  background:  #160032, #441690;

}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 1rem;
}

.card {
  min-width: calc(33.333% - 1rem); /* 3 per row */
  box-sizing: border-box;
}

/* Reuse card-img-wrapper & hover zoom */
.card-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  display: block;
}

.card-img-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-img-wrapper:hover img {
  transform: scale(1.1);
}

.card-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  color: #fff;
  background: rgba(22,0,50,0.6);
  padding: 1rem;
  text-align: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #160032;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 100;
}

.carousel-btn:hover {
  background: #f07c00;
}

.carousel-btn.prev {
  left: 0.5rem;
}

.carousel-btn.next {
  right: 0.5rem;
}

/* Responsive */
@media (max-width: 992px) {
  .card {
    min-width: calc(50% - 1rem); /* 2 per row */
  }
}

@media (max-width: 600px) {
  .card {
    min-width: 100%; /* 1 per row */
  }
}

/* Top Features Grid */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  width: 220px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.feature-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #160032;
}

.feature-card p {
  font-size: 0.95rem;
  color: #212529;
}

/* Responsive */
@media (max-width: 992px) {
  .feature-card {
    width: calc(50% - 1rem);
  }
}

@media (max-width: 600px) {
  .feature-card {
    width: 100%;
  }
}

/* FOOTER */
footer {
    background: #160032;
    color: #f07c00;
    text-align: center;
    padding: 1rem;
    margin: 0;
}

/* RESPONSIVE (iPhone XS Max ~414px width) */
@media (max-width: 768px) {
    header nav ul {
        display: none;
        flex-direction: column;
        gap: 1rem;
        background: #fff;
        position: absolute;
        top: 70px;
        right: 5%;
        padding: 1rem 2rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
}


/* Hero Banner (static) */
.hero-img {
  position: relative;
  width: 100%;
  height: 70vh; /* sama macam banner index */
  overflow: hidden;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner-text h1{
  color: #f07c00;
}

/* TICKET & PAYMENT FORM */
.ticket-section, .payment-section {
    padding: 4rem 10%;
    background: #441690;
    text-align: center;
    color: #fff;
}

.ticket-section h2, .payment-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #f07c00;
}

.ticket-form, .payment-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: #160032;
    max-width: 600px;
    margin: 0 auto;
}

.ticket-form input,
.ticket-form select,
.payment-form input,
.payment-form select {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid #ccc;
    min-width: 150px;
    font-size: 1rem;
    transition: border 0.3s, transform 0.2s;
}

.ticket-form input:focus,
.ticket-form select:focus,
.payment-form input:focus,
.payment-form select:focus {
    border-color: #f07c00;
    outline: none;
    transform: scale(1.05);
}

.ticket-form .btn, .payment-form .btn {
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    background: #160032;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    text-decoration: none;
}

.ticket-form .btn:hover, .payment-form .btn:hover {
    background: #f07c00;
    transform: scale(1.05);
}

/* Availability Box */
.availability-box {
    background: #160032;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto 25px;
    text-align: center;
    color: white;
}

.availability-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.available {
    color: #2ecc71;
    font-weight: bold;
}

.unavailable {
    color: red;
    font-weight: bold;
}

.availability-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-proceed {
    background: #160032;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

.btn-proceed:hover {
    background: #f07c00;
}

.btn-another, .secondary-btn {
    background: #aaa;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

.btn-another:hover, .secondary-btn:hover {
    background: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .ticket-form, .payment-form {
        flex-direction: column;
    }

    .ticket-form input, .ticket-form select,
    .payment-form input, .payment-form select,
    .ticket-form .btn, .payment-form .btn {
        min-width: 100%;
    }
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 12px; /* jarak antara setiap field */
}

.payment-form label {
    font-weight: 600;
}

.payment-form input,
.payment-form select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.payment-form hr {
    margin: 20px 0;
}

.availability-actions {
    display: flex;
    gap: 10px;
}

/* Attractions Zig-Zag Layout */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.section-container h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  color: #222;
}

.attraction {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  gap: 30px;
}

.attraction.reverse {
  flex-direction: row-reverse;
}

.attraction img {
  width: 45%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.attraction .card-text {
  width: 55%;
}

.attraction h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #111;
}

.attraction p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 8px;
}

.attraction .price {
  font-weight: bold;
  color: #e74c3c;
  margin-top: 10px;
}

/* Responsive for tablets */
@media (max-width: 992px) {
  .attraction {
    flex-direction: column;
  }

  .attraction.reverse {
    flex-direction: column;
  }

  .attraction img,
  .attraction .card-text {
    width: 100%;
  }

  .attraction img {
    margin-bottom: 20px;
  }
}

/* ================================== */
/* ADMIN LOGIN PAGE - Aurora Escapades */
/* ================================== */
.admin-login-page {
  min-height: 100vh;
  background: radial-gradient(circle at top left, #321d6d, #0b0220 70%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Poppins", sans-serif;
  color: #fff;
  overflow: hidden;
  position: relative;
}

/* subtle aurora glow effect */
.admin-login-page::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,180,80,0.5), transparent 70%);
  filter: blur(80px);
  animation: floatGlow 6s ease-in-out infinite alternate;
}

.admin-login-page::after {
  content: "";
  position: absolute;
  bottom: -120px;
  right: -120px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(140,100,255,0.4), transparent 70%);
  filter: blur(100px);
  animation: floatGlow 7s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
  0% { transform: translateY(0px) rotate(0deg); opacity: 0.9; }
  100% { transform: translateY(20px) rotate(15deg); opacity: 1; }
}

.login-wrapper {
  width: 100%;
  max-width: 400px;
  padding: 1rem;
  z-index: 2;
}

.login-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  text-align: center;
  animation: fadeIn 1s ease;
}

/* header */
.login-header h1 {
  font-size: 1.9rem;
  font-weight: 600;
  background: linear-gradient(to right, #ffb86c, #ff8b00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.4rem;
}

.login-header p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  margin-bottom: 1.8rem;
}

/* alert */
.alert.error {
  background: rgba(255, 80, 80, 0.2);
  color: #ffaaaa;
  padding: 0.7rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* input field */
.form-group {
  margin-bottom: 1.1rem;
}

.login-form input {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.login-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.login-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 2px #ff8b00;
}

/* button */
.btn-login {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(90deg, #ff8b00, #ff5e00);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.btn-login:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(255, 136, 0, 0.6);
  text-decoration: none;
}

/* footer */
.login-footer {
  margin-top: 1.8rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================================== */
/* ADMIN DASHBOARD - Aurora Escapades */
/* ================================== */
.admin-dashboard {
  min-height: 100vh;
  background: radial-gradient(circle at top left, #321d6d, #0b0220 70%);
  font-family: "Poppins", sans-serif;
  color: #fff;
  overflow-x: hidden;
  position: relative;
  padding-top: 80px;
}

.admin-dashboard::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,180,80,0.5), transparent 70%);
  filter: blur(80px);
  animation: floatGlow 6s ease-in-out infinite alternate;
}

.admin-dashboard::after {
  content: "";
  position: absolute;
  bottom: -120px;
  right: -120px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(140,100,255,0.4), transparent 70%);
  filter: blur(100px);
  animation: floatGlow 7s ease-in-out infinite alternate-reverse;
}

/* header */
.admin-dashboard header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(22,0,50,0.8);
  backdrop-filter: blur(10px);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.admin-dashboard header h1 {
  font-size: 1.5rem;
  background: linear-gradient(90deg, #ffb86c, #ff8b00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.admin-dashboard header a {
  color: #ff8b00;
  text-decoration: none;
  font-weight: 600;
}

/* tabs */
.tab-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-buttons button {
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.tab-buttons button.active {
  background: linear-gradient(90deg, #ff8b00, #ff5e00);
  color: #fff;
  box-shadow: 0 0 10px rgba(255,136,0,0.6);
}

/* tab content */
.tab-content {
  display: none;
  animation: fadeIn 0.6s ease;
}

.tab-content.active {
  display: block;
}

/* table */
table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
}

table th, table td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}

table th {
  background: rgba(22,0,50,0.6);
}

table tr:hover {
  background: rgba(255,136,0,0.1);
}

/* buttons */
.btn-action {
  padding: 5px 10px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-add { background: linear-gradient(90deg, #ff8b00, #ff5e00); color: #fff; }
.btn-add:hover { box-shadow: 0 0 10px rgba(255,136,0,0.6); }

.btn-delete { background: rgba(255,80,80,0.7); color: #fff; }
.btn-delete:hover { background: #ff5050; box-shadow: 0 0 8px rgba(255,80,80,0.5); }

.btn-status { background: rgba(0,255,200,0.5); color: #fff; }
.btn-status:hover { background: #0ff; box-shadow: 0 0 8px rgba(0,255,200,0.5); }

/* add admin form */
form.add-admin {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

form.add-admin input {
  padding: 10px 12px;
  border-radius: 20px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  flex: 1;
}

form.add-admin input::placeholder {
  color: rgba(255,255,255,0.7);
}

.table-wrapper {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    position: relative;
}

form.add-admin {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10; /* pastikan button Add Admin boleh click */
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-buttons button {
  background: #4b2ac4;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.tab-buttons button:hover {
  background: #5e3ae8;
}

.tab-buttons button.active {
  background: #f5a623;
  color: #000;
  transform: scale(1.05);
}


/* fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px);}
  to { opacity: 1; transform: translateY(0);}
}
