:root {
    --primary-green: #059669;
    --light-green: #10b981;
    --dark-green: #047857;
    --primary-orange: #ea580c;
    --light-orange: #fb923c;
    --dark-orange: #c2410c;
    --bg-gradient: linear-gradient(135deg, #f0fdf4 0%, #fef3e7 100%);
}

body {
    background: var(--bg-gradient);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

/* Desktop Layout Styles */
@media (min-width: 1024px) {
    .desktop-layout {
        display: flex;
        height: calc(100vh - 5rem);
        overflow: hidden;
    }

    .desktop-sidebar {
        width: 400px;
        min-width: 400px;
        display: flex;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-right: 1px solid rgba(16, 185, 129, 0.2);
    }

    .desktop-sidebar-content {
        flex: 1;
        overflow-y: auto;
    }

    .desktop-sidebar-button {
        padding: 1.5rem;
        border-top: 1px solid rgba(16, 185, 129, 0.1);
        background: rgba(255, 255, 255, 0.8);
    }

    .desktop-main {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .desktop-conversation {
        flex: 1;
        overflow-y: auto;
        padding: 2rem;
    }
}

/* Mobile-first responsive adjustments */
@media (max-width: 1023px) {
    .mobile-layout {
        min-height: 100vh;
        overflow-y: auto;
    }

    .glass-card {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

/* Conversation scrolling */
.conversation-scroll {
    max-height: 400px;
    overflow-y: auto;
}

@media (min-width: 1024px) {
    .conversation-scroll {
        max-height: calc(100vh - 200px);
    }
}

/* Remove duplicate desktop layout styles - already defined above */

.page-transition {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
    opacity: 1;
}

.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.slide-in-right {
    transform: translateX(100%);
    opacity: 0;
}

.main-button {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .main-button {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .main-button {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
    }
}

.main-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.main-button:hover::before {
    left: 100%;
}

.main-button:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 30px 60px rgba(16, 185, 129, 0.4);
}

.main-button:active {
    transform: translateY(-4px) scale(1.02);
}

.main-button.recording {
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    animation: pulse-orange 1.5s infinite;
}

/* Keyboard focus styles for accessibility */
.main-button:focus,
#bottom-action-btn:focus,
#exit-btn:focus {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.5);
}

/* Enhanced focus styles for better visibility */
button:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

/* Keyboard shortcut styling */
kbd {
    font-family: monospace;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Mobile-first responsive adjustments */
@media (max-width: 1023px) {
    .mobile-layout {
        min-height: 100vh;
        overflow-y: auto;
    }

    .glass-card {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

/* Conversation scrolling */
.conversation-scroll {
    max-height: 400px;
    overflow-y: auto;
}

@media (min-width: 1024px) {
    .conversation-scroll {
        max-height: calc(100vh - 200px);
    }
}

@keyframes pulse-orange {

    0%,
    100% {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 25px 50px rgba(234, 88, 12, 0.4);
    }

    50% {
        transform: translateY(-6px) scale(1.05);
        box-shadow: 0 35px 70px rgba(234, 88, 12, 0.5);
    }
}

.wave-animation {
    animation: wave 1.5s ease-in-out infinite;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-orange));
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(0.5);
    }

    50% {
        transform: scaleY(1.2);
    }
}

.conversation-bubble {
    animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive conversation bubbles */
@media (max-width: 640px) {
    .conversation-bubble .max-w-xs {
        max-width: calc(100vw - 8rem);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.status-ready {
    background: var(--light-green);
}

.status-listening {
    background: var(--primary-orange);
    animation: pulse 1s infinite;
}

.status-processing {
    background: var(--primary-green);
    animation: spin 1s linear infinite;
}

.status-speaking {
    background: var(--light-orange);
    animation: bounce 1s infinite;
}

.status-error {
    background: #ef4444;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.info-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(234, 88, 12, 0.1));
    border: 2px solid rgba(16, 185, 129, 0.2);
}

/* Markdown Formatting Styles for Conversation */
.conversation-bubble strong {
    font-weight: 700;
    color: #047857;
}

.conversation-bubble em {
    font-style: italic;
    color: #065f46;
}

.conversation-bubble h3,
.conversation-bubble h4 {
    color: #065f46;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.conversation-bubble ul,
.conversation-bubble ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.conversation-bubble li {
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.conversation-bubble ul li {
    list-style-type: disc;
}

.conversation-bubble ol li {
    list-style-type: decimal;
}

.conversation-bubble p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.conversation-bubble br {
    content: "";
    display: block;
    margin: 0.25rem 0;
}

/* Better spacing for formatted content */
.conversation-bubble.bg-gradient-to-r.from-orange-100 {
    line-height: 1.6;
    word-spacing: 0.05rem;
}