/* style.css - Зеленая минималистичная тема */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: transparent;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    margin-top: 80px;
    width: 100%;
    max-width: 380px;
    background: none;
    border-radius: 24px;
    box-shadow: 0 0px 10px rgba(133, 192, 52, 0.2);
    border: 1px solid rgba(133, 192, 52, 0.2);
}

.header {
    background: #85c034;
    background: linear-gradient(145deg, #85c034 0%, #6fa32b 100%);
    color: white;
    padding: 15px;
    height: 60px;
    text-align: center;
    position: relative;
    border-radius: 24px 24px 0px 0px;
}

.header h1 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.header p {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 300;
}

/* Круглый блок с видео */
.video-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    top: -80px;
    margin: 0 auto 10px auto;
    border: 1px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: #FFFFFF;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 10px;
}

.video-circle:hover {
    transform: scale(1.05);
}

.video-circle video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-container {
    height: 350px;
    overflow-y: auto;
    padding: 16px;
    background: #fafafa;
    scroll-behavior: smooth;
}

.message {
    margin-bottom: 12px;
    display: flex;
    animation: fadeIn 0.3s ease;
}

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

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.user .message-content {
    background: #85c034;
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 5px rgba(133, 192, 52, 0.3);
}

.assistant .message-content {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(133, 192, 52, 0.2);
}

.input-area {
    padding: 16px;
    background: white;
    border-top: 1px solid rgba(133, 192, 52, 0.2);
    border-radius: 0px 0px 24px 24px;
}

.voice-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.record-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #85c034;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(133, 192, 52, 0.3);
}

.record-button:hover {
    transform: scale(1.05);
    background: #6fa32b;
}

.record-button.recording {
    background: #ff4444;
    animation: pulse 1.5s infinite;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

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

.record-button svg {
    width: 28px;
    height: 28px;
}

.status {
    flex: 1;
    color: #666;
    font-size: 13px;
    font-weight: 300;
}

.button-group {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.history-button {
    flex: 1;
    padding: 5px;
    background: white;
    color: #85c034;
    border: 1px solid #85c034;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.history-button:hover {
    background: #85c034;
    color: white;
}

.history-button.danger {
    color: #ff4444;
    border-color: #ff4444;
}

.history-button.danger:hover {
    background: #ff4444;
    color: white;
}

.history-button:active {
    transform: scale(0.98);
}

.timestamp {
    font-size: 10px;
    color: #999;
    margin-top: 4px;
    opacity: 0.7;
}

.user .timestamp {
    color: rgba(255,255,255,0.7);
    text-align: right;
}

/* Скроллбар */
.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-container::-webkit-scrollbar-thumb {
    background: #85c034;
    border-radius: 3px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
    background: #6fa32b;
}