:root {
    --gold: #D4AF37;
    --dark-gold: #996515;
    --black: #0A0A0A;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(212, 175, 55, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--black);
    color: white;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.neural-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    opacity: 0.8;
}

/* Glassmorphism Container */
.glass-container {
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

header {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 5px;
    background: linear-gradient(to right, var(--gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status {
    font-size: 0.8rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

@keyframes pulse-animation {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

main {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.welcome-message {
    text-align: center;
    margin-top: 50px;
}

.welcome-message h1 {
    font-weight: 300;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.welcome-message p {
    color: var(--gold);
    letter-spacing: 2px;
}

/* Chat Bubbles */
.message {
    max-width: 70%;
    padding: 15px 25px;
    border-radius: 20px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.ai-message {
    align-self: flex-start;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--glass-border);
}

.user-message {
    align-self: flex-end;
    background: var(--gold);
    color: black;
    font-weight: 500;
}

/* Footer & Input */
footer {
    padding: 30px;
    background: rgba(0,0,0,0.3);
}

.input-area {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 15px 25px;
    border-radius: 50px;
    color: white;
    outline: none;
}

button {
    background: var(--gold);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    color: black;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #fff;
    transform: translateY(-2px);
}

.voice-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.voice-btn svg {
    width: 24px;
    fill: currentColor;
}

.voice-btn.recording {
    background: red;
    border-color: red;
    color: white;
    animation: recording-pulse 1s infinite;
}

@keyframes recording-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Toggle Switch */
.controls {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #333;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--gold);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
