﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    min-height: 100vh;
    color: #fff;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.title {
    font-size: 4rem;
    font-weight: 700;
    color: #60a5fa;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
    margin-bottom: 10px;
}

.subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.main-panel {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.controls {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.mic-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    background: #1e40af;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mic-button:hover {
    transform: scale(1.05);
    background: #2563eb;
}

.mic-button.active {
    background: #3b82f6;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    }
    50% {
        box-shadow: 0 0 50px rgba(59, 130, 246, 0.9);
    }
}

.mic-icon {
    width: 50px;
    height: 50px;
    stroke-width: 2;
}

.voice-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: #16a34a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voice-button:hover {
    background: #22c55e;
}

.voice-button.muted {
    background: #374151;
}

.voice-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.status {
    text-align: center;
    padding: 15px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    margin-bottom: 30px;
}

.status.active {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
}

.status.speaking {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid #fbbf24;
}

.status-text {
    font-size: 0.95rem;
    color: #e2e8f0;
}

.conversation {
    min-height: 200px;
    margin-bottom: 30px;
}

.message {
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 15px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    background: rgba(71, 85, 105, 0.5);
    margin-left: 80px;
    border-left: 3px solid #64748b;
}

.message.jarvis {
    background: rgba(59, 130, 246, 0.2);
    margin-right: 80px;
    border-left: 3px solid #3b82f6;
}

.message-label {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 5px;
}

.message-text {
    font-size: 1rem;
    line-height: 1.6;
}

.commands {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 20px;
}

.commands h3 {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    font-size: 0.85rem;
    color: #64748b;
}

.history {
    margin-top: 30px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 15px;
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.history::-webkit-scrollbar {
    width: 8px;
}

.history::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 10px;
}

.history::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 10px;
}

.history::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

.search-result {
    background: rgba(99, 102, 241, 0.1);
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    border-left: 3px solid #6366f1;
}

.search-result h4 {
    color: #818cf8;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.search-result p {
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.search-result a {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.8rem;
}

.search-result a:hover {
    text-decoration: underline;
}