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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: #333;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Startup Animation */
.startup-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: 'Courier New', monospace;
    color: #00ff00;
}

.startup-cursor {
    font-size: 2rem;
    animation: blink 1s infinite;
    margin-bottom: 2rem;
}

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

.startup-text {
    font-size: 1.5rem;
    text-align: center;
    opacity: 0;
    animation: typewriter 3s steps(40, end) forwards;
}

@keyframes typewriter {
    from { 
        opacity: 0;
        width: 0;
    }
    to { 
        opacity: 1;
        width: 100%;
    }
}

.startup-screen.fade-out {
    animation: fadeOut 1s forwards;
}

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

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .startup-cursor,
    .startup-text,
    .startup-screen.fade-out,
    .cute-robot,
    .robot-head,
    .eye,
    .robot-mouth,
    .arm,
    .init-progress-bar::after,
    .brain-pulse,
    .network-waves .wave,
    .floating-chars .char {
        animation: none !important;
    }
    
    .startup-text {
        opacity: 1;
        width: 100%;
    }
    
    .startup-cursor {
        opacity: 1;
    }
    
    .cute-robot.active {
        transform: scale(1);
        opacity: 1;
    }
    
    .robot-head {
        transform: none;
    }
    
    .brain-pulse,
    .network-waves .wave,
    .floating-chars .char {
        opacity: 0 !important;
    }
    
    .init-progress-bar::after {
        display: none;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border-radius: 15px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    cursor: pointer;
}

.logo:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* Touch-friendly mobile styling */
@media (hover: none) and (pointer: coarse) {
    .logo {
        -webkit-tap-highlight-color: transparent;
        tap-highlight-color: transparent;
    }
    
    .logo:active {
        opacity: 0.8;
        transform: scale(0.95);
    }
}

.back-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.back-btn:hover {
    transform: translateY(-2px);
}

.main-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.6s ease-out;
    min-height: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

/* Title Section */
.title-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.profile-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-picture {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cute Robot */
.cute-robot {
    position: absolute;
    top: -10px;
    right: -30px;
    transform: scale(0);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    width: 45px;
    height: 60px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.4));
}

.cute-robot.active {
    transform: scale(1);
    opacity: 1;
}

.cute-robot.climbing {
    animation: climbOut 1.5s ease-out forwards;
}

@keyframes climbOut {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(0.8) rotate(5deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Robot Head */
.robot-head {
    width: 30px;
    height: 30px;
    background: linear-gradient(145deg, #ff6b6b, #ffd93d, #74b9ff);
    border-radius: 8px;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6),
                inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: robotFloat 3s ease-in-out infinite;
}

@keyframes robotFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Robot Eyes */
.robot-eyes {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
}

.robot-eye {
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #00ffff 0%, #0080ff 100%);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.8),
                inset 0 0 6px rgba(255, 255, 255, 0.5);
    animation: eyeGlow 2s ease-in-out infinite;
}

@keyframes eyeGlow {
    0%, 100% { 
        box-shadow: 0 0 8px rgba(0, 255, 255, 0.8),
                    inset 0 0 6px rgba(255, 255, 255, 0.5);
    }
    50% { 
        box-shadow: 0 0 10px rgba(0, 255, 255, 1),
                    inset 0 0 8px rgba(255, 255, 255, 0.7);
    }
}

/* Robot Mouth */
.robot-mouth {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 2px;
    background: radial-gradient(ellipse, #00ffff 0%, #0080ff 100%);
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(0, 255, 255, 0.8);
    animation: mouthTalk 3s ease-in-out infinite;
}

@keyframes mouthTalk {
    0%, 100% { 
        width: 8px;
        box-shadow: 0 0 6px rgba(0, 255, 255, 0.8);
    }
    50% { 
        width: 10px;
        box-shadow: 0 0 10px rgba(0, 255, 255, 1);
    }
}

/* Robot Body */
.robot-body {
    width: 22px;
    height: 30px;
    background: linear-gradient(145deg, #ff6b6b, #ffd93d, #74b9ff);
    border-radius: 6px;
    margin: 4px auto;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6),
                inset 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Robot Arms */
.robot-arms {
    position: absolute;
    top: 5px;
    width: 100%;
    height: 12px;
}

.robot-arm {
    width: 6px;
    height: 15px;
    background: linear-gradient(145deg, #ff6b6b, #ffd93d, #74b9ff);
    border-radius: 3px;
    position: absolute;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    animation: armWave 2s ease-in-out infinite;
    transform-origin: top center;
}

.robot-arm.left {
    left: -5px;
    animation-delay: 0s;
}

.robot-arm.right {
    right: -5px;
    animation-delay: 1s;
}

@keyframes armWave {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

/* Robot Legs */
.robot-legs {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 8px;
}

.robot-leg {
    width: 6px;
    height: 12px;
    background: linear-gradient(145deg, #ff6b6b, #ffd93d, #74b9ff);
    border-radius: 0 0 3px 3px;
    position: absolute;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    animation: legWalk 1.5s ease-in-out infinite alternate;
}

.robot-leg.left {
    left: 1px;
    animation-delay: 0s;
}

.robot-leg.right {
    right: 1px;
    animation-delay: 0.75s;
}

@keyframes legWalk {
    0% { transform: translateY(0px); }
    100% { transform: translateY(3px); }
}

/* Sleeping Robot Animation */
.cute-robot.sleeping {
    transform: scale(0.8) rotate(-15deg);
    opacity: 0.7;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

.cute-robot.sleeping .robot-head {
    transform: translateY(10px) rotate(10deg);
    animation: robotSleep 3s ease-in-out infinite;
}

.cute-robot.sleeping .robot-eye {
    width: 4px;
    height: 1px;
    background: #333;
    box-shadow: none;
    animation: none;
}

.cute-robot.sleeping .robot-mouth {
    width: 6px;
    height: 2px;
    background: #333;
    box-shadow: none;
    animation: none;
}

.cute-robot.sleeping .robot-arm {
    animation: sleepingArm 4s ease-in-out infinite;
}

.cute-robot.sleeping .robot-leg {
    animation: none;
    transform: translateY(2px);
}

@keyframes robotSleep {
    0%, 100% { transform: translateY(10px) rotate(10deg); }
    50% { transform: translateY(12px) rotate(8deg); }
}

@keyframes sleepingArm {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(-5deg); }
}

/* Waking up animation */
.cute-robot.waking-up {
    animation: wakeUpSequence 2s ease-out forwards;
}

@keyframes wakeUpSequence {
    0% {
        transform: scale(0.8) rotate(-15deg);
        opacity: 0.7;
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
    }
    50% {
        transform: scale(0.9) rotate(-5deg);
        opacity: 0.9;
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.4));
    }
}

/* Z symbols for sleeping effect */
.sleep-z {
    position: absolute;
    top: -30px;
    right: 10px;
    font-size: 12px;
    color: rgba(255, 215, 0, 0.8);
    opacity: 0;
    animation: floatingZ 3s ease-in-out infinite;
}

.sleep-z:nth-child(1) { animation-delay: 0s; right: 10px; }
.sleep-z:nth-child(2) { animation-delay: 1s; right: 5px; }
.sleep-z:nth-child(3) { animation-delay: 2s; right: 15px; }

@keyframes floatingZ {
    0% { opacity: 0; transform: translateY(0px) scale(0.5); }
    50% { opacity: 1; transform: translateY(-15px) scale(1); }
    100% { opacity: 0; transform: translateY(-30px) scale(0.5); }
}

.robot-speech-bubble {
    position: absolute;
    top: -15px;
    left: 50px;
    background: #fff;
    border: 2px solid #667eea;
    border-radius: 15px;
    padding: 8px 12px;
    font-size: 0.8rem;
    color: #667eea;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 300px;
    width: auto;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 20;
    line-height: 1.3;
}

.robot-speech-bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 8px 6px 0;
    border-color: transparent #667eea transparent transparent;
}

.robot-speech-bubble::after {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 6px 4px 0;
    border-color: transparent #fff transparent transparent;
}

.robot-speech-bubble.show {
    opacity: 1;
    transform: scale(1);
}

.title-text {
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: #666;
    font-weight: 500;
}

/* Initialization Status */
.initialization-status {
    text-align: center;
    margin-bottom: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border: 2px solid #667eea;
    opacity: 1;
    transition: all 0.5s ease;
}

.initialization-status.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    margin-bottom: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

.init-text {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #667eea;
    font-weight: bold;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

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

.init-progress {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.init-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
}

.init-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer 2s infinite;
}

/* Chat Container */
.chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 400px;
    border: 2px solid #667eea;
    border-radius: 15px;
    padding: 15px;
    background: #f8f9fa;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    max-width: 100%;
    overflow: visible;
    transition: all 0.5s ease;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 350px;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    scroll-behavior: smooth;
}

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

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.message {
    display: flex;
    gap: 10px;
    animation: fadeInUp 0.4s ease-out;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 15px;
}

.message:hover {
    transform: translateX(2px);
}

.message::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.message:hover::before {
    opacity: 1;
}

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

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

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.message.bot .message-avatar {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.message-content {
    background: white;
    padding: 15px 20px;
    border-radius: 20px;
    max-width: calc(100% - 80px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: pre-wrap;
    line-height: 1.5;
    transform: scale(0.95);
    animation: messageIn 0.3s ease-out forwards;
}

@keyframes messageIn {
    from {
        transform: scale(0.95);
        opacity: 0.8;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.message.user .message-content {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.message.bot .message-content {
    background: white;
    border: 1px solid #e9ecef;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 5px;
}

/* Process Indicator */
.process-indicator {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #dee2e6;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    animation: slideInDown 0.3s ease-out;
    position: relative;
}


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

.process-step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 5px 0;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Brain pulsing animation */
.brain-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
}

.process-step-icon.running .brain-pulse {
    animation: brainPulse 1.5s infinite ease-in-out;
}

@keyframes brainPulse {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0.8); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2); 
    }
}

/* Network waves animation */
.network-waves {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
}

.network-waves .wave {
    position: absolute;
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 50%;
    opacity: 0;
    width: 100%;
    height: 100%;
    animation: networkWave 2s infinite;
}

.network-waves .wave:nth-child(1) { animation-delay: 0s; }
.network-waves .wave:nth-child(2) { animation-delay: 0.5s; }
.network-waves .wave:nth-child(3) { animation-delay: 1s; }

@keyframes networkWave {
    0% {
        opacity: 0;
        transform: scale(0.1);
    }
    10% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

.process-step-icon.running .network-waves .wave {
    animation-play-state: running;
}

.process-step-icon.pending .network-waves .wave,
.process-step-icon.completed .network-waves .wave,
.process-step-icon.failed .network-waves .wave {
    animation-play-state: paused;
    opacity: 0;
}

/* Floating characters animation */
.floating-chars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.floating-chars .char {
    position: absolute;
    font-size: 0.6rem;
    font-weight: bold;
    color: #667eea;
    opacity: 0;
    animation: floatChar 3s infinite;
}

.floating-chars .char:nth-child(1) { animation-delay: 0s; }
.floating-chars .char:nth-child(2) { animation-delay: 0.3s; }
.floating-chars .char:nth-child(3) { animation-delay: 0.6s; }
.floating-chars .char:nth-child(4) { animation-delay: 0.9s; }
.floating-chars .char:nth-child(5) { animation-delay: 1.2s; }

@keyframes floatChar {
    0%, 100% { 
        opacity: 0; 
        transform: translateY(10px) scale(0.8); 
    }
    50% { 
        opacity: 1; 
        transform: translateY(-10px) scale(1.2); 
    }
}

.process-step-icon.running .floating-chars .char {
    animation-play-state: running;
}

.process-step-icon.pending .floating-chars .char,
.process-step-icon.completed .floating-chars .char,
.process-step-icon.failed .floating-chars .char {
    animation-play-state: paused;
    opacity: 0;
}

.process-step-icon.pending {
    background: #e9ecef;
    color: #6c757d;
}

.process-step-icon.running {
    background: #667eea;
    color: white;
    animation: pulse 1.5s infinite, rotate 2s linear infinite;
}

.process-step-icon.completed {
    background: #28a745;
    color: white;
}

.process-step-icon.failed {
    background: #dc3545;
    color: white;
}

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

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.process-step-text {
    flex: 1;
    color: #495057;
}

.process-step-text.running {
    color: #667eea;
    font-weight: 500;
}

.process-step-text.completed {
    color: #28a745;
}

.process-step-text.failed {
    color: #dc3545;
}

.process-step-result {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 3px;
    font-style: italic;
}

/* Input Area */
.chat-input-area {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.chat-input {
    flex: 1;
    border: 2px solid #e9ecef;
    outline: none;
    padding: 18px 25px;
    border-radius: 25px;
    background: white;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    resize: none;
    min-height: 80px;
    max-height: 150px;
    overflow-y: auto;
    font-family: inherit;
    line-height: 1.5;
    transition: all 0.3s ease;
    position: relative;
}

.chat-input:focus {
    box-shadow: 0 2px 15px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    transform: translateY(-1px);
}

.chat-input::placeholder {
    color: #adb5bd;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.chat-input:focus::placeholder {
    opacity: 0.5;
}

.send-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 18px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 90px;
    font-size: 1.1rem;
    align-self: flex-end;
    position: relative;
    overflow: hidden;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.send-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.send-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.send-btn:hover::before {
    left: 100%;
}

/* Typing Indicator */
.typing-indicator {
    display: none;
    align-items: center;
    gap: 5px;
    padding: 15px 20px;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: typing 1.4s infinite ease-in-out;
}

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

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
    padding: 0 15px;
}

.quick-action-btn {
    background: linear-gradient(45deg, #f8f9fa, #ffffff);
    border: 2px solid #667eea;
    color: #667eea;
    padding: 12px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.quick-action-btn:hover {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 5px;
    }

    .main-content {
        padding: 15px;
        min-height: calc(100vh - 80px);
        margin: 0;
    }
    
    .message-content {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        white-space: pre-wrap;
    }

    .title-section {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
    }

    .profile-container {
        margin-bottom: 10px;
    }

    .profile-picture {
        width: 60px;
        height: 60px;
    }

    .cute-robot {
        right: -25px;
        top: -8px;
        width: 40px;
        height: 50px;
    }

    .robot-head {
        width: 25px;
        height: 25px;
    }

    .robot-body {
        width: 18px;
        height: 25px;
    }

    .robot-arm {
        width: 5px;
        height: 12px;
    }

    .robot-leg {
        width: 5px;
        height: 10px;
    }

    .robot-speech-bubble {
        left: 40px;
        font-size: 0.7rem;
        padding: 6px 10px;
        max-width: 500px;
        width: auto;
        line-height: 1.2;
    }

    .page-title {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    .page-subtitle {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .initialization-status {
        padding: 10px;
        margin-bottom: 10px;
    }

    .init-text {
        font-size: 1rem;
    }

    .message-content {
        max-width: calc(100% - 60px);
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .message-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .quick-actions {
        padding: 0 5px;
        gap: 8px;
    }

    .quick-action-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .chat-input {
        padding: 15px 18px;
        font-size: 1rem;
        max-height: 120px;
        min-height: 65px;
    }

    .send-btn {
        padding: 15px 18px;
        font-size: 1rem;
        min-width: 75px;
    }

    .chat-messages {
        padding: 15px;
    }

    nav {
        padding: 10px 20px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .back-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .process-indicator {
        padding: 10px;
        font-size: 0.8rem;
    }

    .process-step-icon {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 2px;
    }

    .main-content {
        padding: 10px;
        min-height: calc(100vh - 70px);
    }
    
    .message-content {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        white-space: pre-wrap;
        line-height: 1.4;
    }
    
    .robot-speech-bubble {
        left: 30px;
        font-size: 0.65rem;
        padding: 5px 8px;
        max-width: 400px;
        width: auto;
        line-height: 1.1;
    }

    .page-title {
        font-size: 1.5rem;
        margin-bottom: 3px;
    }

    .page-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .message-content {
        max-width: calc(100% - 50px);
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .message-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .chat-input-area {
        padding: 10px;
        gap: 8px;
    }

    .chat-input {
        padding: 12px 15px;
        font-size: 0.95rem;
        max-height: 100px;
        min-height: 55px;
    }

    .send-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
        min-width: 65px;
    }

    .quick-actions {
        padding: 0 5px;
        gap: 6px;
        flex-wrap: wrap;
    }

    .quick-action-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
        flex: 1;
        min-width: calc(50% - 3px);
        text-align: center;
    }

    .chat-messages {
        padding: 10px;
        gap: 10px;
    }

    nav {
        padding: 8px 15px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .back-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .typing-indicator {
        padding: 10px 15px;
    }

    .typing-indicator span {
        font-size: 0.85rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .page-title {
        font-size: 1.3rem;
    }

    .page-subtitle {
        font-size: 0.85rem;
    }

    .message-content {
        max-width: calc(100% - 40px);
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .quick-action-btn {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* Feedback within main content styling */
.main-content .feedback-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    margin-left: -30px;
    margin-right: -30px;
    margin-bottom: -30px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
    background: white;
    border-radius: 0 0 20px 20px;
}

.main-content .feedback-widget.subpage-widget {
    margin-top: 0.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Mobile responsive for feedback in main content */
@media (max-width: 768px) {
    .main-content .feedback-container {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        margin-left: -15px;
        margin-right: -15px;
        margin-bottom: -15px;
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 15px;
    }
    
    .main-content .feedback-widget.subpage-widget {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .main-content .feedback-container {
        margin-top: 1rem;
        padding-top: 1rem;
        margin-left: -10px;
        margin-right: -10px;
        margin-bottom: -10px;
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 10px;
    }
    
    .main-content .feedback-widget.subpage-widget {
        padding: 0.75rem;
    }
}