* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 30px;
    min-height: 100vh;
}

.sidebar {
    width: 320px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 35px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: fit-content;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: block;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.sidebar h1 {
    text-align: center;
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 2.2em;
    font-weight: 600;
}

.sidebar p {
    text-align: center;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
}

.features {
    list-style: none;
    margin-bottom: 25px;
}

.features li {
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-left: 25px;
    font-size: 1.05em;
}

.features li:before {
    content: "✨";
    position: absolute;
    left: 0;
    font-size: 1.1em;
}

.social-links {
    text-align: center;
    margin-top: 30px;
}

.social-links a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 22px;
    transition: all 0.3s;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: #667eea;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.main-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 35px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header {
    text-align: center;
    margin-bottom: 35px;
}

.header h1 {
    font-size: 3em;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.header p {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.9);
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 25px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    max-height: 550px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-end;
}

.message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 75%;
    padding: 18px 25px;
    border-radius: 25px;
    font-size: 1.15em;
    word-wrap: break-word;
    line-height: 1.4;
}

.message.user .message-bubble {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    border-radius: 25px 25px 8px 25px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.message.assistant .message-bubble {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 25px 25px 25px 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-area {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
}

.text-input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.15em;
    outline: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.text-input:focus {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.speak-btn {
    padding: 18px 25px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    font-size: 1.3em;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.speak-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.speak-btn.listening {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    animation: pulse 1.5s infinite;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.speak-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.status {
    text-align: center;
    margin: 15px 0;
    padding: 18px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1.1em;
    border: 2px solid;
}

.status.listening {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border-color: #ff6b6b;
}

.status.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border-color: #4caf50;
}

.status.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border-color: #f44336;
}

.status.info {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border-color: #2196f3;
}

.help-bar {
    position: fixed;
    left: 25px;
    bottom: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 320px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.help-bar h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.help-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.help-bar li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.help-bar li:before {
    content: "🎯";
    position: absolute;
    left: 0;
    font-size: 1.1em;
}

.listening-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 107, 107, 0.95);
    color: white;
    padding: 30px 50px;
    border-radius: 20px;
    font-size: 1.5em;
    font-weight: bold;
    z-index: 10000;
    display: none;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: pulse 1.5s infinite;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 15px;
    }

    .sidebar {
        width: 100%;
        order: 2;
    }

    .main-content {
        order: 1;
    }

    .help-bar {
        position: static;
        margin-top: 25px;
        max-width: none;
    }

    .header h1 {
        font-size: 2.2em;
    }
} 