* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: #f0f2f5;
  color: #1a2c3e;
  line-height: 1.5;
  width: 100%;
  overflow-x: hidden;
}

/* FULL WIDTH - NO WHITE SPACE */
.container, header, footer, .full-width, .top-bar, .nav-links, .info-bar, .main-content {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* ========== HEADER & NAVIGATION ========== */
.top-bar {
  background: linear-gradient(135deg, #0a2f3f 0%, #0b3b4e 100%);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 3px solid #ffaa33;
}

.logo-area h1 {
  font-size: 1.6rem;
  font-weight: 700;
}

.logo-area p {
  font-size: 0.7rem;
  opacity: 0.85;
}

.menu-icon {
  font-size: 1.8rem;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: 0.3s;
}

.menu-icon:hover {
  background: rgba(255,255,255,0.2);
}

/* Desktop Navigation */
.nav-links {
  background: #0b3b4e;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #1e5a6e;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  background: #ffaa33;
  color: #0a2f3f;
}

/* Mobile menu */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #0b3b4e;
  padding: 1rem;
  gap: 0.8rem;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  padding: 0.8rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  text-align: center;
}

.mobile-nav.show {
  display: flex;
}

/* ========== INFO BAR ========== */
.info-bar {
  background: #1e5a6e;
  color: white;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.current-time {
  font-weight: bold;
  background: #0a2f3f;
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
}

.next-result {
  background: #ffaa33;
  color: #0a2f3f;
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-weight: bold;
  font-size: 0.9rem;
}

/* ========== MAIN CONTENT ========== */
.main-content {
  padding: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Admin Panel */
.admin-panel {
  background: #fff3e0;
  border: 2px dashed #ffaa33;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: none;
}

.admin-panel h3 {
  color: #0a2f3f;
  margin-bottom: 1rem;
}

.admin-input-group {
  margin-bottom: 1rem;
}

.admin-input-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.admin-input-group input, .admin-input-group select {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
  max-width: 300px;
}

.upload-btn {
  background: #ffaa33;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
}

.upload-btn:hover {
  background: #ff9800;
}

.manual-result-input {
  margin-top: 1rem;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 12px;
}

.manual-result-input input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin: 0.5rem 0;
}

/* Result Card */
.result-card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.result-card h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #0a2f3f;
  text-align: center;
}

.result-date {
  text-align: center;
  font-size: 1.2rem;
  color: #ffaa33;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
}

.tab-btn.active {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border: 2px solid white;
}

.tab-btn:not(.active) {
  opacity: 0.7;
}

/* Result Display */
.result-display {
  background: #f8fafc;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  min-height: 200px;
}

.result-image {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.result-number {
  font-size: 2rem;
  font-weight: bold;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 1rem;
  border-radius: 12px;
  display: inline-block;
}

.loading {
  color: #666;
  font-style: italic;
}

/* Old Results */
.old-results-section {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.old-results-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #0a2f3f;
}

.picker-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.picker-item {
  flex: 1;
  min-width: 150px;
}

.picker-item label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #1e5a6e;
}

.picker-item input, .picker-item select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
}

.btn-fetch {
  background: #ffaa33;
  color: #0a2f3f;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

.old-result-display {
  background: #f0f2f5;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
}

/* State Grid */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.state-card {
  background: linear-gradient(135deg, #0a2f3f, #1e5a6e);
  padding: 1.2rem;
  text-align: center;
  border-radius: 16px;
  transition: 0.3s;
}

.state-card a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}

.state-card:hover {
  transform: translateY(-3px);
  background: #ffaa33;
}

.state-card:hover a {
  color: #0a2f3f;
}

/* FAQ Section */
.faq-section {
  background: white;
  border-radius: 20px;
  padding: 1.8rem;
  margin-bottom: 2rem;
}

.faq-section h3 {
  color: #0a2f3f;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.faq-item {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e7ef;
}

.faq-item h4 {
  color: #ffaa33;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background: #0a2f3f;
  color: #ccc;
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: #ffaa33;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .top-bar {
    padding: 0.8rem 1rem;
  }
  .logo-area h1 {
    font-size: 1.2rem;
  }
  .tab-btn {
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
  }
  .main-content {
    padding: 1rem;
  }
  .result-number {
    font-size: 1.3rem;
  }
}
