body,
html {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
}

#mainApp {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateY(20px);
}

#mainApp.visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.glass-header {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.btn-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-green:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-red:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.transcript-item {
    animation: slideInMessage 0.4s ease-out;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
    opacity: 0;
    transform: translateX(30px);
    }
    to {
    opacity: 1;
    transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
    opacity: 0;
    transform: translateX(-30px);
    }
    to {
    opacity: 1;
    transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.4s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.4s ease-out;
}

.btn-primary {
    background: #ec8123;
    color: white;
}

.btn-primary:hover {
    background: #d86f12;
}

.dropdown-menu {
    display: none;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu {
    max-height: 20rem;
    overflow-y: auto;
    width: auto;
    min-width: 18rem;
    max-width: 24rem;
}

.user-email {
    word-break: break-word;
    white-space: normal;
    line-height: 1.4;
    font-size: 0.85rem;
}

/* Enhanced Transcript Container */
#transcriptContainer {
    scroll-behavior: smooth;
}

#transcriptContainer::-webkit-scrollbar {
    width: 8px;
}

#transcriptContainer::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

#transcriptContainer::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ec8123, #ec8123);
    border-radius: 4px;
}

#transcriptContainer::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ec8123, #ec8123);
}

/* Enhanced Suggestions Container */
#suggestionsContainer {
    scroll-behavior: smooth;
}

#suggestionsContainer::-webkit-scrollbar {
    width: 8px;
}

#suggestionsContainer::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

#suggestionsContainer::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ec8123, #ec8123);
    border-radius: 4px;
}

#suggestionsContainer::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ec8123, #ec8123);
}

/* Status Pulse Animation */
.status-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
    opacity: 1;
    }
    50% {
    opacity: 0.5;
    }
}

/* Recording Indicator */
.recording-indicator {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

/* Message Bubble Styles */
.message-bubble {
    max-width: 75%;
    transition: all 0.2s ease;
}

.message-bubble:hover {
    transform: scale(1.02);
}

.user-message {
    background: linear-gradient(135deg, #af530200 0%, #af530200 100%);
    color: #352b2b;
    border-radius: 1.25rem;
    border-top-right-radius: 0.25rem;
    padding: 0.875rem 1.125rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.ai-message {
    background: white;
    color: #1f2937;
    border: 2px solid #e5e7eb;
    border-radius: 1.25rem;
    border-top-left-radius: 0.25rem;
    padding: 0.875rem 1.125rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.user-avatar {
    background: linear-gradient(135deg, #ec8123 0%, #ec8123 100%);
    color: white;
}

.ai-avatar {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

/* Typing Indicator */
.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
    transform: translateY(0);
    }
    30% {
    transform: translateY(-10px);
    }
}

/* Welcome Message */
.welcome-message {
    text-align: center;
    padding: 3rem 1rem;
}

.welcome-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #ec8123, #ec8123);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Session Summary */
.session-summary {
    background: linear-gradient(135deg, #f8fafc 0%, #f8fafc 100%);
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.summary-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #ec8123, #ec8123);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3);
}

/* Cursor for AI typing */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1rem;
    background: #10b981;
    margin-left: 4px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Error Message */
.error-message {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 0.75rem;
    padding: 1rem;
    margin: 1rem auto;
    max-width: 28rem;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .message-bubble {
    max-width: 85%;
    }

    .recording-indicator {
    bottom: 1rem;
    left: 1rem;
    font-size: 0.875rem;
    }

    .card {
    border-radius: 1rem;
    }
}
