
:root {
    --primary-color: #E91E63;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
body {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
}

.chat-container {
    max-width: 600px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
    position: relative;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-logo {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--primary-color);
}

.header-logo span {
    color: black;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.header-button {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.header-button:hover {
    color: var(--primary-color);
}

.chat-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
}

.question-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    animation: fadeIn 0.3s ease-in-out;
}
.send-btn, .voice-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #e51754;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.send-btn:hover, .voice-btn:hover {
    background: #e51754;
}

.send-btn svg, .voice-btn svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 480px) {
    .chat-interface {
        height: 100vh;
        max-width: none;
    }
    
    .input-area {
        max-width: none;
    }
}
/* Existing styles */

/* ... your existing CSS ... */

/* New styles for recording state */
.voice-btn.recording {
    background-color: #ff4444; /* Red color when recording */
    animation: pulse 1s infinite;
    transition: background-color 0.3s ease;
}

.voice-btn {
    background-color: #e51754; /* Default color */
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
}

.voice-btn:hover {
    background-color: #ffffff;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

/* Optional: Style for send button and other elements */
/* ... your existing CSS ... */
/* Existing styles */

/* ... your existing CSS ... */

/* New styles for recording state */
.voice-btn.recording {
    background-color: #ff4444; /* Red color when recording */
    animation: pulse 1s infinite;
    transition: background-color 0.3s ease;
}

.voice-btn {
    background-color: #e51754; /* Default color */
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
}

.voice-btn:hover {
    background-color: #e51754;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}
.input-area {
    padding: 1rem;
    background: white;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.flex.items-center.gap-2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-field {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 0.5rem;
    font-size: 0.95rem;
    resize: none;
    min-height: 40px;
    max-height: 120px;
    line-height: 1.5;
}

.send-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.send-button svg {
    stroke: white;
}

.send-button:hover {
    transform: scale(1.05);
}

/* Fix for action buttons at the bottom */
.action-buttons {
    display: flex;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
}

.action-button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.assist-button {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    color: #333;
}

.assist-button:hover {
    background-color: #f5f5f5;
}

.dermat-button {
    background-color: #E91E63;
    color: white;
}

.dermat-button:hover {
    background-color: #C2185B;
}

/* Fix for the send button */
.send-button {
    background-color: #E91E63;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s;
    margin-left: 10px;
}

.send-button:hover {
    background-color: #C2185B;
}

/* Fix for input container to properly align items */
.input-container {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    padding: 8px;
    border: 1px solid #e0e0e0;
}

.input-field {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px;
    font-size: 16px;
    resize: none;
    max-height: 150px;
}

/* Ensure proper display for the input area */
.input-area {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 15px;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    margin: 0.5rem 0;
    animation: fadeIn 0.3s ease-in-out;
}

.loading-dots {
    display: flex;
    gap: 0.25rem;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

.results-section {
    display: none;
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    margin: 1rem 0;
    animation: fadeIn 0.3s ease-in-out;
}

.error-message {
    background: #FEE2E2;
    color: #DC2626;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 0.5rem 0;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .chat-container {
        height: 100vh;
        max-width: none;
    }
}
