.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: var(--accent-muted);
    margin-top: 64px;
}

.api-banner.hidden {
    display: none;
}

.api-banner .material-symbols-outlined {
    font-size: 18px;
    color: var(--accent-primary);
}

.api-banner span {
    font-size: 13px;
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    scroll-behavior: smooth;
}

.chat-messages.no-scroll {
    overflow: hidden;
}

.background-orbs {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black 50%, transparent 95%);
}

.orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
}

.orb-1 {
    top: -150px;
    left: -100px;
    background: #2d4a3e;
    animation: floatOrb1 15s infinite ease-in-out;
}

.orb-2 {
    bottom: 50px;
    right: -150px;
    background: #3a5c4e;
    animation: floatOrb2 18s infinite ease-in-out 3s;
    width: 500px;
    height: 500px;
}

.orb-3 {
    top: 30%;
    left: 40%;
    background: #233d32;
    animation: floatOrb3 20s infinite ease-in-out 6s;
    width: 450px;
    height: 450px;
}

@keyframes floatOrb1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, 80px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 40px) scale(0.9);
    }
}

@keyframes floatOrb2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-60px, -50px) scale(1.2);
    }
    66% {
        transform: translate(40px, -80px) scale(0.8);
    }
}

@keyframes floatOrb3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(100px, -40px) scale(1.1);
    }
}

.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex-shrink: 0;
    text-align: center;
    padding: 0 20px;
    animation: fadeIn 0.6s ease;
    overflow: hidden;
    position: relative;
}

.welcome-container.hidden {
    display: none;
}

.welcome-heading {
    display: flex;
    flex-direction: column;
    gap: 15px;
    user-select: none;
}

.user-greeting {
    font-size: 80px;
    font-weight: 800;
    color: var(--accent-primary);
    letter-spacing: -2px;
    line-height: 1;
}

.sub-greeting {
    font-size: 56px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -1px;
    line-height: 1.1;
}

.chat-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 40px 20px 200px;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    flex-shrink: 0;
}

.chat-input-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 20px 24px;
    background: linear-gradient(to top, var(--bg-primary) 80%, transparent);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.input-row-screenshot {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.input-main {
    flex: 1;
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 4px 8px 4px 24px;
    transition: border-color 0.3s ease;
}

.input-main:focus-within {
    border-color: var(--accent-primary);
}

.premium-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 17px;
    padding: 14px 0;
    outline: none;
    resize: none;
    max-height: 200px;
    line-height: 1.5;
    font-family: inherit;
}

.input-actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.attached-files {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 800px;
    margin: 8px auto 0;
    width: 100%;
}

.attached-files.has-files {
    display: flex;
}

.attached-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-primary);
}

.attached-file-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attached-file-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.attached-file-remove:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.attached-file-remove .material-symbols-outlined {
    font-size: 16px;
}

.input-actions {
    display: flex;
    gap: 6px;
}

.input-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.input-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.input-action-btn.voice-active {
    color: #ff4b4b;
    background: rgba(255, 75, 75, 0.1);
    animation: pulseMic 1.5s infinite;
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.send-btn-round {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--text-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--bg-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

.send-btn-round:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.send-btn-round:active {
    transform: scale(0.95);
}

.send-btn-round .material-symbols-outlined {
    font-size: 22px;
    font-weight: bold;
}

.message-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: block;
}

.bot-message .message-image {
    border: 1px solid var(--border-color);
}
