/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa; /* Changed to app-like background for desktop */
    min-height: 100vh;
    height: 100vh; /* Force full viewport height */
    overflow: hidden; /* Prevent body scroll bars */
    /* Mobile optimizations */
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
}

.container {
    max-width: 100%; /* Remove max-width constraint for full-screen look */
    margin: 0;
    padding: 0; /* Remove padding for full-screen look */
    min-height: 100vh;
    height: 100vh; /* Force full viewport height */
    position: relative;
    overflow: hidden; /* Prevent container scroll bars */
}

/* Page Layout */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
}

.page.hidden {
    display: none;
}

/* Search Page Styles */
.search-page {
    height: 100vh; /* Full viewport height like mobile */
    justify-content: flex-start; /* Mobile-like top alignment */
    align-items: center;
    text-align: center;
    background: white; /* Mobile-like white background */
    display: flex;
    flex-direction: column;
}

.search-page header {
    margin-bottom: 0; /* Mobile-like no margin */
    padding: 20px 20px 15px 20px; /* Mobile-like padding */
    color: #333; /* Mobile-like dark text */
    flex-shrink: 0; /* Prevent header from shrinking */
}

.search-page header h1 {
    font-size: 2rem; /* Mobile-like smaller size */
    margin-bottom: 0; /* Mobile-like no margin */
    text-shadow: none; /* Remove text shadow for mobile-like appearance */
}

.search-page header p {
    font-size: 1.4rem;
    opacity: 0.9;
}

.search-main {
    background: white; /* Keep white background */
    border-radius: 0; /* Mobile-like no border radius */
    padding: 20px; /* Mobile-like padding */
    box-shadow: none; /* Mobile-like no shadow */
    max-width: 100%; /* Mobile-like full width */
    width: 100%;
    margin: 0;
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
}

.search-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.search-input-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

.search-input {
    flex: 1;
    padding: 16px 24px;
    font-size: 1.1rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
}

.search-input:hover {
    border-color: #667eea;
}

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





/* Conversation Page Styles */
.conversation-page {
    height: 100vh; /* Full viewport height like mobile */
    background: #f8f9fa; /* App-like background */
    border-radius: 0; /* Remove rounded corners */
    box-shadow: none; /* Remove shadow */
    margin: 0; /* Remove margins */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.conversation-header {
    background: white; /* White background like mobile */
    color: #333; /* Dark text like mobile */
    padding: 12px 16px; /* Mobile-like padding */
    flex-shrink: 0; /* Prevent header from shrinking */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Mobile-like shadow */
    border-bottom: 1px solid #e1e5e9; /* Mobile-like border */
}

/* Override header styles for mobile in media queries */

.conversation-header-content {
    display: flex;
    align-items: center;
    gap: 12px; /* Mobile-like gap */
    justify-content: flex-start; /* Mobile-like alignment */
}

.btn-back {
    background: transparent; /* Mobile-like transparent background */
    color: #667eea; /* Mobile-like color */
    border: 1px solid #e1e5e9; /* Mobile-like border */
    padding: 6px; /* Mobile-like padding */
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    flex-grow: 0;
    width: 36px; /* Mobile-like fixed width */
    height: 36px; /* Mobile-like fixed height */
    min-width: 36px;
    max-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-back:hover {
    background: #f0f7ff; /* Mobile-like hover background */
    transform: none; /* Remove transform for mobile-like behavior */
}

/* Desktop clear button in header */
.conversation-header .btn-clear {
    background: transparent; /* Mobile-like transparent background */
    color: #667eea; /* Mobile-like color */
    border: 1px solid #e1e5e9; /* Mobile-like border */
    padding: 6px 12px; /* Mobile-like padding */
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    flex-grow: 0;
    min-width: 60px; /* Mobile-like min-width */
    max-width: 80px; /* Mobile-like max-width */
}

.conversation-header .btn-clear:hover {
    background: #f0f7ff; /* Mobile-like hover background */
    transform: none; /* Remove transform for mobile-like behavior */
}

.character-info-header {
    flex: 1;
    text-align: left; /* Mobile-like left alignment */
    min-width: 0; /* Allow text truncation */
}

.character-info-header h2 {
    margin: 0 0 2px 0; /* Mobile-like margin */
    font-size: 1.2rem; /* Mobile-like font size */
    font-weight: 600;
    color: #333; /* Mobile-like color */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.character-info-header p {
    margin: 0;
    font-size: 0.8rem; /* Mobile-like font size */
    color: #666; /* Mobile-like color */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-main {
    flex: 1;
    padding: 0; /* Mobile-like no padding */
    display: flex;
    flex-direction: row; /* Allow side-by-side layout */
    gap: 0; /* Mobile-like no gap */
    position: relative;
    overflow: hidden; /* Prevent scrollbars at this level */
    min-height: 0; /* Allow flex shrinking */
    background: #f8f9fa; /* Mobile-like background */
}

.conversation-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Allow scrolling for sticky positioning to work */
    overflow-x: hidden; /* Hide horizontal scrollbar */
    min-height: 0; /* Allow flex shrinking */
}

/* Voice Controls */
.conversation-controls {
    display: flex;
    flex-direction: column; /* Mobile-like column layout */
    gap: 12px; /* Mobile-like gap */
    padding: 16px; /* Mobile-like padding */
    margin: 0; /* Mobile-like no margin */
    background: white; /* Mobile-like background */
    border-bottom: 1px solid #e1e5e9; /* Mobile-like border */
    flex-shrink: 0; /* Prevent shrinking */
}

/* Text Chat Controls */
.text-chat-controls {
    margin-bottom: 20px;
}

.text-input-container {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    max-width: 800px;
    margin: 0 auto;
}

.text-message-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: white;
    color: #333;
    resize: vertical;
    min-height: 50px;
    max-height: 120px;
    font-family: inherit;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.text-message-input:hover {
    border-color: #667eea;
}

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

/* Bottom-positioned Text Chat Controls */
.text-chat-controls-bottom {
    flex-shrink: 0; /* Prevent text input from shrinking */
    background: white;
    border-top: 1px solid #e1e5e9;
    padding: 12px 16px; /* Mobile-like padding */
    margin: 0; /* Remove negative margins that cause overflow */
    z-index: 10;
    position: sticky; /* Add sticky positioning for desktop */
    bottom: 0; /* Stick to bottom */
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1); /* Mobile-like shadow */
}

.text-input-container-bottom {
    display: flex;
    width: 100%;
}

.text-message-input-bottom {
    flex: 1;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid #e1e5e9; /* Mobile-like thinner border */
    border-radius: 20px; /* Mobile-like more rounded */
    background: #f8f9fa; /* Mobile-like background */
    color: #333;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    font-family: inherit;
    line-height: 1.4;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.text-message-input-bottom:hover {
    border-color: #667eea;
}

.text-message-input-bottom:focus {
    outline: none;
    background: white; /* Mobile-like focus background */
    border-color: #007aff; /* Mobile-like focus border color */
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1); /* Mobile-like focus shadow */
}

.text-message-input:disabled,
.text-message-input-bottom:disabled {
    background: #f8f9fa;
    color: #999;
    cursor: not-allowed;
}

.btn-send {
    background: #667eea;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 50px;
}

.btn-send:hover:not(:disabled) {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Controls section */
.controls {
    margin-bottom: 30px;
    text-align: center;
}

.controls label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #555;
}

.name-dropdown {
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 250px;
}

.name-dropdown:hover {
    border-color: #667eea;
}

.name-dropdown:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Character Input Styles */
.character-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.character-input {
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    min-width: 300px;
    flex: 1;
    max-width: 400px;
}

.character-input:hover {
    border-color: #667eea;
}

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

.btn-generate {
    background: #667eea;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
}

.btn-generate:hover:not(:disabled) {
    background: #5a67d8;
    transform: translateY(-1px);
}

.btn-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Character Info Display */
.character-info {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
    text-align: left;
}

.character-details h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.character-details p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Voice Info Styles */
.voice-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
}

.voice-details h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.voice-selection {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.voice-name {
    font-weight: 600;
    color: #667eea;
    font-size: 1rem;
}

.voice-details-text {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #667eea;
    font-weight: 500;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Recent People Section */
.recent-people-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e1e5e9;
}

.recent-people-header {
    margin-bottom: 20px;
}

.recent-people-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #333;
    font-weight: 600;
}

.recent-people-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    background: #f8f9fa;
}

.recent-people-empty {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.recent-people-empty p {
    margin: 0;
    font-size: 1rem;
}

.recent-person-item {
    display: flex;
    align-items: flex-start; /* Top-justify content vertically */
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e1e5e9;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 90px; /* Increased height to accommodate name/time line + 2 message lines */
    box-sizing: border-box;
}

.recent-person-item:last-child {
    border-bottom: none;
}

.recent-person-item:hover {
    background: #f0f7ff;
    /* Removed translateX to prevent horizontal scrollbar */
}

.recent-person-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px; /* Reduced from 2px to 1px for even tighter spacing */
    min-width: 0; /* Allow text truncation */
    transition: transform 0.3s ease;
    position: relative;
    z-index: 5;
}

.recent-person-item.swiped .recent-person-info {
    transform: translateX(-80px);
}

.recent-person-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.recent-person-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left; /* Explicitly left-justify the name */
}

.recent-person-time {
    color: #888;
    font-size: 0.85rem;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

.recent-person-message {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em; /* Approximately 2 lines */
    text-align: left; /* Explicitly left-justify the message text */
}

.recent-person-actions {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dc3545;
    padding: 0 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 10;
    height: 100%; /* Ensure it fills the full height */
}

.recent-person-item.swiped .recent-person-actions {
    transform: translateX(0);
}

.btn-remove-person {
    background: transparent;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove-person:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Conversation Controls */
.conversation-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e1e5e9;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-start {
    background: #28a745;
    color: white;
}

.btn-start:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-1px);
}

.btn-stop {
    background: #dc3545;
    color: white;
}

.btn-stop:hover:not(:disabled) {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-clear {
    background: #6c757d;
    color: white;
    padding: 6px 12px;
    font-size: 0.875rem;
    min-width: auto;
}

.btn-clear:hover {
    background: #5a6268;
}



.btn-small {
    padding: 4px 8px;
    font-size: 0.75rem;
    min-width: auto;
    border-radius: 4px;
}



/* Conversation Container */
.conversation-container {
    background: transparent; /* Mobile-like transparent background */
    border-radius: 0; /* Mobile-like no border radius */
    border: none; /* Mobile-like no border */
    overflow: hidden;
    box-shadow: none; /* Mobile-like no shadow */
    flex: 1; /* Allow container to grow and fill available space */
    display: flex;
    flex-direction: column;
    min-height: 0; /* Allow flex shrinking */
    margin: 0; /* Mobile-like no margin */
}

.conversation-status {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e1e5e9;
    flex-shrink: 0; /* Prevent status from shrinking */
}

.conversation-status-text {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.conversation-listening {
    color: #28a745;
}

.conversation-speaking {
    color: #007bff;
}

.conversation-connected {
    color: #28a745;
}

.conversation-disconnected {
    color: #dc3545;
}

.conversation-processing {
    color: #ffc107;
}

.conversation-error {
    color: #dc3545;
}

/* Transcript */
.transcript-container {
    flex: 1; /* Allow transcript to grow and fill available space */
    display: flex;
    flex-direction: column;
    min-height: 0; /* Allow flex shrinking */
}

.transcript-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.transcript-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.transcript-display {
    flex: 1;
    overflow-y: auto;
    padding: 16px; /* Mobile-like padding */
    background: #f8f9fa; /* Mobile-like background */
    /* Custom scrollbar styling for mobile-like appearance */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.transcript-display::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.transcript-placeholder {
    text-align: center;
    color: #999; /* Mobile-like color */
    font-size: 0.9rem; /* Mobile-like font size */
    margin-top: 40px; /* Mobile-like margin */
    font-style: italic; /* Mobile-like style */
}

.transcript-placeholder p {
    margin: 0;
}

.transcript-entry {
    margin-bottom: 8px; /* Mobile-like margin */
    padding: 12px 16px; /* Mobile-like padding */
    border-radius: 18px; /* Mobile-like border radius */
    max-width: 85%; /* Mobile-like max width */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Mobile-like shadow */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.transcript-user {
    background: #e3f2fd; /* Keep mobile-like color */
    color: #333; /* Mobile-like text color */
    margin-left: auto;
    margin-right: 0;
    border-bottom-right-radius: 4px;
}

.transcript-agent {
    background: #f5f5f5; /* Keep mobile-like color */
    color: #333; /* Mobile-like text color */
    margin-right: auto;
    margin-left: 0;
    border-bottom-left-radius: 4px;
}

.transcript-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.transcript-speaker {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.transcript-time {
    font-size: 0.8rem;
    color: #666;
}

.message-type-indicator {
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.message-type-voice {
    background: #e8f5e8;
    color: #2e7d32;
}

.message-type-text {
    background: #e3f2fd;
    color: #1565c0;
}

.transcript-text {
    line-height: 1.4;
    color: #333;
}

/* Error Modal Styles */
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.error-modal-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.error-modal-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-radius: 15px 15px 0 0;
}

.error-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.error-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.error-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.error-modal-body {
    padding: 25px;
}

.error-message {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.error-details {
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
    font-style: italic;
}

.error-alternatives {
    margin: 15px 0 0 0;
}

.alternatives-header {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.alternatives-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.alternative-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.alternative-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

.error-modal-footer {
    padding: 15px 25px 25px;
    display: flex;
    justify-content: flex-end;
}

/* Communication Mode Modal Styles */
.communication-mode-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.communication-mode-modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

.communication-mode-modal-header {
    padding: 25px 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px 20px 0 0;
}

.communication-mode-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.communication-mode-modal-body {
    padding: 30px;
    text-align: center;
}

.communication-mode-modal-body p {
    margin: 0 0 25px 0;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.5;
}

.communication-mode-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.communication-mode-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.communication-mode-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.communication-mode-option.voice-option:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff, #f0f4ff);
}

.communication-mode-option.text-option:hover {
    border-color: #764ba2;
    background: linear-gradient(135deg, #faf8ff, #f5f0ff);
}

.mode-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.mode-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Debug Panel */
.debug-panel {
    position: relative;
    width: 450px;
    min-width: 250px;
    max-width: 1200px;
    height: 100%;
    background: white;
    border-left: 1px solid #e1e5e9;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
}

.debug-panel[style*="display: flex"] {
    display: flex !important;
}

.debug-panel-resize-handle {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    cursor: ew-resize;
    background: transparent;
    z-index: 10;
    transition: background 0.2s ease;
}

.debug-panel-resize-handle:hover {
    background: rgba(102, 126, 234, 0.2);
}

.debug-panel-resize-handle:active {
    background: rgba(102, 126, 234, 0.4);
}

.debug-panel.resizing {
    user-select: none;
}

.debug-panel.resizing * {
    pointer-events: none;
}

.debug-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
    flex-shrink: 0;
}

.debug-panel-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.debug-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.debug-section {
    margin-bottom: 25px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
}

.debug-section h4 {
    margin: 0;
    padding: 12px 15px;
    background: #6f42c1;
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.debug-subsection {
    border-bottom: 1px solid #e1e5e9;
}

.debug-subsection:last-child {
    border-bottom: none;
}

.debug-subsection h5 {
    margin: 0;
    padding: 10px 15px;
    background: #f8f9fa;
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid #e1e5e9;
}

.debug-code {
    margin: 0;
    padding: 15px;
    background: #f8f9fa;
    border: none;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 200px;
    overflow-y: auto;
}

.debug-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.debug-controls label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #666;
}

.debug-messages {
    max-height: 300px;
    overflow-y: auto;
    background: #f8f9fa;
}

.debug-message {
    padding: 8px 15px;
    border-bottom: 1px solid #e1e5e9;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.3;
}

.debug-message:last-child {
    border-bottom: none;
}

.debug-message-sent {
    background: #e3f2fd;
    color: #1565c0;
}

.debug-message-received {
    background: #f3e5f5;
    color: #7b1fa2;
}

.debug-message-timestamp {
    color: #666;
    font-size: 0.7rem;
    margin-bottom: 2px;
}

.debug-placeholder {
    padding: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
}

/* Debug Panel Voice Info */
.debug-voice-info {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
}

.debug-voice-name {
    font-weight: 600;
    color: #667eea;
    font-size: 1rem;
    margin-bottom: 4px;
}

.debug-voice-details {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Debug Panel API Key Status */
.debug-key-status {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
}

.debug-environment-info {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
}

.status-indicator {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    font-size: 0.9rem;
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 3px;
}

.status-loading {
    color: #667eea;
    font-style: italic;
}

.status-details {
    font-size: 0.9rem;
    color: #666;
}

.status-details > div {
    margin-bottom: 2px;
}

/* Responsive optimizations for narrow viewports (including narrow desktop windows) */
@media (max-width: 768px) {
    /* Mobile-specific body background override */
    body {
        background: white;
        overflow: auto; /* Allow scrolling on mobile if needed */
    }

    /* Ensure minimum touch target sizes */
    button, .btn, input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }

    /* Improve text input on mobile */
    input, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .container {
        padding: 0;
        max-width: 100%;
        overflow: auto; /* Allow scrolling on mobile if needed */
    }

    /* Search Page Mobile */
    .search-page {
        padding: 0;
        min-height: 100vh;
        height: 100vh; /* Fixed height for mobile */
        justify-content: flex-start;
        background: white;
        display: flex;
        flex-direction: column;
    }

    .search-page header {
        margin-bottom: 0;
        padding: 20px 20px 15px 20px;
        color: #333; /* Change text color since background is now white */
        flex-shrink: 0; /* Prevent header from shrinking */
    }

    .search-page header h1 {
        font-size: 2rem; /* Smaller than the previous 2.5rem */
        margin-bottom: 0;
        text-shadow: none; /* Remove text shadow since background is white */
    }

    .search-main {
        padding: 0 20px 20px 20px;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0; /* Allow flex shrinking */
    }

    .search-controls {
        flex-shrink: 0; /* Prevent search controls from shrinking */
        margin-bottom: 20px;
    }

    .search-input-container {
        width: 100%;
        max-width: none;
    }

    .search-input {
        width: 100%;
        padding: 16px 20px;
        font-size: 1rem;
        border-radius: 10px;
    }

    /* Recent People Mobile */
    .recent-people-section {
        margin-top: 0;
        padding-top: 0;
        border-top: none; /* Remove desktop border */
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0; /* Allow flex shrinking */
    }

    .recent-people-header {
        flex-shrink: 0; /* Prevent header from shrinking */
        margin-bottom: 15px;
    }

    .recent-people-header h3 {
        text-align: left;
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    .recent-people-list {
        flex: 1;
        min-height: 0; /* Allow flex shrinking */
        max-height: none; /* Override desktop max-height constraint */
        border-radius: 8px;
        overflow-y: auto; /* Enable scrolling */
    }

    .recent-person-item {
        padding: 15px;
        height: 85px;
        border-radius: 0;
    }

    .recent-person-item:first-child {
        border-radius: 8px 8px 0 0;
    }

    .recent-person-item:last-child {
        border-radius: 0 0 8px 8px;
    }

    .recent-person-header {
        gap: 8px;
        margin-bottom: 1px; /* Reduced from 3px to 1px for even tighter spacing */
    }

    .recent-person-name {
        font-size: 1rem;
        font-weight: 600;
    }

    .recent-person-time {
        font-size: 0.8rem;
    }

    .recent-person-message {
        font-size: 0.9rem;
        max-height: 2.6em;
        line-height: 1.3;
    }

    /* Conversation Page Mobile */
    .conversation-page {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        height: 100vh; /* Fixed height to prevent scrollbars */
        background: #f8f9fa;
        overflow: hidden; /* Prevent page-level scrollbars */
    }

    .conversation-header {
        padding: 12px 16px;
        border-radius: 0;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid #e1e5e9;
        flex-shrink: 0; /* Prevent header from shrinking */
        overflow: hidden; /* Prevent header overflow */
    }

    .conversation-header-content {
        flex-direction: row;
        gap: 12px;
        align-items: center;
        max-width: none;
        justify-content: flex-start;
        width: 100%;
        overflow: hidden; /* Prevent content overflow */
    }

    .btn-back {
        padding: 6px;
        font-size: 1.1rem;
        flex-shrink: 0;
        background: transparent;
        color: #667eea;
        border: 1px solid #e1e5e9;
        border-radius: 6px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-back:hover {
        background: #f8f9fa;
        color: #5a67d8;
    }

    .character-info-header {
        text-align: left;
        flex: 1;
        min-width: 0;
        display: block !important;
        visibility: visible !important;
    }

    .btn-clear {
        padding: 6px 12px;
        font-size: 0.8rem;
        background: transparent;
        color: #667eea;
        border: 1px solid #e1e5e9;
        border-radius: 6px;
        flex-shrink: 0;
        margin-left: auto;
        display: block !important;
        visibility: visible !important;
    }

    .btn-clear:hover {
        background: #f8f9fa;
        color: #5a67d8;
    }

    .character-info-header h2 {
        font-size: 1.2rem;
        margin-bottom: 2px;
        color: #333;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .character-info-header p {
        font-size: 0.8rem;
        color: #666;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .conversation-main {
        padding: 0;
        gap: 0;
        background: #f8f9fa;
        flex: 1;
        display: flex;
        flex-direction: column; /* Stack vertically on mobile */
        min-height: 0; /* Allow flex shrinking */
        overflow: hidden; /* Prevent main container scrollbars */
        padding-bottom: 80px; /* Add space for fixed text input */
    }

    .conversation-main-content {
        flex: 1;
        overflow-y: auto;
    }

    /* Voice Controls Mobile */
    .conversation-controls {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        margin: 0;
        background: white;
        border-bottom: 1px solid #e1e5e9;
        flex-shrink: 0; /* Prevent shrinking */
    }

    .btn {
        width: 100%;
        min-width: auto;
        padding: 14px 20px;
        font-size: 1rem;
        border-radius: 10px;
        font-weight: 600;
    }

    .btn-start {
        background: #34c759;
        border: none;
    }

    .btn-start:hover:not(:disabled) {
        background: #30b350;
    }

    .btn-stop {
        background: #ff3b30;
        border: none;
    }

    .btn-stop:hover:not(:disabled) {
        background: #e6342a;
    }

    /* Text Chat Controls Mobile */
    .text-chat-controls-bottom {
        margin: 0;
        padding: 12px 16px;
        border-radius: 0;
        background: white;
        border-top: 1px solid #e1e5e9;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        flex-shrink: 0; /* Prevent shrinking */
        position: fixed; /* Changed from sticky to fixed for mobile */
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10;
    }

    .text-message-input-bottom {
        font-size: 1rem;
        padding: 12px 16px;
        border-radius: 20px;
        border: 1px solid #e1e5e9;
        background: #f8f9fa;
        transition: all 0.3s ease;
    }

    .text-message-input-bottom:focus {
        background: white;
        border-color: #007aff;
        box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
    }

    /* Conversation Container Mobile */
    .conversation-container {
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        flex: 1;
        display: flex;
        flex-direction: column;
        margin: 0;
        min-height: 0; /* Allow flex shrinking */
    }

    /* Hide conversation status on mobile */
    .conversation-status {
        display: none;
    }

    /* Transcript Mobile */
    .transcript-container {
        height: auto;
        flex: 1;
        border-radius: 0;
        background: transparent;
        border: none;
        display: flex;
        flex-direction: column;
        min-height: 0; /* Allow flex shrinking */
        overflow: hidden; /* Prevent container scrollbars */
    }





    .transcript-display {
        padding: 16px;
        background: #f8f9fa;
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden; /* Hide horizontal scrollbar */
        min-height: 0; /* Allow flex shrinking */
        /* Custom scrollbar styling for mobile */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    .transcript-display::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .transcript-placeholder {
        text-align: center;
        color: #999;
        font-size: 0.9rem;
        margin-top: 40px;
        font-style: italic;
    }

    .transcript-entry {
        max-width: 85%;
        padding: 12px 16px;
        margin-bottom: 8px;
        border-radius: 18px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .transcript-user {
        background: #e3f2fd;
        color: #333;
        margin-left: auto;
        margin-right: 0;
        border-bottom-right-radius: 4px;
    }

    .transcript-agent {
        background: #f5f5f5;
        color: #333;
        margin-right: auto;
        margin-left: 0;
        border-bottom-left-radius: 4px;
    }

    .transcript-entry-header {
        margin-bottom: 6px;
    }

    .transcript-speaker {
        font-size: 0.75rem;
        font-weight: 600;
        opacity: 0.8;
    }

    .transcript-time {
        font-size: 0.7rem;
        opacity: 0.6;
    }

    .transcript-text {
        font-size: 0.9rem;
        line-height: 1.4;
        margin: 0;
    }

    .message-type-indicator {
        display: none;
    }

    /* Debug Panel Mobile - revert to overlay style */
    .debug-panel {
        position: fixed;
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
        min-width: auto;
        height: auto;
        max-height: 80vh;
        border-radius: 8px;
        border-left: 1px solid #e1e5e9;
        z-index: 1000;
    }

    .debug-panel-content {
        padding: 15px;
    }

    .debug-section {
        margin-bottom: 20px;
    }

    .debug-code {
        font-size: 0.75rem;
        padding: 12px;
        max-height: 150px;
    }
}

/* Extra narrow screens (very narrow browser windows) */
@media (max-width: 480px) {
    .conversation-header {
        padding: 8px 12px;
    }

    .conversation-header-content {
        gap: 8px;
    }

    .btn-back {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        padding: 4px;
    }

    .character-info-header h2 {
        font-size: 1rem;
        margin-bottom: 1px;
    }

    .character-info-header p {
        font-size: 0.7rem;
    }

    .btn-clear {
        padding: 4px 8px;
        font-size: 0.7rem;
        min-width: 50px;
    }
}

/* Ultra narrow screens (extremely narrow browser windows) */
@media (max-width: 320px) {
    .conversation-header {
        padding: 6px 8px;
    }

    .conversation-header-content {
        gap: 6px;
    }

    .btn-back {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        padding: 2px;
    }

    .character-info-header h2 {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .character-info-header p {
        font-size: 0.65rem;
        display: none; /* Hide description on ultra narrow screens */
    }

    .btn-clear {
        padding: 3px 6px;
        font-size: 0.65rem;
        min-width: 40px;
    }
}

/* Narrow browser windows on any screen size (for desktop browser testing) */
@media (max-width: 800px) {
    /* Apply mobile-like header styles even on desktop when window is narrow */
    .conversation-header {
        padding: 12px 16px !important;
        background: white !important;
        color: #333 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        border-bottom: 1px solid #e1e5e9 !important;
    }

    .conversation-header-content {
        gap: 12px !important;
        justify-content: flex-start !important;
    }

    .btn-back {
        background: transparent !important;
        color: #667eea !important;
        border: 1px solid #e1e5e9 !important;
        padding: 6px !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        font-size: 1.1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }

    .character-info-header {
        text-align: left !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    .character-info-header h2 {
        font-size: 1.2rem !important;
        color: #333 !important;
        margin-bottom: 2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .character-info-header p {
        font-size: 0.8rem !important;
        color: #666 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .btn-clear {
        background: transparent !important;
        color: #667eea !important;
        border: 1px solid #e1e5e9 !important;
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
        width: auto !important;
        min-width: 60px !important;
        max-width: 80px !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        display: block !important;
        visibility: visible !important;
        white-space: nowrap !important;
    }
}



/* Authentication Styles */
.auth-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.auth-tab:hover {
    color: #667eea;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.auth-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.auth-button {
    width: 100%;
    margin-bottom: 1rem;
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.link-button {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
}

.link-button:hover {
    color: #5a67d8;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

.auth-error {
    background: #fee;
    color: #c33;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.auth-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: #666;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.user-info span {
    color: white;
    font-size: 0.9rem;
}
