@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
    --primary: #2D6A4F;
    --primary-light: #40916C;
    --primary-dark: #1B4332;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a0a00 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 20px;
}

.loading-logo {
    margin-bottom: 30px;
}

.dumbbell {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lift 1.5s ease-in-out infinite;
}

.weight {
    width: 40px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 8px;
    position: relative;
}

.weight::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 4px;
}

.weight.left::after,
.weight.right::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.weight.left::after {
    right: -2px;
}

.weight.right::after {
    left: -2px;
}

.bar {
    width: 120px;
    height: 12px;
    background: linear-gradient(90deg, #666 0%, #888 50%, #666 100%);
    border-radius: 6px;
    margin: 0 5px;
    position: relative;
}

.bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 16px;
    background: #555;
    border-radius: 8px;
}

@keyframes lift {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.loading-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 500;
}

.loading-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.loading-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    animation: fadeInOut 2s ease-in-out infinite;
}

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

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(45, 106, 79, 0.03) 0%, transparent 50%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    mix-blend-mode: screen;
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--primary) 0%, var(--primary-light) 30%, transparent 70%);
    top: -350px;
    left: -350px;
    animation: float1 20s ease-in-out infinite;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-light) 0%, var(--primary) 30%, transparent 70%);
    bottom: -300px;
    right: -300px;
    animation: float2 25s ease-in-out infinite;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-dark) 0%, var(--primary) 30%, transparent 70%);
    top: 50%;
    left: 50%;
    animation: float3 30s ease-in-out infinite;
}

.orb-4 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #40916C 0%, transparent 70%);
    top: 20%;
    right: 10%;
    animation: float4 22s ease-in-out infinite;
}

.orb-5 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #52B788 0%, transparent 70%);
    bottom: 30%;
    left: 15%;
    animation: float5 28s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(100px, -80px) scale(1.2) rotate(120deg);
    }
    66% {
        transform: translate(-50px, 60px) scale(0.9) rotate(240deg);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(-80px, -100px) scale(1.15) rotate(-120deg);
    }
    66% {
        transform: translate(60px, 80px) scale(0.95) rotate(-240deg);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(calc(-50% + 70px), calc(-50% - 70px)) scale(1.1) rotate(90deg);
    }
    50% {
        transform: translate(calc(-50% - 70px), calc(-50% + 70px)) scale(0.9) rotate(180deg);
    }
    75% {
        transform: translate(calc(-50% + 50px), calc(-50% + 50px)) scale(1.05) rotate(270deg);
    }
}

@keyframes float4 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(-120px, 100px) scale(1.3);
        opacity: 0.6;
    }
}

@keyframes float5 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(100px, -120px) scale(1.25);
        opacity: 0.5;
    }
}

/* Floating Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    opacity: 0;
}

.particle:nth-child(1) {
    left: 10%;
    animation: particleFloat 15s ease-in-out infinite;
}

.particle:nth-child(2) {
    left: 20%;
    animation: particleFloat 18s ease-in-out infinite 2s;
}

.particle:nth-child(3) {
    left: 30%;
    animation: particleFloat 20s ease-in-out infinite 4s;
}

.particle:nth-child(4) {
    left: 40%;
    animation: particleFloat 16s ease-in-out infinite 1s;
}

.particle:nth-child(5) {
    left: 50%;
    animation: particleFloat 22s ease-in-out infinite 3s;
}

.particle:nth-child(6) {
    left: 60%;
    animation: particleFloat 19s ease-in-out infinite 5s;
}

.particle:nth-child(7) {
    left: 70%;
    animation: particleFloat 17s ease-in-out infinite 2.5s;
}

.particle:nth-child(8) {
    left: 80%;
    animation: particleFloat 21s ease-in-out infinite 4.5s;
}

.particle:nth-child(9) {
    left: 90%;
    animation: particleFloat 23s ease-in-out infinite 1.5s;
}

.particle:nth-child(10) {
    left: 15%;
    animation: particleFloat 24s ease-in-out infinite 3.5s;
}

@keyframes particleFloat {
    0% {
        bottom: -10px;
        opacity: 0;
        transform: translateX(0) scale(1);
    }
    10% {
        opacity: 0.6;
    }
    50% {
        transform: translateX(50px) scale(1.5);
        opacity: 0.8;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(-30px) scale(0.8);
    }
}

/* Animated Lines */
.bg-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.15;
    width: 100%;
}

.line:nth-child(1) {
    top: 20%;
    animation: lineMove 8s ease-in-out infinite;
}

.line:nth-child(2) {
    top: 50%;
    animation: lineMove 10s ease-in-out infinite 2s;
}

.line:nth-child(3) {
    top: 80%;
    animation: lineMove 12s ease-in-out infinite 4s;
}

@keyframes lineMove {
    0%, 100% {
        transform: translateX(-100%) scaleX(0.5);
        opacity: 0;
    }
    50% {
        transform: translateX(0) scaleX(1);
        opacity: 0.2;
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(40px) saturate(180%);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    transition: all 0.3s ease;
}

/* Header - OPTION B: BOLD & ENERGETIC */
.header {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 50%, #40916C 100%);
    box-shadow: 0 4px 30px rgba(45, 106, 79, 0.4), 0 0 100px rgba(45, 106, 79, 0.2);
    border-bottom: 3px solid #2D6A4F;
    padding: 24px 30px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #52B788, #1B4332, #2D6A4F, #52B788);
    background-size: 200% 100%;
    animation: gradientShift 3s linear infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

/* Clear Chat Button */
.clear-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 5px rgba(255, 255, 255, 0.1);
}

.clear-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.clear-btn:hover {
    background: rgba(45, 106, 79, 0.3);
    border-color: rgba(45, 106, 79, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(45, 106, 79, 0.4), inset 0 2px 8px rgba(255, 255, 255, 0.2);
}

.clear-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(45, 106, 79, 0.3);
}

.logo-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: iconPulse 2s ease-in-out infinite;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-icon:hover {
    transform: scale(1.15) rotate(-5deg);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), inset 0 2px 15px rgba(255, 255, 255, 0.3);
    animation: none;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 35px rgba(0, 0, 0, 0.5), inset 0 2px 12px rgba(255, 255, 255, 0.3);
    }
}

.logo-text h1 {
    font-size: 2em;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.3);
    margin: 0;
    line-height: 1.2;
}

.tagline {
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-top: 4px;
}

.header-stats {
    display: flex;
    gap: 12px;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 5px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-badge:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5), inset 0 2px 8px rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 1.2em;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.stat-text {
    font-size: 0.9em;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* Chat Container */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-behavior: smooth;
}

.messages::-webkit-scrollbar {
    width: 6px;
}

.messages::-webkit-scrollbar-track {
    background: transparent;
}

.messages::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.messages::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Messages */
.message {
    display: flex;
    gap: 12px;
    animation: messageSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message.fade-out {
    animation: messageFadeOut 0.3s ease-out forwards;
}

@keyframes messageFadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.6);
}

.user-message .avatar {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.user-message .avatar:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.message-content {
    flex: 1;
    max-width: 75%;
}

.message-text {
    background: var(--bg-card);
    padding: 16px 20px;
    border-radius: 18px;
    border: 1px solid var(--border);
    line-height: 1.6;
    font-size: 0.95em;
    color: var(--text-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.message-text:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.bot-message .message-text {
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.15) 0%, rgba(64, 145, 108, 0.1) 100%);
    border: 1px solid rgba(45, 106, 79, 0.3);
}

.user-message {
    flex-direction: row-reverse;
}

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

.user-message .message-text:hover {
    transform: translateX(-5px);
}

.thinking-message .message-text {
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.1) 0%, rgba(64, 145, 108, 0.05) 100%);
    border: 1px solid rgba(45, 106, 79, 0.4);
    font-style: italic;
    position: relative;
    overflow: hidden;
}

.thinking-message .message-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 106, 79, 0.3), transparent);
    animation: thinking 1.2s ease-in-out infinite;
}

@keyframes thinking {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Input Container */
.input-container {
    padding: 20px 30px 30px;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95), transparent);
    border-top: 1px solid var(--border);
}

.input-wrapper {
    display: flex;
    gap: 12px;
    background: var(--bg-card);
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.15);
    transform: translateY(-2px);
}

#userInput {
    flex: 1;
    padding: 14px 18px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95em;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

#userInput::placeholder {
    color: var(--text-secondary);
    transition: opacity 0.3s ease;
}

#userInput:focus::placeholder {
    opacity: 0.5;
}

#sendBtn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.4);
    position: relative;
    overflow: hidden;
}

#sendBtn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

#sendBtn:hover::before {
    width: 100px;
    height: 100px;
}

#sendBtn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 25px rgba(45, 106, 79, 0.5);
}

#sendBtn:active {
    transform: translateY(-1px) scale(1.02);
}

#sendBtn.active {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(45, 106, 79, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(45, 106, 79, 0.7);
    }
}

#sendBtn.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-5deg); }
    75% { transform: translateX(5px) rotate(5deg); }
}

#sendBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#sendBtn svg {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

#sendBtn:hover svg {
    transform: translateX(3px) translateY(-3px) rotate(5deg);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        border: none;
    }

    .header {
        padding: 16px 16px;
    }

    .header-content {
        flex-direction: column;
        gap: 12px;
    }

    .header-stats {
        width: 100%;
        justify-content: center;
    }

    .stat-badge {
        flex: 1;
        justify-content: center;
        padding: 6px 10px;
    }

    .stat-text {
        font-size: 0.75em;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-text h1 {
        font-size: 1.3em;
    }

    .tagline {
        font-size: 0.6em;
    }

    .messages {
        padding: 20px 15px;
        gap: 16px;
    }

    .avatar {
        width: 38px;
        height: 38px;
        font-size: 1em;
    }

    .message-content {
        max-width: 80%;
    }

    .message-text {
        padding: 14px 16px;
        font-size: 0.9em;
    }

    .input-container {
        padding: 15px 15px 20px;
    }

    #userInput {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 1.3em;
    }

    .tagline {
        font-size: 0.65em;
    }

    .message-content {
        max-width: 85%;
    }

    .message-text {
        padding: 12px 14px;
        font-size: 0.88em;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        padding: 12px 20px;
    }

    .logo-icon {
        font-size: 2em;
    }

    .logo-text h1 {
        font-size: 1.2em;
    }

    .tagline {
        font-size: 0.65em;
    }

    .messages {
        padding: 15px;
    }

    .input-container {
        padding: 10px 15px 15px;
    }
}

/* Dark scrollbar for Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

/* Loading animation for new features */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.container {
    animation: fadeIn 0.5s ease-in;
}
