/* ===== GLOBAL ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;600;700&display=swap');

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: radial-gradient(circle at top left, #003d28, #000);
  color: #e8fff4;
  min-height: 100vh;
  overflow-x: hidden;
}
/* Notice bar for testing phase */
.notice-bar {
  background-color: #e0e0e0;
  color: #333;
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid #ccc;
  width: 100%;
}

/* ===== GLOW EFFECT ===== */
.glow {
  text-shadow: 0 0 10px #00ffae, 0 0 20px #00ffae;
}

/* ===== AUTH SECTION ===== */
#auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  animation: fadeIn 1.2s ease-in-out;
}

.auth-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0, 255, 174, 0.2);
  text-align: center;
  width: 90%;
  max-width: 400px;
  backdrop-filter: blur(15px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(0, 255, 174, 0.4);
}

.logo {
  width: 100px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px #00ffae);
}

.auth-box h2 {
  color: #00ffae;
  font-weight: 700;
  font-size: 1.6rem;
}

.tagline {
  color: #d4ffe9;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.auth-box input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: none;
  border-radius: 10px;
  outline: none;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.auth-buttons {
  display: flex;
  justify-content: space-between;
}

.auth-buttons button {
  width: 48%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(90deg, #00c67a, #00ffae);
  color: #000;
  transition: 0.3s;
}

.auth-buttons .secondary {
  background: linear-gradient(90deg, #00442b, #00643f);
  color: #fff;
}

.auth-buttons button:hover {
  box-shadow: 0 0 15px #00ffae;
}

/* ===== DASHBOARD ===== */
#dashboard {
  padding: 30px;
  max-width: 1150px;
  margin: auto;
  animation: fadeIn 1s ease-in;
}

#dashboard h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #00ffae;
  margin-bottom: 30px;
}

#summary-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
  gap: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  flex: 1;
  min-width: 250px;
  max-width: 320px;
  box-shadow: 0 0 20px rgba(0, 255, 174, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(0, 255, 174, 0.5);
}

.card span {
  display: block;
  font-size: 26px;
  font-weight: bold;
  color: #00ffae;
}

/* ===== INPUT AREA ===== */
#input-area {
  text-align: center;
  margin-bottom: 25px;
}

#input-area input {
  width: 20%;
  padding: 10px;
  margin: 6px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

#save-btn, #export-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  font-weight: 600;
  color: #000;
  background: linear-gradient(90deg, #00c67a, #00ffae);
  transition: box-shadow 0.3s ease;
}

#save-btn:hover, #export-btn:hover {
  box-shadow: 0 0 20px #00ffae;
}

/* ===== TABLE ===== */
#products-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 25px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  overflow: hidden;
}

#products-table th,
#products-table td {
  padding: 12px;
  text-align: center;
}

#products-table th {
  background: #00643f;
  color: #00ffae;
  font-weight: 600;
}

#products-table tr:nth-child(even) {
  background: rgba(0, 255, 174, 0.05);
}

#products-table button {
  background: linear-gradient(90deg, #00c67a, #00ffae);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  transition: 0.2s;
}

#products-table button:hover {
  box-shadow: 0 0 10px #00ffae;
}

/* ===== CHART ===== */
canvas {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px;
  margin-top: 25px;
  box-shadow: 0 0 15px rgba(0, 255, 174, 0.2);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
