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

body {
  font-family: 'Inter', sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

.app-container {
  min-height: 100vh;
  background: 
    radial-gradient(ellipse at top, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(139, 0, 255, 0.1) 0%, transparent 50%),
    repeating-linear-gradient(0deg, rgba(0, 255, 255, 0.03) 0px, transparent 1px, transparent 2px, rgba(0, 255, 255, 0.03) 3px);
  display: flex;
  flex-direction: column;
}

.glass-header {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 30px rgba(0, 255, 255, 0.1);
}

.power-indicator {
  width: 12px;
  height: 12px;
  background: #00ff00;
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 10px #00ff00;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.settings-btn {
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.5rem;
}

.settings-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.main-content {
  flex: 1;
  display: flex;
  gap: 2rem;
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.api-sidebar {
  width: 200px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  height: fit-content;
}

.api-status-panel h3 {
  font-family: 'Orbitron', sans-serif;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: all 0.3s;
}

.center-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
}

.orb-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 300px;
}

.orb {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  transition: all 0.5s ease;
  position: relative;
}

.orb-idle {
  background: radial-gradient(circle, rgba(0, 128, 255, 0.3), rgba(0, 255, 255, 0.1));
  box-shadow: 0 0 60px rgba(0, 255, 255, 0.4);
  animation: breathe 4s infinite;
}

.orb-listening {
  background: radial-gradient(circle, rgba(0, 128, 255, 0.5), rgba(0, 255, 255, 0.2));
  box-shadow: 0 0 80px rgba(0, 255, 255, 0.6);
  animation: pulse-fast 1s infinite;
}

.orb-gemini {
  background: radial-gradient(circle, rgba(0, 255, 0, 0.4), rgba(0, 255, 255, 0.2));
  box-shadow: 0 0 80px rgba(0, 255, 0, 0.5);
  animation: spin 3s linear infinite;
}

.orb-grok {
  background: radial-gradient(circle, rgba(139, 0, 255, 0.4), rgba(255, 0, 255, 0.2));
  box-shadow: 0 0 80px rgba(139, 0, 255, 0.5);
  animation: shimmer 2s infinite;
}

.orb-pollinations {
  background: linear-gradient(45deg, 
    rgba(255, 0, 0, 0.3),
    rgba(255, 127, 0, 0.3),
    rgba(255, 255, 0, 0.3),
    rgba(0, 255, 0, 0.3),
    rgba(0, 0, 255, 0.3),
    rgba(139, 0, 255, 0.3));
  background-size: 400% 400%;
  box-shadow: 0 0 100px rgba(255, 255, 255, 0.4);
  animation: rainbow 3s linear infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes pulse-fast {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes rainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.voice-wave {
  position: absolute;
  width: 250px;
  height: 250px;
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 50%;
  animation: ripple 1.5s infinite;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 255, 0.1);
}

.messages-container::-webkit-scrollbar {
  width: 8px;
}

.messages-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

.messages-container::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 255, 0.3);
  border-radius: 4px;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  opacity: 0.7;
}

.message-card {
  padding: 1rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.2);
  animation: fadeIn 0.3s;
  max-width: 80%;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-message {
  background: rgba(0, 128, 255, 0.1);
  align-self: flex-end;
  border-color: rgba(0, 128, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 128, 255, 0.1);
}

.assistant-message {
  background: rgba(0, 255, 255, 0.05);
  align-self: flex-start;
  border-color: rgba(0, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.1);
}

.input-container {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 12px;
}

.main-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 255, 0.2);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
}

.main-input:focus {
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.main-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.mic-button, .send-button {
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.2rem;
}

.mic-button:hover, .send-button:hover {
  background: rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.mic-button.listening {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.5);
  animation: pulse-fast 1s infinite;
}

.mic-button:disabled, .send-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s;
}

.settings-content {
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 50px rgba(0, 255, 255, 0.2);
}

.settings-content label {
  color: #fff;
  display: block;
  margin-bottom: 1rem;
}

.settings-content input[type="range"] {
  width: 100%;
  accent-color: #00ffff;
}

.settings-content input[type="checkbox"] {
  accent-color: #00ffff;
  width: 18px;
  height: 18px;
}

.footer {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 255, 255, 0.3);
  padding: 1rem 2rem;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    padding: 1rem;
  }

  .api-sidebar {
    width: 100%;
  }

  .orb-container {
    height: 200px;
  }

  .orb {
    width: 150px;
    height: 150px;
  }

  .message-card {
    max-width: 90%;
  }

  .input-container {
    flex-wrap: wrap;
  }
}