:root {
    --primary: #00d4ff;
    --secondary: #ff6b35;
    --accent: #9d4edd;
    --success: #00ff88;
    --warning: #ffcc00;
    --bg-dark: #0a0a0a;
    --bg-panel: #1a1a2e;
    --bg-card: #252542;
    --text: #e0e0e0;
    --text-dim: #888;
    --glow: 0 0 20px rgba(0, 212, 255, 0.5);
    --glow-strong: 0 0 40px rgba(0, 212, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Rajdhani', 'Noto Sans Devanagari', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow: hidden;
    user-select: none;
}

#app {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Boot Screen */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s;
}

.boot-content {
    text-align: center;
}

.boot-logo {
    width: 120px;
    height: 120px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 60px;
    font-weight: 900;
    color: var(--bg-dark);
    margin: 0 auto 30px;
    box-shadow: var(--glow-strong);
    animation: bootPulse 1s ease-in-out infinite;
}

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

.boot-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 20px;
}

.boot-progress {
    width: 300px;
    height: 4px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto 15px;
    overflow: hidden;
}

.boot-bar {
    width: 0%;
    height: 100%;
    background: var(--primary);
    box-shadow: var(--glow);
    animation: bootProgress 2s ease-out forwards;
}

@keyframes bootProgress {
    to { width: 100%; }
}

.boot-status {
    font-size: 14px;
    color: var(--text-dim);
}

/* HUD Container */
.hud-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0a 100%);
    position: relative;
}

.hud-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 49%, rgba(0, 212, 255, 0.02) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(0, 212, 255, 0.02) 50%, transparent 51%);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
}

.system-info {
    display: flex;
    flex-direction: column;
}

.system-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.system-version {
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.status-indicators {
    display: flex;
    gap: 15px;
}

.status-item {
    font-size: 11px;
    color: var(--success);
    font-family: 'Orbitron', sans-serif;
}

.time-battery {
    display: flex;
    gap: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
}

#clock {
    color: var(--secondary);
}

#battery {
    color: var(--success);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    min-height: 0;
}

.side-panel {
    width: 80px;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 12px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.side-panel.right {
    width: 150px;
}

.panel-header {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    color: var(--text-dim);
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    margin-bottom: 5px;
}

.tool-btn {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    padding: 12px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.tool-btn:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.tool-icon {
    font-size: 22px;
}

.tool-label {
    font-size: 10px;
    color: var(--text-dim);
}

/* Center Panel */
.center-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.friday-core {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: var(--glow);
}

.core-ring.outer {
    width: 220px;
    height: 220px;
    animation: rotate 25s linear infinite;
    border-style: dashed;
    opacity: 0.6;
}

.core-ring.middle {
    width: 170px;
    height: 170px;
    animation: rotate 18s linear infinite reverse;
    border-color: var(--accent);
}

.core-ring.inner {
    width: 120px;
    height: 120px;
    animation: pulse 2s ease-in-out infinite;
    border-width: 3px;
}

.core-center {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-strong);
    z-index: 10;
    cursor: pointer;
    transition: transform 0.3s;
}

.core-center:hover {
    transform: scale(1.1);
}

.friday-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--bg-dark);
}

.core-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.9; }
}

/* Waveform */
.waveform-container {
    position: absolute;
    bottom: 30px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.waveform-container.active {
    opacity: 1;
}

.wave-bar {
    width: 5px;
    height: 25px;
    background: var(--primary);
    border-radius: 3px;
    animation: wave 0.8s ease-in-out infinite;
}

.wave-bar:nth-child(2) { animation-delay: 0.1s; height: 35px; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; height: 45px; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; height: 35px; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; height: 25px; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; height: 35px; }
.wave-bar:nth-child(7) { animation-delay: 0.6s; height: 45px; }
.wave-bar:nth-child(8) { animation-delay: 0.7s; height: 35px; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

/* Language Toggle */
.lang-toggle {
    position: absolute;
    bottom: 80px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.lang-toggle:hover {
    background: rgba(0, 212, 255, 0.2);
}

.lang-current, .lang-alt {
    font-size: 14px;
    font-weight: 600;
}

.lang-current {
    color: var(--primary);
}

.lang-arrow {
    color: var(--text-dim);
    font-size: 12px;
}

.lang-alt {
    color: var(--text-dim);
}

/* History */
.history-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
}

.history-item.empty {
    text-align: center;
    color: var(--text-dim);
    cursor: default;
}

/* Response Display */
.response-display {
    min-height: 100px;
    max-height: 150px;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 15px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.response-content {
    text-align: center;
}

.welcome-message {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.welcome-sub {
    font-size: 14px;
    color: var(--text-dim);
}

/* Input Section */
.input-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-modes {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.mode-btn {
    background: transparent;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 8px 20px;
    color: var(--text-dim);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.mode-btn.active {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.voice-btn, .send-btn, .attach-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.voice-btn {
    background: var(--primary);
    color: var(--bg-dark);
}

.voice-btn:hover, .voice-btn.active {
    background: var(--secondary);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.voice-btn svg, .send-btn svg, .attach-btn svg {
    width: 24px;
    height: 24px;
}

.text-input-wrapper {
    flex: 1;
    position: relative;
}

#textInput {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 25px;
    color: var(--text);
    font-size: 16px;
    font-family: 'Rajdhani', 'Noto Sans Devanagari', sans-serif;
}

#textInput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.input-hints {
    position: absolute;
    bottom: -20px;
    left: 20px;
    display: flex;
    gap: 15px;
}

.hint {
    font-size: 10px;
    color: var(--text-dim);
}

.send-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.send-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.attach-btn {
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
}

.attach-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* Listening Overlay */
.listening-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.listening-overlay.active {
    display: flex;
}

.listening-animation {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 30px;
}

.listening-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: listeningPulse 2s ease-out infinite;
}

.listening-ring:nth-child(1) {
    width: 60px;
    height: 60px;
    animation-delay: 0s;
}

.listening-ring:nth-child(2) {
    width: 120px;
    height: 120px;
    animation-delay: 0.5s;
}

.listening-ring:nth-child(3) {
    width: 180px;
    height: 180px;
    animation-delay: 1s;
}

@keyframes listeningPulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.listening-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

.listening-lang {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 14px;
    color: var(--text-dim);
}

/* Bottom Status */
.bottom-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.status-log {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'Orbitron', sans-serif;
}

.quick-actions {
    display: flex;
    gap: 8px;
}

.quick-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 6px 12px;
    color: var(--text-dim);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 200;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-panel);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.modal-header h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: 60vh;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .side-panel {
        display: none;
    }
    
    .friday-core {
        transform: scale(0.8);
    }
    
    .input-hints {
        display: none;
    }
    
    .quick-actions {
        display: none;
    }
}

@media (max-width: 480px) {
    .top-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .status-indicators {
        display: none;
    }
    
    .friday-core {
        transform: scale(0.7);
    }
}
