:root {
  --main-color: #FFAB28;
  --bg-color: #0D0D0D; /* dark background */
  --card-bg: #1A1A1A; /* dark gray for tables/cards */
  --text-color: #EDEDED;
  --muted-text: #AAAAAA;
}

body {
  background: var(--bg-color);
  font-family: 'Roboto', sans-serif;
  margin: 0;
  color: var(--text-color);
  line-height: 1.6;
}

.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* change to center if you want full vertical center */
  min-height: 100vh;
  padding: 2rem;
}


/* Title */
.center-title {
  text-align: center;
  margin-top: 2rem;
  color: var(--main-color);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Title Animation */
.center-title span {
  display: inline-block;
}

@keyframes jump {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.center-title.loading span {
  animation: jump 0.6s infinite ease-in-out;
}

.center-title.loading span:nth-child(1)  { animation-delay: 0s; }
.center-title.loading span:nth-child(2)  { animation-delay: 0.1s; }
.center-title.loading span:nth-child(3)  { animation-delay: 0.2s; }
.center-title.loading span:nth-child(4)  { animation-delay: 0.3s; }
.center-title.loading span:nth-child(5)  { animation-delay: 0.4s; }
.center-title.loading span:nth-child(6)  { animation-delay: 0.5s; }
.center-title.loading span:nth-child(7)  { animation-delay: 0.6s; }
.center-title.loading span:nth-child(8)  { animation-delay: 0.7s; }
.center-title.loading span:nth-child(9)  { animation-delay: 0.8s; }
.center-title.loading span:nth-child(10) { animation-delay: 0.9s; }
.center-title.loading span:nth-child(11) { animation-delay: 1s; }
.center-title.loading span:nth-child(12) { animation-delay: 1.1s; }
.center-title.loading span:nth-child(13) { animation-delay: 1.2s; }
.center-title.loading span:nth-child(14) { animation-delay: 1.3s; }
.center-title.loading span:nth-child(15) { animation-delay: 1.4s; }

.form-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1rem auto;
  max-width: 800px;
  width: 100%; /* keep form responsive */
}

.form-section input {
  flex: 1;          /* input expands */
  min-width: 400px; /* prevents too small */
}

.form-section button {
  flex-shrink: 0;   /* button keeps its natural size */
}

/* Button */
.submit-btn {
  background: var(--main-color);
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 200px;
}

.submit-btn:hover {
  background: #ffa500;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,171,40,0.3);
}

/* Table */
.table-section {
  margin: 2rem auto;
  max-width: 1000px;
  padding: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

td {
  border-bottom: 1px solid #333;
  padding: 1rem;
  text-align: left;
  font-size: 0.95rem;
}

th {
  border-bottom: 1px solid #333;
  padding: 0.5rem 1rem;
  background-color: var(--main-color);
  color: #000;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  width: 480px;
}

td {
  color: var(--text-color);
}

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

/* Links */
a {
  color: var(--main-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffa500;
}


/* Input Fields */
input, select, textarea {
  background: #1A1A1A; /* dark gray background */
  color: var(--text-color);
  border: 1px solid #333;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

input::placeholder, 
textarea::placeholder {
  color: var(--muted-text);
}

/* On Focus */
input:focus, 
select:focus, 
textarea:focus {
  border-color: var(--main-color);
  box-shadow: 0 0 8px rgba(255, 171, 40, 0.5);
  background: #222;
}

/* Disabled State */
input:disabled, select:disabled, textarea:disabled {
  background: #111;
  color: #555;
  cursor: not-allowed;
}

select {
  width: auto;
  min-width: 180px; /* prevent it from being too small */
  display: inline-block;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}
