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

/* Typography */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0d1117;
  color: #e4e6eb;
  line-height: 1.6;
}

h1, h2 {
  font-weight: 600;
}

/* Layout Containers */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 20px;
  text-align: center;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

.tagline {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-family: 'Poppins', sans-serif;
  z-index: 1000;
  text-align: center;
  animation: fadeInTop 1s ease-out;
}

.top-center-title span {
  font-weight: 400;
  font-style: italic;
}

/* Fade In Animation */
@keyframes fadeInTop {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Responsive font size */
@media (max-width: 768px) {
  .top-center-title {
    font-size: 18px;
    padding: 8px 14px;
  }
}


/* Logo */
.logo img,
.main-logo {
  position: absolute;
  top: 10px;
  left: 20px;
  width: 120px; /* Adjust size */
  height: auto;
  z-index: 999;
}

/* Scan Animation */
.scan-circle {
  border: 3px dashed #0e1115;
  border-radius: 50%;
  padding: 10px;
  margin: 2px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 110, 235, 0.6); }
  70% { box-shadow: 0 0 0 25px rgba(88, 166, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(88, 166, 255, 0); }
}

/* Typewriter */
#typewriter {
  overflow: hidden;
  border-right: 2px solid #115097;
  white-space: nowrap;
  animation: blink-caret 0.75s step-end infinite;
  font-size: 1.6rem;
  margin: 10px 0;
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #58a6ff; }
}

/* Hero Text */
.hero-text p {
  font-size: 1.1rem;
  margin-top: 10px;
  color: #000000;
}

.hero-text strong {
  font-size: 0.9rem;
  color: #ff0b03;
}

/* AI Scan Text */
.ai-scan p {
  margin-top: 10px;
  font-size: 1rem;
  color: #0235ff;
}

/* Input and Actions */
.actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-input {
  padding: 12px 20px;
  font-size: 1rem;
  border: 2px solid #58a6ff;
  border-radius: 8px;
  background-color: #161b22;
  color: #e4e6eb;
}

.btn {
  background: linear-gradient(to right, #3070d0, #3fb950);
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background: linear-gradient(to right, #3fb950, #1f6feb);
  transform: scale(1.05);
}

/* Main Dashboard */
#main-interface {
  padding: 40px 20px;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

header h1 {
  font-size: 2rem;
  color: #58a6ff;
}

/* Dashboard Buttons & Cards */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background-color: #161b22;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-size: 1.1rem;
  color: #e4e6eb;
  transition: transform 0.3s ease;
  border: 1px solid #30363d;
}

.card:hover {
  transform: translateY(-5px);
  background-color: #1f2937;
  box-shadow: 0 4px 20px rgba(88, 166, 255, 0.2);
}

/* Audio Player (hidden but active) */
audio {
  display: none;
}

/* Dark Mode Toggle (future feature) */
.dark-mode {
  background-color: #0d1117;
  color: #e4e6eb;
}

/* Language & Voice UI */
.language-selector {
  position: absolute;
  top: 15px;
  right: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.language-selector select {
  padding: 5px 10px;
  background-color: #161b22;
  color: white;
  border-radius: 6px;
  border: 1px solid #30363d;
}

.voice-btn {
  position: absolute;
  top: 15px;
  right: 40px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #58a6ff;
  cursor: pointer;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .dashboard-cards {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  header h1 {
    font-size: 1.4rem;
  }
}
