* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.chat-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.patient-info h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.patient-info h2 i {
    margin-right: 10px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-selector select {
    padding: 5px 15px;
    border-radius: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
}

.language-selector select option {
    color: black;
}

.session-info {
    text-align: right;
}

.session-info span {
    display: block;
    margin-bottom: 10px;
    opacity: 0.8;
}

.btn-end {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-end:hover {
    background: white;
    color: #667eea;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 20px;
    max-width: 70%;
    animation: fadeIn 0.3s ease;
}

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

.patient-message {
    margin-left: auto;
}

.assistant-message {
    margin-right: auto;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.message-content {
    padding: 15px;
    border-radius: 15px;
    line-height: 1.5;
    word-wrap: break-word;
}

.patient-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 5px;
}

.assistant-message .message-content {
    background: white;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.translation-note {
    margin-top: 5px;
    font-style: italic;
    color: #666;
    font-size: 0.85rem;
}

.translation-note i {
    margin-right: 5px;
}

.chat-input-area {
    border-top: 1px solid #e0e0e0;
    padding: 20px;
    background: white;
}

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

.input-container textarea {
    flex: 1;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    resize: none;
    height: 80px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-container textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.btn-send {
    padding: 0 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-send:hover {
    transform: translateY(-2px);
}

.btn-send:active {
    transform: translateY(0);
}

.suggestions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.suggestions span {
    font-weight: 600;
    color: #666;
}

.suggestion-btn {
    padding: 8px 15px;
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.suggestion-btn:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.suggestion-btn i {
    font-size: 0.8rem;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    border-left: 4px solid #c62828;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-container {
        height: 100vh;
        border-radius: 0;
    }
    
    .chat-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .message {
        max-width: 85%;
    }
    
    .suggestions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .suggestion-btn {
        justify-content: center;
    }
}
