/* Dark theme variables */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #475569;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Top Navigation */
.top-nav {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--accent-color);
    background-color: rgba(59, 130, 246, 0.1);
}

.logout-btn {
    background-color: var(--danger-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
}

.chat-container {
    display: flex;
    height: calc(100vh - 80px); /* Subtract nav height */
}

.sidebar {
    width: 300px;
    background: #1e293b;
    border-right: 1px solid #334155;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #334155;
    background: #0f172a;
}

.sidebar-header h2 {
    color: #f1f5f9;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Finish visit button in sidebar */
.finish-visit-btn {
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 1rem;
    width: 100%;
    height: 44px;
    transition: all 0.2s ease;
}

.finish-visit-btn:hover:not(:disabled) {
    background: #b91c1c;
}

.finish-visit-btn:disabled {
    background: #64748b;
    cursor: not-allowed;
    opacity: 0.6;
}



.room-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.room-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #334155;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.room-item:hover {
    background: #475569;
}

.room-item.active {
    background: #3b82f6;
}

.main-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 1rem;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.chat-header h2 {
    color: #f1f5f9;
    margin: 0;
    flex: 1;
}

/* Finish visit button in input area */
.finish-visit-btn {
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    height: 44px;
    width: auto;
    min-width: 120px;
    max-width: 200px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    flex-grow: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.finish-visit-btn:hover:not(:disabled) {
    background: #b91c1c;
}

.finish-visit-btn:disabled {
    background: #64748b;
    cursor: not-allowed;
    opacity: 0.6;
}

.logout-btn {
    padding: 0.5rem 1rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
}

.logout-btn:hover {
    background: #b91c1c;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #0f172a;
    position: relative;
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    max-width: 70%;
}

.message.user {
    background: #3b82f6;
    margin-left: auto;
}

.message.other {
    background: #334155;
}

.message-header {
    font-size: 0.875rem;
    color: #cbd5e1;
    margin-bottom: 0.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-header .sender {
    font-weight: 500;
}

.message-header .timestamp {
    font-size: 0.75rem;
    color: #94a3b8;
    opacity: 0.8;
}

.message-content {
    color: #f1f5f9;
}

.input-area {
    padding: 1rem;
    background: #1e293b;
    border-top: 1px solid #334155;
    display: flex;
    gap: 0.5rem;
}

.message-input {
    flex: 1;
    padding: 0.75rem;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    height: 44px;
    box-sizing: border-box;
}

.message-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.microphone-btn {
    padding: 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.microphone-btn:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

.microphone-btn.recording {
    background: var(--danger-color);
    animation: pulse 1s infinite;
}

.microphone-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

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

.send-btn {
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:hover {
    background: #2563eb;
}

.welcome-message {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
} 
/* Sidebar actions */
.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Scenario selector styles */
.scenario-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.scenario-selector label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.scenario-select {
    padding: 0.5rem;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scenario-select:hover {
    border-color: var(--accent-color);
}

.scenario-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Virtual Patient Selectors */
.virtual-patient-selectors {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.selector-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.selector-group label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.system-selector,
.disease-selector {
    padding: 0.5rem;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.system-selector:hover,
.disease-selector:hover {
    border-color: var(--accent-color);
}

.system-selector:focus,
.disease-selector:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* New chat button */
.new-chat-btn {
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    width: 100%;
}

.new-chat-btn:hover {
    background: #2563eb;
}

.new-chat-btn.disabled,
.new-chat-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #64748b;
}

/* Generate dialogues button */
.dialogue-btn {
    padding: 0.5rem 1rem;
    background: #8b5cf6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 100%;
}

.dialogue-btn:hover {
    background: #7c3aed;
}

/* Analytics button */
.analytics-btn {
    padding: 0.5rem 1rem;
    background: #059669;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 100%;
    margin-top: 0.5rem;
}

.analytics-btn:hover {
    background: #047857;
}

/* Assistant management */
.assistant-management {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #334155;
}

.assistant-management h3 {
    color: #f1f5f9;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.assistant-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.delete-assistant-btn {
    padding: 0.5rem 1rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    text-align: center;
    width: 100%;
    transition: all 0.2s ease;
}

.delete-assistant-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.delete-assistant-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #64748b;
    transform: none;
}

.delete-assistant-btn.doctor {
    background: #dc2626;
}

.delete-assistant-btn.patient {
    background: #f59e0b;
}

.delete-assistant-btn.patient:hover {
    background: #d97706;
}

/* Chat list */
.chat-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.chat-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #334155;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-item:hover {
    background: #475569;
}

.chat-item:hover .chat-info div:last-child {
    color: var(--text-secondary);
}

.chat-item.active {
    background: #1e40af;
    border: 1px solid #3b82f6;
}

.chat-item.active .chat-info strong {
    color: #ffffff;
}

.chat-item.active .chat-info div:last-child {
    color: rgba(255, 255, 255, 0.9);
}

.chat-item.active .chat-info div {
    color: rgba(255, 255, 255, 0.8);
}

.chat-info {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink below content size */
    overflow: hidden; /* Hide overflow content */
}

.chat-info strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.chat-info div:last-child {
    margin-top: 0.25rem;
    font-style: italic;
    color: var(--text-muted);
}

.chat-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.delete-chat-btn {
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-chat-btn:hover {
    background: #b91c1c;
}

.copy-link-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.copy-link-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Copy notification styles */
.copy-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.copy-notification.show {
    opacity: 1;
}

.report-link-btn {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-link-btn:hover {
    background: #059669;
}

/* Disabled state */
.message-input:disabled,
.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
}

.modal-header h3 {
    color: #f1f5f9;
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close:hover {
    background: #334155;
    color: #f1f5f9;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    color: #e2e8f0;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.warning-text {
    color: #fca5a5 !important;
    font-size: 0.875rem;
    font-weight: 500;
}

.modal-footer {
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: #475569;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn-secondary:hover {
    background: #64748b;
}

.btn-danger {
    padding: 0.75rem 1.5rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* Loading animation */
.loading-message .message-content {
    display: flex;
    align-items: center;
}

.loading-dots {
    display: flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    animation: loading-dots 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loading-dots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* System message styling */
.message.system {
    background: #7c2d12;
    border: 1px solid #ea580c;
}

.message.system .message-header {
    color: #fed7aa;
}

.message.success {
    background: #166534;
    border: 1px solid #22c55e;
}

.message.success .message-header {
    color: #bbf7d0;
}

/* Disabled state for input during response */
.message-input:disabled,
.send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

/* Info icon and tooltip styles */
.info-icon {
    cursor: help;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
    transition: color 0.2s ease;
    position: relative;
    display: inline-block;
}

.info-icon:hover {
    color: var(--accent-color);
}

/* Enhanced tooltip using title attribute */
.info-icon[title] {
    position: relative;
}

.info-icon[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: pre-line;
    z-index: 1000;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    min-width: 200px;
    max-width: 300px;
    text-align: left;
    line-height: 1.4;
    pointer-events: none;
}

.info-icon[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(1px);
    border: 5px solid transparent;
    border-top-color: var(--bg-tertiary);
    z-index: 1001;
    pointer-events: none;
}

/* HTML Tooltip styles */
.html-tooltip {
    position: relative;
    display: inline-block;
}

.html-tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    z-index: 1000;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    min-width: 200px;
    max-width: 300px;
    text-align: left;
    line-height: 1.4;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    margin-bottom: 5px;
}

.html-tooltip:hover .html-tooltip-content {
    visibility: visible;
    opacity: 1;
}

.html-tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--bg-tertiary);
    pointer-events: none;
}

/* Tooltip content styling */
.tooltip-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.tooltip-row:last-child {
    margin-bottom: 0;
}

.tooltip-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.tooltip-value {
    font-weight: 600;
    color: var(--text-primary);
    margin-left: 0.5rem;
}

/* Chat list footer and toggle buttons */
.chat-list-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.show-all-btn,
.show-limited-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.show-all-btn:hover,
.show-limited-btn:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.show-all-btn:active,
.show-limited-btn:active {
    transform: translateY(0);
}

/* Voice Recording Modal Styles */
.voice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.voice-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-modal-content {
    background: var(--bg-secondary);
    border-radius: 50%;
    width: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 3px solid var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: modalAppear 0.3s ease-out;
}

.voice-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    z-index: 2001;
    user-select: none;
}

.voice-close-btn:hover {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.voice-close-btn:active {
    transform: scale(0.95);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.voice-timer {
    position: absolute;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid var(--accent-color);
}

.voice-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.voice-send-btn {
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.voice-send-text {
    position: relative;
    z-index: 2;
}

.voice-send-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: width 0.1s linear;
    z-index: 1;
}

.voice-send-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

.voice-status {
    position: absolute;
    bottom: 20px;
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: center;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.voice-visualizer {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 40px;
}

.voice-visualizer.active {
    display: flex;
}

.visualizer-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 100%;
}

.visualizer-bars .bar {
    width: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    transition: height 0.1s ease;
    min-height: 4px;
}

.voice-audio-status {
    position: absolute;
    bottom: 60px;
    text-align: center;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
}

.audio-playing-indicator {
    font-size: 14px;
    animation: pulse 1s infinite;
}

.audio-status-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Temporary Chat Specific Styles */
.tmp-chat-container {
    display: flex;
    height: calc(100vh - 80px);
}

.tmp-chat-container .main-chat {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.tmp-chat-container .chat-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.tmp-chat-container .chat-info {
    margin-top: 1rem;
}

.tmp-chat-container .chat-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.tmp-chat-container .chat-expires {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.tmp-chat-container .welcome-message {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.tmp-chat-container .welcome-message h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tmp-chat-container .welcome-message p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tmp-chat-container .chat-limitations {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
}

.tmp-chat-container .chat-limitations p {
    margin-bottom: 1rem;
}

.tmp-chat-container .chat-limitations strong {
    color: var(--warning-color);
    font-size: 1.1rem;
}

.tmp-chat-container .chat-limitations ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tmp-chat-container .chat-limitations li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.tmp-chat-container .chat-limitations li:before {
    content: "⚠️";
    position: absolute;
    left: 0;
    top: 0.5rem;
}

.tmp-chat-container .chat-limitations li:last-child {
    border-bottom: none;
}

.tmp-chat-container .input-area {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.tmp-chat-container .message-input {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

.tmp-chat-container .message-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tmp-chat-container .input-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.tmp-chat-container .microphone-btn,
.tmp-chat-container .send-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tmp-chat-container .microphone-btn {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.tmp-chat-container .microphone-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.tmp-chat-container .send-btn {
    background: var(--accent-color);
    color: white;
    flex: 1;
}

.tmp-chat-container .send-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.tmp-chat-container .send-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

/* Mobile responsiveness for temporary chat */
@media (max-width: 768px) {
    .tmp-chat-container .main-chat {
        padding: 1rem;
    }
    
    .tmp-chat-container .welcome-message {
        padding: 1.5rem;
    }
    
    .tmp-chat-container .chat-limitations {
        padding: 1rem;
    }
    
    .tmp-chat-container .input-area {
        padding: 1rem;
    }
    
    .tmp-chat-container .input-controls {
        flex-direction: column;
    }
    
    .tmp-chat-container .microphone-btn,
    .tmp-chat-container .send-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tmp-chat-container .main-chat {
        padding: 0.5rem;
    }
    
    .tmp-chat-container .welcome-message {
        padding: 1rem;
    }
    
    .tmp-chat-container .welcome-message h3 {
        font-size: 1.3rem;
    }
    
    .tmp-chat-container .welcome-message p {
        font-size: 1rem;
    }
}