/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  min-height: 100vh;
  padding: 20px;
  line-height: 1.6;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px 0;
  border-bottom: 2px solid #334155;
}

header h1 {
  font-size: 2.5rem;
  color: #38bdf8;
  margin-bottom: 10px;
}

header p {
  color: #94a3b8;
  font-size: 1.1rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 30px;
}

/* Sections */
.section {
  margin-bottom: 30px;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Cards */
.card {
  background: #1e293b;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid #334155;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Current Class Card */
.current-class {
  position: relative;
  overflow: hidden;
}

.current-class::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
}

.time-display {
  text-align: center;
  margin-bottom: 30px;
}

.time-display h3 {
  font-size: 2.2rem;
  color: #f1f5f9;
  margin-bottom: 10px;
}

.time-display h4 {
  font-size: 1.5rem;
  color: #94a3b8;
  font-weight: normal;
}

.details {
  background: #334155;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #475569;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 1.1rem;
}

.detail-value {
  color: #f1f5f9;
  font-size: 1.2rem;
  font-weight: 500;
}

.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Lookup Card */
.lookup-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  margin-bottom: 10px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: #cbd5e1;
  font-weight: 600;
}

.form-label .icon {
  font-size: 1.2rem;
}

.form-select {
  width: 100%;
  padding: 14px 16px;
  background: #334155;
  color: white;
  border: 2px solid #475569;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-select:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.lookup-btn {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.lookup-btn:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  transform: scale(1.02);
}

.btn-icon {
  font-size: 1.2rem;
}

.lookup-result {
  background: #334155;
  border-radius: 12px;
  padding: 25px;
  margin-top: 20px;
}

.lookup-result h3 {
  color: #38bdf8;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.result-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.result-item:not(:last-child) {
  border-bottom: 1px solid #475569;
}

.result-label {
  color: #cbd5e1;
  font-weight: 600;
}

.result-value {
  color: #f1f5f9;
  font-weight: 500;
  font-size: 1.1rem;
}

/* Quick Info Section */
.quick-info {
  margin-top: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.info-item {
  background: #334155;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease;
}

.info-item:hover {
  transform: translateY(-3px);
}

.info-icon {
  font-size: 2rem;
  background: rgba(56, 189, 248, 0.1);
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-content h4 {
  color: #cbd5e1;
  margin-bottom: 5px;
  font-size: 1rem;
}

.info-content p {
  color: #f1f5f9;
  font-size: 1.5rem;
  font-weight: 600;
}

/* Menu Button */
.menu-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.menu-btn:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  transform: scale(1.1);
}

/* Footer */
footer {
  margin-top: 50px;
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid #334155;
  color: #94a3b8;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

footer p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.footer-note {
  color: #64748b;
  font-size: 0.9rem;
}

#lastUpdate {
  color: #38bdf8;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  .time-display h3 {
    font-size: 1.8rem;
  }
  
  .detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .menu-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 15px;
  }
  
  .card {
    padding: 20px;
  }
  
  .section h2 {
    font-size: 1.5rem;
  }
  
  .menu-btn {
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
}