/* RESET */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  background: #0b0b0b;
}

/* GOLD BACKGROUND */
body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;

  background:
    radial-gradient(circle at 20% 30%, rgba(255,215,0,0.5), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(255,165,0,0.4), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(255,200,0,0.35), transparent 50%);

  animation: goldFlow 12s linear infinite;
  filter: blur(80px);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;

  background:
    radial-gradient(circle at 60% 20%, rgba(255,215,0,0.3), transparent 40%),
    radial-gradient(circle at 30% 70%, rgba(255,140,0,0.35), transparent 45%);

  animation: goldFlowReverse 18s linear infinite;
  filter: blur(100px);
  z-index: 0;
}

@keyframes goldFlow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes goldFlowReverse {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

/* PARTICLES */

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particles span {
  position: absolute;
  width: 10px;
  height: 10px;

  background: radial-gradient(circle, #ffd700, #ff9900);

  border-radius: 50%;

  box-shadow:
    0 0 10px #ffd700,
    0 0 20px #ffcc00,
    0 0 40px rgba(255,215,0,0.6);

  animation: floatUp linear infinite;
}

.particles span:nth-child(1) {
  left: 5%;
  animation-duration: 10s;
}

.particles span:nth-child(2) {
  left: 15%;
  animation-duration: 14s;
}

.particles span:nth-child(3) {
  left: 25%;
  animation-duration: 12s;
}

.particles span:nth-child(4) {
  left: 35%;
  animation-duration: 16s;
}

.particles span:nth-child(5) {
  left: 45%;
  animation-duration: 13s;
}

.particles span:nth-child(6) {
  left: 55%;
  animation-duration: 15s;
}

.particles span:nth-child(7) {
  left: 65%;
  animation-duration: 11s;
}

.particles span:nth-child(8) {
  left: 75%;
  animation-duration: 17s;
}

.particles span:nth-child(9) {
  left: 85%;
  animation-duration: 14s;
}

.particles span:nth-child(10) {
  left: 95%;
  animation-duration: 18s;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0.5);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateY(-10vh) scale(1.3);
    opacity: 0;
  }
}

/* HERO SECTION */

.hero {
  position: relative;
  z-index: 2;

  height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 20px;
}

.hero h1 {
  font-size: 70px;
  color: gold;

  margin-bottom: 20px;

  text-shadow: 0 0 20px rgba(255,215,0,0.6);
}

.hero p {
  color: white;

  font-size: 24px;

  max-width: 800px;

  margin-bottom: 40px;

  line-height: 1.6;
}

.hero-btn {
  padding: 18px 50px;

  border: none;
  border-radius: 15px;

  background: linear-gradient(to right, gold, orange);

  color: black;

  font-size: 22px;
  font-weight: bold;

  cursor: pointer;

  transition: 0.3s ease;

  box-shadow: 0 0 20px rgba(255,215,0,0.5);
}

.hero-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 35px gold;
}

/* DASHBOARD */

.dashboard {
  display: flex;
  position: relative;
  z-index: 2;
}

/* SIDEBAR */

.sidebar {
  width: 250px;
  min-height: 100vh;

  background: rgba(0,0,0,0.4);

  backdrop-filter: blur(10px);

  border-right: 1px solid rgba(255,255,255,0.1);

  padding: 30px 20px;
}

.sidebar h2 {
  color: gold;
  margin-bottom: 40px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  padding: 16px;
  margin-bottom: 15px;

  border-radius: 12px;

  background: rgba(255,255,255,0.05);

  cursor: pointer;

  transition: 0.3s ease;
}

.sidebar ul li:hover {
  background: linear-gradient(to right, gold, orange);

  transform: translateX(5px);

  box-shadow: 0 0 20px rgba(255,215,0,0.4);
}

/* SIDEBAR LINKS */

.sidebar ul li a {
  text-decoration: none;
  color: white;

  display: block;
  width: 100%;
  height: 100%;
}

.sidebar ul li a:hover {
  color: black;
}

/* MAIN CONTENT */

.main-content {
  flex: 1;
  padding: 40px;
}

.main-content h1 {
  color: gold;
  margin-bottom: 30px;
}

/* CARDS */

.cards {
  display: flex;
  gap: 20px;

  margin-bottom: 40px;
}

.card {
  flex: 1;

  background: rgba(255,255,255,0.08);

  backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.1);

  border-radius: 20px;

  padding: 30px;

  text-align: center;

  box-shadow: 0 0 20px rgba(255,215,0,0.1);
}

.card h2 {
  color: gold;
  font-size: 40px;
}

.card p {
  color: white;
  margin-top: 10px;
}

/* FORM CONTAINER */

.container {
  position: relative;
  z-index: 2;

  width: 500px;

  margin-top: 20px;

  background: rgba(255,255,255,0.08);

  backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.2);

  padding: 30px;

  border-radius: 20px;

  box-shadow: 0 0 40px rgba(255,215,0,0.2);
}

h1 {
  color: gold;
  text-align: center;
  margin-bottom: 25px;
  font-size: 42px;
}

/* INPUTS */

input {
  width: 100%;

  padding: 14px;

  margin-top: 12px;

  border: none;
  border-radius: 12px;

  background: rgba(255,255,255,0.1);

  color: white;

  font-size: 14px;

  outline: none;

  box-sizing: border-box;
}

input::placeholder {
  color: #ddd;
}

/* DROPDOWN */

select {
  width: 100%;

  padding: 14px;

  margin-top: 12px;

  border: none;
  border-radius: 12px;

  background: rgba(255,255,255,0.1);

  color: white;

  font-size: 14px;

  outline: none;

  box-sizing: border-box;

  backdrop-filter: blur(10px);

  appearance: none;

  cursor: pointer;
}

select option {
  background: #1a1a1a;
  color: gold;
}

/* BUTTON */

button {
  width: 100%;

  padding: 14px;

  margin-top: 20px;

  border: none;
  border-radius: 12px;

  background: linear-gradient(to right, gold, orange);

  color: black;

  font-size: 16px;
  font-weight: bold;

  cursor: pointer;

  transition: 0.3s ease;
}

button:hover {
  transform: scale(1.03);

  box-shadow: 0 0 20px gold;
}

/* RESULT */

.result {
  margin-top: 25px;

  text-align: center;

  color: gold;

  font-size: 24px;

  font-weight: bold;
}

/* PREMIUM SCROLLBAR */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #111;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(gold, orange);
  border-radius: 10px;
}

/* SMOOTH SCROLL */

html {
  scroll-behavior: smooth;
}

/* RESPONSIVE */

@media (max-width: 900px) {

  .dashboard {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-height: auto;
  }

  .cards {
    flex-direction: column;
  }

  .container {
    width: 90%;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 18px;
  }
}

/* ONLY CENTER PREDICTION PAGE */

.prediction-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;

  width: 100%;
}

.prediction-page .container {
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
}
/* ANALYTICS CHARTS */

.charts {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.chart-card {
  flex: 1;
  min-width: 320px;

  height: 420px;

  background: rgba(255,255,255,0.08);

  border: 1px solid rgba(255,255,255,0.15);

  border-radius: 20px;

  padding: 20px;

  backdrop-filter: blur(10px);

  box-shadow: 0 0 25px rgba(255,215,0,0.15);

  overflow: hidden;
}

.chart-title {
  color: gold;
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.chart-card canvas {
  width: 100% !important;
  height: 300px !important;
}
/* HISTORY TABLE */

.table-container {

  margin-top: 40px;

  background: rgba(255,255,255,0.08);

  border: 1px solid rgba(255,255,255,0.15);

  border-radius: 20px;

  padding: 25px;

  backdrop-filter: blur(10px);

  box-shadow: 0 0 25px rgba(255,215,0,0.15);

  overflow-x: auto;
}

/* TABLE */

table {
  width: 100%;
  border-collapse: collapse;
}

/* TABLE HEAD */

th {

  background: linear-gradient(to right, gold, orange);

  color: black;

  padding: 18px;

  font-size: 18px;

  text-align: center;
}

/* TABLE DATA */

td {

  padding: 18px;

  text-align: center;

  color: white;

  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ROW HOVER */

tr:hover {
  background: rgba(255,255,255,0.05);
}

/* STATUS */

.approved {
  color: #00ff99;
  font-weight: bold;
}

.rejected {
  color: #ff5c5c;
  font-weight: bold;
}
/* RESULT IMAGE SECTION */

.result-box {

  margin-top: 30px;

  text-align: center;

  animation: fadeInResult 0.8s ease;
}

/* RESULT IMAGE */

.result-image {

  width: 260px;

  max-width: 100%;

  margin-bottom: 20px;

  border-radius: 20px;

  box-shadow:
    0 0 20px rgba(255,215,0,0.3),
    0 0 40px rgba(255,165,0,0.2);

  animation: bounceResult 1.2s infinite alternate;
}

/* RESULT TEXT */

.result {

  margin-top: 10px;

  text-align: center;

  color: gold;

  font-size: 28px;

  font-weight: bold;

  text-shadow: 0 0 10px rgba(255,215,0,0.4);
}

/* BOUNCE ANIMATION */

@keyframes bounceResult {

  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-10px);
  }
}

/* FADE ANIMATION */

@keyframes fadeInResult {

  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* ACTIVE SIDEBAR */

.sidebar ul li.active {

  background: linear-gradient(to right, gold, orange);

  box-shadow: 0 0 20px rgba(255,215,0,0.5);

  transform: translateX(5px);
}

.sidebar ul li.active a {

  color: black;

  font-weight: bold;
}
/* FOOTER */

.footer {

  text-align: center;

  color: rgba(255,255,255,0.7);

  padding: 20px;

  margin-top: 40px;

  font-size: 15px;

  letter-spacing: 1px;
}
/* DARK MODE BUTTON */

.theme-btn {

    width: 100%;

    padding: 12px;

    margin-top: 20px;

    margin-bottom: 20px;

    border: none;

    border-radius: 12px;

    background: #FFD700;

    color: black;

    font-weight: bold;

    font-size: 15px;

    cursor: pointer;

    transition: 0.3s;
}

.theme-btn:hover {

    transform: scale(1.03);

    background: #ffcc00;
}

/* DARK MODE */

.dark-mode {

    background: #111 !important;

    transition: 0.4s;
}

.dark-mode .sidebar,
.dark-mode .card,
.dark-mode .container,
.dark-mode .chart-card,
.dark-mode table {

    background: rgba(25,25,25,0.95) !important;

    border: 1px solid rgba(255,255,255,0.08);
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode p,
.dark-mode a,
.dark-mode th,
.dark-mode td {

    color: white !important;
}

.dark-mode input,
.dark-mode select {

    background: #222 !important;

    color: white !important;

    border: 1px solid rgba(255,255,255,0.1);
}