* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #000000;
    min-height: 100vh;
    display: flex;
    padding: 0;
    margin: 0;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.sidebar {
    width: 260px;
    height: calc(100vh - 48px); /* Account for announcement bar */
    background: #0a1929;
    border-right: 1px solid rgba(20, 184, 166, 0.2);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 48px; /* Below announcement bar */
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(20, 184, 166, 0.2);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo-img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px rgba(20, 184, 166, 0.6));
}

/* Logo with TM container */
.logo-with-tm {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.tm-text {
    font-size: 8px;
    font-weight: 600;
    color: #14b8a6;
    letter-spacing: 0.3px;
    line-height: 1;
    opacity: 0.85;
    margin-left: 1px;
}

/* Sidebar logo TM */
.sidebar-logo .tm-text {
    font-size: 9px;
}

/* Compact badge logo TM */
.compact-badge-mobile .tm-text {
    font-size: 7px;
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid rgba(20, 184, 166, 0.3);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    background: rgba(20, 184, 166, 0.1);
    border-color: rgba(20, 184, 166, 0.5);
    color: #0d9488;
}

/* Mobile hamburger menu button - visible only on mobile */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop by default */
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    background: rgba(20, 184, 166, 0.15);
    border: 1.5px solid rgba(20, 184, 166, 0.4);
    color: #14b8a6;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    z-index: 1001;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:active {
    background: rgba(20, 184, 166, 0.25);
    border-color: #14b8a6;
    transform: scale(1.05);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.sidebar-content {
    flex: 1;
    padding: 12px 12px 0 12px;
    overflow-y: auto;
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(20, 184, 166, 0.3);
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(20, 184, 166, 0.5);
}

.sidebar-item {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 4px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    text-align: left;
}

.sidebar-item:hover {
    background: rgba(20, 184, 166, 0.1);
    color: #0d9488;
}

.sidebar-item svg {
    flex-shrink: 0;
    stroke: currentColor;
}

.sidebar-item.active {
    background: rgba(20, 184, 166, 0.15);
    color: #0d9488;
}

/* Scrolling Announcement Bar */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.95) 0%, rgba(8, 145, 178, 0.95) 100%);
    color: white;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    z-index: 2000; /* Higher than sidebar and header */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(20, 184, 166, 0.5);
}

.announcement-content {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 30s linear infinite;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.announcement-content span {
    display: inline-block;
    padding-right: 50px;
}

.announcement-bar a {
    color: white !important;
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
}

.announcement-bar a:hover {
    color: #eafffb !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    text-decoration: underline;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.app-container {
    width: calc(100% - 260px);
    height: 100vh;
    background: #000000;
    margin-left: 260px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(20, 184, 166, 0.25);
    border-left: 1px solid rgba(20, 184, 166, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 1;
    padding-top: 48px; /* Space for announcement bar */
}

.app-container.sidebar-collapsed {
    width: 100%;
    margin-left: 0;
}

.user-info {
    padding: 12px 30px;
    background: rgba(13, 148, 136, 0.1);
    border-bottom: 1px solid rgba(20, 184, 166, 0.2);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.user-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.username {
    color: #0d9488;
    font-weight: 600;
    margin-left: 4px;
}

.app-header {
    background: #000000;
    color: white;
    padding: 32px 30px 24px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(20, 184, 166, 0.3);
    position: relative;
    margin-bottom: 8px;
}

/* Header top row - flexbox layout */
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    position: relative;
}

/* Header left container - for Back button and Hamburger on mobile */
.header-left-mobile {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-bottom {
    text-align: center;
}

/* Desktop-specific header layout (min-width: 769px) */
@media (min-width: 769px) {
    .app-header {
        text-align: center;
        padding: 32px 30px 24px 30px;
    }
    
    .header-top-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        margin-bottom: 20px;
        position: relative;
        min-height: 50px; /* Ensure proper height for absolutely positioned title */
    }
    
    .header-left-mobile {
        position: absolute;
        top: 0;
        left: 0;
        display: flex !important;
    }
    
    .header-left-mobile .back-button {
        position: static;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #14b8a6;
        font-weight: 600;
        font-size: 14px;
        padding: 12px 20px;
        background: rgba(20, 184, 166, 0.1);
        border-radius: 8px;
        transition: all 0.2s ease;
        cursor: pointer;
        user-select: none;
        border: none;
        outline: none;
        min-width: 90px;
        min-height: 44px;
        z-index: 1000;
        margin: 0;
    }
    
    /* Hide hamburger on desktop */
    .header-left-mobile .mobile-menu-toggle {
        display: none !important;
    }
    
    /* Center the title perfectly on desktop */
    .header-center {
        flex: 0 1 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        min-width: 0;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
    }
    
    .header-right {
        flex: 0 0 auto;
    }
    
    .header-center h1 {
        font-size: 34px;
        letter-spacing: 3px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        max-width: none;
        margin-bottom: 0;
    }
    
    .header-center h1 .tm-superscript {
        font-size: 9px;
        font-weight: 500;
        color: #14b8a6;
        vertical-align: super;
        line-height: 0;
        opacity: 0.75;
        margin-left: 2px;
        position: relative;
        top: -0.3em;
    }
    
    .header-right {
        flex: 0 1 auto;
        display: flex;
        align-items: center;
        gap: 0;
        flex-shrink: 0;
        position: absolute;
        top: 0;
        right: 0;
    }
    
    /* Desktop: Use compact badge (BETA + AY logo merged) */
    .compact-badge-mobile {
        display: flex !important;
        align-items: center;
        gap: 8px;
        padding: 6px 12px;
        background: rgba(20, 184, 166, 0.08);
        border: 1px solid rgba(20, 184, 166, 0.2);
        border-radius: 8px;
    }
    
    .compact-badge-mobile .beta-badge {
        font-size: 10px;
        padding: 2px 6px;
        margin: 0;
        top: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        animation: none;
        position: relative;
    }
    
    .compact-badge-mobile .logo-compact {
        width: 24px;
        height: 24px;
        filter: drop-shadow(0 0 4px rgba(20, 184, 166, 0.6));
    }
    
    /* Hide separate logo and beta on desktop */
    .header-right .logo:not(.logo-compact),
    .header-right .beta-badge:not(.compact-badge-mobile .beta-badge) {
        display: none !important;
    }
    
    /* Hide mobile menu toggle on desktop */
    .mobile-menu-toggle {
        display: none !important;
    }
    
    /* Hide mobile-specific header elements on desktop */
    .header-mobile-left {
        display: none !important;
    }
    
    /* Desktop: header-left-mobile should be inline */
    .header-left-mobile {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
    
    /* Show back button on desktop (absolutely positioned on left) */
    .header-left-mobile .back-button {
        display: flex !important;
    }
    
    /* Center the title perfectly on desktop */
    .header-center {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        min-width: 0;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        margin-bottom: 0;
    }
    
    /* Ensure proper spacing between title and subtitle */
    .header-bottom {
        text-align: center;
        margin-top: 18px;
        padding-top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .tagline {
        font-size: 16px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.85);
        margin-bottom: 14px;
        margin-top: 0;
        line-height: 1.5;
        text-align: center;
    }
    
    .india-tag {
        font-size: 12px;
        margin-top: 12px;
        margin-bottom: 6px;
    }
    
    .cities-tag {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
        margin-top: 4px;
        margin-bottom: 2px;
    }
    
    .cities-tag-sub {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.7);
        font-weight: 400;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    /* Hide mobile-only hero elements on desktop */
    .hero-primary,
    .hero-secondary,
    .example-queries-section {
        display: none;
    }
    
    /* Show original welcome message on desktop */
    .welcome-message p:not(.hero-primary):not(.hero-secondary) {
        display: block;
    }
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.5), transparent);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
    position: relative;
    flex-wrap: wrap;
}

/* Back button base styles */
.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #14b8a6;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 20px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    border: none;
    outline: none;
    min-width: 90px;
    min-height: 44px;
    z-index: 1000;
    flex-shrink: 0;
}

.logo {
    width: 52px;
    height: 52px;
    order: 3; /* Logo appears after BETA badge */
    filter: 
        drop-shadow(0 0 8px rgba(20, 184, 166, 0.8))
        drop-shadow(0 0 16px rgba(20, 184, 166, 0.5))
        drop-shadow(0 0 24px rgba(20, 184, 166, 0.3));
    transition: filter 0.3s ease;
}

.header-center h1 {
    margin: 0;
}

.header-right .beta-badge {
    margin: 0;
}

.logo:hover {
    filter: 
        drop-shadow(0 0 12px rgba(20, 184, 166, 1))
        drop-shadow(0 0 24px rgba(20, 184, 166, 0.7))
        drop-shadow(0 0 32px rgba(20, 184, 166, 0.4));
}

.app-header h1,
.header-center h1 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #0d9488;
    text-shadow: 
        0 0 10px rgba(13, 148, 136, 0.6),
        0 0 20px rgba(13, 148, 136, 0.4),
        0 0 30px rgba(13, 148, 136, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.beta-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #0d9488;
    background: rgba(13, 148, 136, 0.1);
    border: 1.5px solid rgba(13, 148, 136, 0.4);
    border-radius: 6px;
    text-transform: uppercase;
    position: relative;
    top: -8px;
    margin-left: 12px;
    box-shadow: 
        0 0 12px rgba(13, 148, 136, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: betaGlow 2s ease-in-out infinite;
}

@keyframes betaGlow {
    0%, 100% {
        box-shadow: 
            0 0 12px rgba(13, 148, 136, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(13, 148, 136, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

.tagline {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 14px;
    margin-top: 8px;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.india-tag {
    font-size: 12px;
    color: #14b8a6;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-top: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.cities-tag {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 8px;
    margin-bottom: 4px;
}

.cities-tag-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    letter-spacing: 0.3px;
    margin-top: 0;
    margin-bottom: 0;
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 40px 32px;
    background: #000000;
    position: relative;
    overflow-x: hidden;
}

.chat-container::-webkit-scrollbar {
    width: 8px;
}

.chat-container::-webkit-scrollbar-track {
    background: #0a1929;
}

.chat-container::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}

.welcome-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    padding: 80px 20px 60px 20px;
    animation: fadeInUp 0.6s ease-out;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Desktop: Show hero section */
@media (min-width: 769px) {
    .hero-primary {
        display: block;
        font-size: 28px;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.98);
        margin-bottom: 14px;
        line-height: 1.5;
        letter-spacing: -0.5px;
        text-align: center;
    }
    
    .hero-secondary {
        display: block;
        font-size: 16px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 40px;
        line-height: 1.6;
        text-align: center;
    }
    
    .example-queries-section {
        display: block;
        margin-top: 40px;
        text-align: center;
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .example-queries-title {
        font-size: 16px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 20px;
        text-align: center;
    }
    
    .example-queries-list {
        gap: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .example-query-card {
        padding: 18px 20px;
        border-radius: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .example-query-card:hover {
        background: rgba(20, 184, 166, 0.1);
        border-color: rgba(20, 184, 166, 0.3);
        transform: translateY(-1px);
    }
    
    .example-text {
        font-size: 15px;
        text-align: left;
    }
}

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

.welcome-message p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.98);
    font-weight: 400;
}

.welcome-message p:first-child {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 24px;
}

.example-queries {
    font-size: 14px;
    color: #14b8a6;
    font-style: italic;
    opacity: 0.95;
    line-height: 2;
    padding: 24px 20px;
    background: rgba(13, 148, 136, 0.08);
    border-radius: 12px;
    border: 1.5px solid rgba(20, 184, 166, 0.3);
    margin-top: 16px;
    margin-bottom: 12px;
}

.message {
    margin-bottom: 24px;
    display: flex;
    animation: fadeIn 0.3s ease-in;
}

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

.message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 75%;
    padding: 16px 20px;
    border-radius: 20px;
    line-height: 1.6;
    word-wrap: break-word;
}

.message.user .message-bubble {
    background: #0d9488;
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 
        0 4px 16px rgba(13, 148, 136, 0.4),
        0 0 24px rgba(13, 148, 136, 0.15);
}

.message.ai .message-bubble {
    background: rgba(20, 184, 166, 0.08);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-bottom-left-radius: 4px;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 24px rgba(20, 184, 166, 0.1);
    backdrop-filter: blur(10px);
}

.message-content {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
}

.message-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.message-content li {
    margin: 8px 0;
    line-height: 1.6;
}

/* Clickable location icon in chat messages - Enhanced Design */
.message-content .location-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    margin-left: 6px;
    margin-right: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    vertical-align: middle;
    line-height: 1;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.15);
    border: 1.5px solid rgba(20, 184, 166, 0.4);
    position: relative;
    font-size: 14px;
    padding: 0;
}

.message-content .location-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.2);
    transition: width 0.3s ease, height 0.3s ease;
}

.message-content .location-link:hover {
    transform: scale(1.25);
    background: rgba(20, 184, 166, 0.25);
    border-color: rgba(20, 184, 166, 0.6);
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.4), 0 0 24px rgba(20, 184, 166, 0.2);
}

.message-content .location-link:hover::before {
    width: 100%;
    height: 100%;
}

.message-content .location-link:active {
    transform: scale(1.1);
    background: rgba(20, 184, 166, 0.3);
}

.message-content .location-link svg {
    position: relative;
    z-index: 2;
    width: 14px;
    height: 14px;
    fill: #14b8a6;
    stroke: #14b8a6;
    stroke-width: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    display: block;
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0d9488;
    animation: typing 1.4s infinite;
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.input-container {
    padding: 28px 30px;
    background: #000000;
    border-top: 1px solid rgba(20, 184, 166, 0.3);
    display: flex;
    gap: 12px;
    position: relative;
    align-items: center;
    margin-top: 8px;
}

/* Input wrapper for mobile icon positioning */
.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

/* Send icon button (hidden on desktop, shown on mobile) */
.send-icon-button {
    display: none;
}

.voice-button {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.3);
    color: #0d9488;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.voice-button:hover {
    background: rgba(13, 148, 136, 0.2);
    border-color: #0d9488;
    transform: scale(1.05);
}

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

.voice-button.recording {
    background: rgba(220, 38, 38, 0.2);
    border-color: #dc2626;
    color: #dc2626;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
    }
}

.input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.5), transparent);
}

/* Desktop: Show input, hide textarea */
.user-input-desktop {
    display: block;
}

.user-input-mobile {
    display: none !important;
}

#userInput {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid rgba(13, 148, 136, 0.3);
    border-radius: 28px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
    background: rgba(13, 148, 136, 0.05);
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
}

#userInput::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#userInput:focus {
    border-color: #0d9488;
    background: rgba(13, 148, 136, 0.08);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

#sendButton {
    padding: 16px 32px;
    background: #0d9488;
    color: white;
    border: none;
    border-radius: 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 4px 16px rgba(13, 148, 136, 0.4),
        0 0 24px rgba(13, 148, 136, 0.15);
    letter-spacing: 0.3px;
}

#sendButton:hover {
    background: #14b8a6;
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(13, 148, 136, 0.5),
        0 0 32px rgba(13, 148, 136, 0.2);
}

#sendButton:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(13, 148, 136, 0.4),
        0 0 16px rgba(13, 148, 136, 0.15);
}

#sendButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.app-footer {
    padding: 20px 30px;
    background: #000000;
    border-top: 1px solid rgba(20, 184, 166, 0.2);
    position: relative;
    margin-top: 4px;
}

.app-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.3), transparent);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.footer-item:hover {
    color: #0d9488;
}

.footer-separator {
    color: rgba(20, 184, 166, 0.3);
    font-weight: 300;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
        max-width: 320px;
    }
    
    /* Sidebar hidden by default on mobile - only show when explicitly opened */
    .sidebar:not(.collapsed) {
        transform: translateX(0);
        z-index: 1000;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    /* Ensure sidebar is collapsed (hidden) by default on mobile */
    .sidebar.collapsed {
        transform: translateX(-100%);
    }
    
    .sidebar-header {
        padding: 16px;
    }
    
    .sidebar-content {
        padding: 10px 10px 0 10px;
    }
    
    .sidebar-item {
        padding: 14px 12px;
        font-size: 15px;
        margin-bottom: 6px;
        min-height: 44px; /* Touch-friendly */
    }
    
    .app-container {
        width: 100%;
        margin-left: 0;
        height: 100vh;
        border-radius: 0;
    }
    
    .app-container.sidebar-collapsed {
        width: 100%;
    }

    .app-header {
        padding: 20px 16px 16px 16px;
        margin-bottom: 12px;
        text-align: left;
    }
    
    .header-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 12px;
        width: 100%;
    }
    
    /* Hide Back button on mobile */
    .header-left-mobile {
        display: none !important;
    }
    
    .back-button {
        display: none !important;
    }
    
    /* Mobile: Hamburger on left */
    .header-mobile-left {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
    }
    
    .mobile-menu-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    .header-center {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        min-width: 0;
        padding: 0 10px;
    }
    
    .app-header h1,
    .header-center h1 {
        font-size: 16px;
        letter-spacing: 1.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        margin: 0;
    }
    
    .header-center h1 .tm-superscript {
        font-size: 8px;
        font-weight: 500;
        color: #14b8a6;
        vertical-align: super;
        line-height: 0;
        opacity: 0.75;
        margin-left: 1px;
        position: relative;
        top: -0.25em;
    }
    
    .header-right {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
    }
    
    /* Compact badge: BETA + Logo merged - tablet size */
    .compact-badge-mobile {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 5px 9px;
        background: rgba(20, 184, 166, 0.1);
        border: 1px solid rgba(20, 184, 166, 0.25);
        border-radius: 7px;
        min-height: 30px;
    }
    
    .compact-badge-mobile .beta-badge {
        font-size: 7px;
        padding: 2px 5px;
        margin: 0;
        top: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        animation: none;
        letter-spacing: 1px;
    }
    
    .compact-badge-mobile .logo-compact {
        width: 19px;
        height: 19px;
        filter: drop-shadow(0 0 4px rgba(20, 184, 166, 0.6));
    }
    
    .compact-badge-mobile .logo-with-tm .tm-text {
        font-size: 6px;
    }

    .logo {
        width: 28px;
        height: 28px;
    }
    
    .beta-badge {
        font-size: 8px;
        padding: 2px 6px;
        margin: 0;
        top: 0;
    }
    
    .header-bottom {
        text-align: center;
        margin-top: 8px;
    }

    .tagline {
        font-size: 13px;
        margin-bottom: 12px;
        margin-top: 10px;
        color: rgba(255, 255, 255, 0.98);
    }

    .india-tag {
        font-size: 11px;
        margin-top: 10px;
        margin-bottom: 6px;
        color: #14b8a6;
    }
    
    .cities-tag {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
        margin-top: 4px;
        margin-bottom: 2px;
    }
    
    .cities-tag-sub {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.7);
        font-weight: 400;
        margin-top: 0;
        margin-bottom: 0;
    }

    .chat-container {
        padding: 24px 16px;
        overflow-x: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .welcome-message {
        padding: 40px 16px 32px 16px;
        text-align: center;
    }
    
    /* Hide original welcome message on mobile */
    .welcome-message p:not(.hero-primary):not(.hero-secondary) {
        display: none;
    }
    
    /* YC-optimized hero section */
    .hero-primary {
        display: block;
        font-size: 20px;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.98);
        margin-bottom: 12px;
        line-height: 1.5;
        letter-spacing: -0.3px;
        text-align: center;
    }
    
    .hero-secondary {
        display: block;
        font-size: 14px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 32px;
        line-height: 1.6;
        text-align: center;
    }
    
    /* Example queries section */
    .example-queries-section {
        margin-top: 32px;
        text-align: center;
    }
    
    .example-queries-title {
        font-size: 14px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 16px;
        text-align: center;
        letter-spacing: 0.5px;
    }
    
    .example-queries-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .example-query-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px;
        background: rgba(20, 184, 166, 0.06);
        border: 1px solid rgba(20, 184, 166, 0.2);
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.2s ease;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .example-query-card:active {
        transform: scale(0.98);
        background: rgba(20, 184, 166, 0.12);
        border-color: rgba(20, 184, 166, 0.4);
    }
    
    .example-text {
        flex: 1;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.9);
        line-height: 1.5;
        text-align: left;
    }
    
    .example-arrow {
        flex-shrink: 0;
        color: #14b8a6;
        opacity: 0.6;
        transition: all 0.2s ease;
    }
    
    .example-query-card:active .example-arrow {
        opacity: 1;
        transform: translateX(2px);
    }
    
    .example-queries {
        font-size: 13px;
        padding: 16px;
    }

    .message-bubble {
        max-width: 85%;
        padding: 14px 18px;
        font-size: 14px;
    }
    
    .message-content {
        font-size: 14px;
    }

    .input-container {
        padding: 16px;
        gap: 10px;
        margin-top: 0;
        position: sticky;
        bottom: 0;
        background: #000000;
        border-top: 1px solid rgba(20, 184, 166, 0.2);
        z-index: 100;
    }
    
    .voice-button {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    
    #userInput {
        padding: 14px 18px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 52px;
        border-radius: 26px;
    }
    
    #userInput:focus {
        box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2), 0 0 12px rgba(20, 184, 166, 0.15);
    }
    
    #sendButton {
        padding: 14px 28px;
        font-size: 15px;
        min-height: 52px;
        border-radius: 26px;
        font-weight: 600;
    }
    
    .user-info {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .app-footer {
        padding: 12px 16px;
    }
    
    .footer-content {
        font-size: 11px;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-separator {
        display: none;
    }
}

/* Mobile-first design for 360px-430px width */
@media (max-width: 430px) {
    body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .sidebar {
        max-width: 100%;
        width: 100%;
    }
    
    .app-container {
        width: 100%;
        margin-left: 0;
    }
    
    .app-header {
        padding: 16px 14px 14px 14px;
        position: relative;
        text-align: left;
        min-height: auto;
        background: #000000;
    }
    
    .header-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 10px;
        width: 100%;
    }
    
    /* Hide Back button on mobile */
    .header-left-mobile {
        display: none !important;
    }
    
    .back-button {
        display: none !important;
    }
    
    /* Mobile: Hamburger on left with spacing */
    .header-mobile-left {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
    }
    
    .mobile-menu-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    .header-center {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        min-width: 0;
        padding: 0 10px;
    }
    
    .app-header h1,
    .header-center h1 {
        font-size: 15px;
        letter-spacing: 1.2px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        margin: 0;
    }
    
    .header-center h1 .tm-superscript {
        font-size: 7px;
        font-weight: 500;
        color: #14b8a6;
        vertical-align: super;
        line-height: 0;
        opacity: 0.75;
        margin-left: 1px;
        position: relative;
        top: -0.25em;
    }
    
    .header-right {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
    }
    
    /* Compact badge on mobile - wider, more readable */
    .compact-badge-mobile {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        background: rgba(20, 184, 166, 0.1);
        border: 1px solid rgba(20, 184, 166, 0.25);
        border-radius: 8px;
        min-height: 34px;
    }
    
    .compact-badge-mobile .beta-badge {
        font-size: 8px;
        padding: 2px 6px;
        letter-spacing: 1.2px;
        font-weight: 600;
    }
    
    .compact-badge-mobile .logo-compact {
        width: 22px;
        height: 22px;
    }
    
    .compact-badge-mobile .logo-with-tm .tm-text {
        font-size: 6px;
    }
    
    .logo {
        width: 24px;
        height: 24px;
    }
    
    .beta-badge {
        font-size: 7px;
        padding: 2px 5px;
        margin: 0;
        top: 0;
        letter-spacing: 1px;
    }
    
    .header-bottom {
        text-align: center;
        margin-top: 6px;
    }
    
    .tagline {
        font-size: 13px;
        margin-bottom: 6px;
        line-height: 1.4;
    }
    
    .india-tag {
        font-size: 11px;
        margin-top: 4px;
        margin-bottom: 4px;
        line-height: 1.3;
    }
    
    .cities-tag {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
        margin-top: 2px;
        margin-bottom: 2px;
        line-height: 1.3;
    }
    
    .cities-tag-sub {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.7);
        font-weight: 400;
        margin-top: 0;
        margin-bottom: 0;
        line-height: 1.3;
    }
    
    .chat-container {
        padding: 32px 14px 20px 14px;
        overflow-x: hidden;
        padding-bottom: 100px; /* Space for sticky input */
        background: #000000;
    }
    
    .welcome-message {
        padding: 32px 0 28px 0;
        max-width: 100%;
        text-align: center;
    }
    
    /* YC-optimized hero section - mobile */
    .hero-primary {
        font-size: 22px;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.98);
        margin-bottom: 10px;
        line-height: 1.5;
        letter-spacing: -0.3px;
    }
    
    .hero-secondary {
        font-size: 15px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 36px;
        line-height: 1.6;
    }
    
    /* Example queries section - mobile */
    .example-queries-section {
        margin-top: 36px;
        text-align: left;
    }
    
    .example-queries-title {
        font-size: 15px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 18px;
        text-align: center;
        letter-spacing: 0.5px;
    }
    
    .example-queries-list {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    
    .example-query-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px;
        background: rgba(20, 184, 166, 0.06);
        border: 1px solid rgba(20, 184, 166, 0.2);
        border-radius: 14px;
        cursor: pointer;
        transition: all 0.2s ease;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .example-query-card:active {
        transform: scale(0.98);
        background: rgba(20, 184, 166, 0.12);
        border-color: rgba(20, 184, 166, 0.4);
    }
    
    .example-text {
        flex: 1;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.9);
        line-height: 1.5;
        text-align: left;
    }
    
    .example-arrow {
        flex-shrink: 0;
        color: #14b8a6;
        opacity: 0.6;
        transition: all 0.2s ease;
    }
    
    .example-query-card:active .example-arrow {
        opacity: 1;
        transform: translateX(2px);
    }
    
    .example-queries {
        font-size: 13px;
        padding: 16px;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-top: 8px;
    }
    
    .example-queries br {
        display: block;
        margin: 8px 0;
        content: "";
    }
    
    .message-bubble {
        max-width: 88%;
        padding: 14px 16px;
        font-size: 14px;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .message-content {
        font-size: 14px;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .input-container {
        padding: 14px;
        gap: 10px;
        flex-wrap: nowrap;
        position: sticky;
        bottom: 0;
        background: #000000;
        border-top: 1px solid rgba(20, 184, 166, 0.2);
        z-index: 100;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    }
    
    .voice-button {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        flex-shrink: 0;
    }
    
    /* Mobile input container - flex layout with flex-end alignment */
    .input-container {
        align-items: flex-end !important;
        gap: 8px !important;
    }
    
    /* Hide text "Send" button on mobile */
    #sendButton {
        display: none !important;
    }
    
    /* Voice button - flex child, aligned with textarea */
    .voice-button {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: flex-end;
    }
    
    /* Input wrapper for mobile - flex container */
    .input-wrapper {
        position: relative;
        flex: 1;
        display: flex;
        align-items: flex-end;
        min-width: 0; /* Allow flex shrinking */
    }
    
    /* Hide desktop input on mobile */
    .user-input-desktop {
        display: none !important;
    }
    
    /* Show mobile textarea - ChatGPT-style */
    .user-input-mobile {
        display: block !important;
        width: 100%;
        padding: 14px 18px; /* Symmetrical padding, no right padding for icon */
        font-size: 16px;
        font-family: inherit;
        line-height: 16px; /* Match font-size for perfect centering */
        min-height: 52px;
        max-height: 200px;
        border: 1px solid rgba(13, 148, 136, 0.3);
        border-radius: 26px;
        background: rgba(13, 148, 136, 0.05);
        color: rgba(255, 255, 255, 0.95);
        resize: none;
        overflow-y: hidden; /* No scrollbar, let it grow */
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: pre-wrap;
        box-sizing: border-box;
        outline: none;
        transition: all 0.2s ease;
    }
    
    .user-input-mobile::placeholder {
        color: rgba(255, 255, 255, 0.4);
        line-height: 16px; /* Match text line-height */
    }
    
    .user-input-mobile:focus {
        border-color: #0d9488;
        background: rgba(13, 148, 136, 0.08);
        box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2), 0 0 12px rgba(20, 184, 166, 0.15);
    }
    
    /* Send icon button - flex child, NOT absolutely positioned */
    .send-icon-button {
        display: flex !important;
        position: static !important; /* Remove absolute positioning */
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        border-radius: 50%;
        background: #0d9488;
        color: white;
        border: none;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(13, 148, 136, 0.4);
        padding: 0;
        flex-shrink: 0;
        align-self: flex-end; /* Align with textarea baseline */
    }
    
    .send-icon-button:hover {
        background: #14b8a6;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(13, 148, 136, 0.5);
    }
    
    .send-icon-button:active {
        transform: scale(0.95);
    }
    
    .send-icon-button:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        background: rgba(13, 148, 136, 0.3);
        transform: scale(1);
    }
    
    .send-icon-button svg {
        width: 20px;
        height: 20px;
        stroke: currentColor;
    }
    
    /* Hide desktop input on mobile */
    #userInput.user-input-desktop {
        display: none !important;
    }
    
    .app-footer {
        padding: 12px 16px;
    }
    
    .footer-content {
        font-size: 11px;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
        line-height: 1.4;
    }
    
    .footer-item {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Back button - make it more visible on mobile */
    .back-button {
        top: 8px !important;
        left: 8px !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
        min-width: 80px !important;
        min-height: 44px !important;
        background: rgba(20, 184, 166, 0.25) !important;
        border: 1.5px solid rgba(20, 184, 166, 0.5) !important;
        box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3) !important;
        z-index: 1001 !important;
    }
    
    .back-button:hover,
    .back-button:active {
        background: rgba(20, 184, 166, 0.4) !important;
        border-color: #14b8a6 !important;
    }
    
    /* New chat button - make it more prominent */
    .sidebar-item#newChatBtn {
        background: rgba(20, 184, 166, 0.2) !important;
        border: 1.5px solid rgba(20, 184, 166, 0.4) !important;
        font-weight: 600 !important;
        font-size: 15px !important;
        padding: 16px 14px !important;
        margin-bottom: 12px !important;
        box-shadow: 0 2px 8px rgba(20, 184, 166, 0.2) !important;
    }
    
    .sidebar-item#newChatBtn:hover,
    .sidebar-item#newChatBtn:active {
        background: rgba(20, 184, 166, 0.3) !important;
        border-color: #14b8a6 !important;
        transform: translateY(-1px);
    }
    
    /* Mobile adjustments for location link */
    .message-content .location-link {
        width: 22px;
        height: 22px;
        margin-left: 4px;
        margin-right: 1px;
        font-size: 12px;
    }
    
    .message-content .location-link:hover {
        transform: scale(1.2);
        box-shadow: 0 0 8px rgba(20, 184, 166, 0.3), 0 0 16px rgba(20, 184, 166, 0.15);
    }
    
    .message-content .location-link:active {
        transform: scale(1.05);
    }
    
    .message-content .location-link svg {
        width: 12px;
        height: 12px;
        fill: #14b8a6;
        stroke: #14b8a6;
        stroke-width: 1.5;
    }
}

/* Mobile adjustments for announcement bar */
@media (max-width: 768px) {
    .app-container {
        padding-top: 44px;
    }
    
    .sidebar {
        top: 44px;
        height: calc(100vh - 44px);
    }
    
    .announcement-bar {
        padding: 10px 0;
    }
    
    .announcement-content {
        font-size: 12px;
        animation-duration: 25s; /* Faster on mobile for shorter screens */
    }
}

@media (max-width: 430px) {
    .app-container {
        padding-top: 40px;
    }
    
    .sidebar {
        top: 40px;
        height: calc(100vh - 40px);
    }
    
    .announcement-bar {
        padding: 8px 0;
    }
    
    .announcement-content {
        font-size: 11px;
        animation-duration: 20s;
    }
}

/* Specific optimization for 360px-430px (most common mobile phones) */
@media (min-width: 360px) and (max-width: 430px) {
    body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .app-container {
        width: 100%;
        margin-left: 0;
        max-width: 100vw;
        padding-top: 40px; /* Account for announcement bar */
    }
    
    .app-header {
        padding: 14px 12px 10px 12px;
    }
    
    .app-header h1 {
        font-size: 24px;
        letter-spacing: 2px;
        line-height: 1.2;
    }
    
    .logo {
        width: 38px;
        height: 38px;
    }
    
    .logo-container {
        gap: 10px;
        margin-bottom: 12px;
        flex-wrap: wrap;
    }
    
    .logo {
        order: 3;
    }
    
    .app-header h1 {
        order: 1;
    }
    
    .beta-badge {
        order: 2;
        font-size: 10px;
        padding: 4px 10px;
        margin-left: 8px;
    }
    
    .tagline {
        font-size: 14px;
        margin-bottom: 8px;
        line-height: 1.5;
        padding: 0 4px;
    }
    
    .india-tag {
        font-size: 12px;
        margin-top: 6px;
        margin-bottom: 4px;
        line-height: 1.4;
    }
    
    .cities-tag {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
        margin-top: 2px;
        margin-bottom: 2px;
        line-height: 1.4;
    }
    
    .cities-tag-sub {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.7);
        font-weight: 400;
        margin-top: 0;
        margin-bottom: 0;
        line-height: 1.4;
    }
    
    .chat-container {
        padding: 28px 14px;
        overflow-x: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .welcome-message {
        padding: 40px 0 32px 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .welcome-message p {
        font-size: 17px;
        line-height: 1.65;
        margin-bottom: 22px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 4px;
    }
    
    .welcome-message p:first-child {
        font-size: 19px;
        font-weight: 500;
        line-height: 1.55;
        margin-bottom: 18px;
    }
    
    .example-queries {
        font-size: 14px;
        padding: 18px 14px;
        line-height: 1.75;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-top: 10px;
        box-sizing: border-box;
    }
    
    .example-queries br {
        display: block;
        margin: 10px 0;
        content: "";
    }
    
    .message-bubble {
        max-width: 90%;
        padding: 15px 18px;
        font-size: 15px;
        line-height: 1.65;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .message-content {
        font-size: 15px;
        line-height: 1.65;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .input-container {
        padding: 18px 14px;
        gap: 10px;
        flex-wrap: nowrap;
        box-sizing: border-box;
        margin-top: 16px;
    }
    
    .voice-button {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        flex-shrink: 0;
    }
    
    /* Ensure icon button styles apply in 430px breakpoint too */
    #sendButton {
        display: none !important;
    }
    
    .send-icon-button {
        display: flex !important;
    }
    
    #userInput {
        padding: 13px 60px 13px 16px; /* Right padding for icon */
        font-size: 16px;
        min-width: 0;
        flex: 1;
        word-wrap: break-word;
        overflow-wrap: break-word;
        box-sizing: border-box;
    }
    
    /* Hide text "Send" button on mobile (430px) */
    #sendButton {
        display: none !important;
    }
    
    /* Ensure icon button is visible */
    .send-icon-button {
        display: flex !important;
    }
    
    .app-footer {
        padding: 18px 14px;
        box-sizing: border-box;
        margin-top: 12px;
    }
    
    .footer-content {
        font-size: 12px;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        line-height: 1.5;
    }
    
    .footer-item {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Enhanced back button styling for 360px-430px */
    .back-button {
        top: 10px !important;
        left: 10px !important;
        padding: 11px 18px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        min-width: 85px !important;
        min-height: 46px !important;
        background: rgba(20, 184, 166, 0.3) !important;
        border: 2px solid rgba(20, 184, 166, 0.6) !important;
        box-shadow: 
            0 3px 10px rgba(20, 184, 166, 0.4),
            0 0 0 1px rgba(20, 184, 166, 0.2) !important;
        z-index: 1001 !important;
        color: #14b8a6 !important;
        text-shadow: 0 1px 2px rgba(20, 184, 166, 0.3) !important;
    }
    
    .back-button:hover,
    .back-button:active,
    .back-button:focus {
        background: rgba(20, 184, 166, 0.5) !important;
        border-color: #14b8a6 !important;
        box-shadow: 
            0 4px 12px rgba(20, 184, 166, 0.5),
            0 0 0 2px rgba(20, 184, 166, 0.3) !important;
        transform: translateY(-1px);
    }
    
    /* Enhanced new chat button for 360px-430px */
    .sidebar-item#newChatBtn {
        background: rgba(20, 184, 166, 0.25) !important;
        border: 2px solid rgba(20, 184, 166, 0.5) !important;
        font-weight: 700 !important;
        font-size: 16px !important;
        padding: 18px 16px !important;
        margin-bottom: 14px !important;
        box-shadow: 
            0 3px 10px rgba(20, 184, 166, 0.25),
            0 0 0 1px rgba(20, 184, 166, 0.15) !important;
        min-height: 52px !important;
    }
    
    .sidebar-item#newChatBtn:hover,
    .sidebar-item#newChatBtn:active,
    .sidebar-item#newChatBtn:focus {
        background: rgba(20, 184, 166, 0.35) !important;
        border-color: #14b8a6 !important;
        box-shadow: 
            0 4px 12px rgba(20, 184, 166, 0.35),
            0 0 0 2px rgba(20, 184, 166, 0.25) !important;
        transform: translateY(-1px);
    }
    
    /* Ensure sidebar is full width on this range */
    .sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    /* Prevent any horizontal overflow */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    body, html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .sidebar-item,
    .voice-button,
    #sendButton {
        min-height: 44px;
    }
    
    .sidebar-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Video container and iframe styling */
#sidebarVideoContainer {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

#sidebarVideoContainer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    max-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
}

/* Video section wrapper responsive */
@media (max-width: 768px) {
    .video-section-wrapper {
        margin: 12px 4px !important;
        padding: 8px !important;
    }
    
    #sidebarVideoContainer {
        min-height: 180px !important;
        max-height: 250px !important;
    }
    
    #sidebarVideoContainer iframe {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .video-section-wrapper {
        margin: 8px 2px !important;
        padding: 6px !important;
    }
    
    #sidebarVideoContainer {
        min-height: 150px !important;
        max-height: 200px !important;
    }
    
    #sidebarVideoContainer iframe {
        border-radius: 6px;
    }
}

/* Specific optimization for 360px width */
@media (min-width: 360px) and (max-width: 390px) {
    .header-center h1 {
        font-size: 13px;
    }
    
    /* Hide Back button on small mobile */
    .header-left-mobile {
        display: none !important;
    }
    
    .back-button {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }
    
    .logo {
        width: 22px;
        height: 22px;
    }
    
    .beta-badge {
        font-size: 6px;
        padding: 1px 4px;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .app-header {
        padding: 12px 16px;
    }
    
    .header-top-row {
        margin-bottom: 8px;
    }
    
    .app-header h1,
    .header-center h1 {
        font-size: 16px;
    }
    
    .logo {
        width: 28px;
        height: 28px;
    }
    
    .chat-container {
        padding: 12px 16px;
    }
    
    .welcome-message {
        padding: 20px 16px;
    }
    
    .input-container {
        padding: 12px 16px;
    }
    
    #sidebarVideoContainer {
        min-height: 150px !important;
        max-height: 200px !important;
        padding-top: 56.25% !important;
    }
}

/* Mobile adjustments for announcement bar */
@media (max-width: 768px) {
    .app-container {
        padding-top: 44px;
    }
    
    .sidebar {
        top: 44px;
        height: calc(100vh - 44px);
    }
    
    .announcement-bar {
        padding: 10px 0;
    }
    
    .announcement-content {
        font-size: 12px;
        animation-duration: 15s; /* Faster: changed from 25s to 15s */
        padding-left: 20%; /* Start closer: changed from 100% to 20% */
    }
}

@media (max-width: 430px) {
    .app-container {
        padding-top: 40px;
    }
    
    .sidebar {
        top: 40px;
        height: calc(100vh - 40px);
    }
    
    .announcement-bar {
        padding: 8px 0;
    }
    
    .announcement-content {
        font-size: 11px;
        animation-duration: 12s; /* Faster: changed from 20s to 12s */
        padding-left: 15%; /* Start closer: changed from 100% to 15% */
    }
}