/* Custom Fonts */
@font-face {
    font-family: 'Vazir';
    src: url('fonts/Vazir.woff2') format('woff2'),
         url('fonts/Vazir.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('fonts/Vazir-Bold.woff2') format('woff2'),
         url('fonts/Vazir-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Vazir', 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 87, 108, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(79, 172, 254, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #1a1a2e 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    overflow: hidden;
    position: relative;
}

html::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 200, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Chat Container */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.2),
        0 16px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px;
    animation: containerFadeIn 1s ease-out;
    position: relative;
}

.chat-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    z-index: 1;
}

@keyframes containerFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: headerGradient 8s ease infinite;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    border-radius: 24px 24px 0 0;
    position: relative;
    overflow: hidden;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    /* shimmer animation disabled for stable text */
}

@keyframes headerGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Digital Rain Effect */
.digital-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.rain-drop {
    position: absolute;
    color: rgba(0, 255, 0, 0.7);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    animation: rain-fall 8s linear infinite;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.8);
}

@keyframes rain-fall {
    0% {
        transform: translateY(-100vh);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.avatar {
    width: 60px;
    height: 60px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1)),
        linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    animation: avatarFloat 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: avatarShine 2s infinite;
}

@keyframes avatarFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(1deg); }
}

@keyframes avatarShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4CAF50;
    animation: pulse 2s infinite;
}

.status-indicator.online {
    background: #4CAF50;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: 
        linear-gradient(180deg, rgba(248, 249, 250, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
    scroll-behavior: smooth;
    position: relative;
}

.chat-messages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(120, 119, 198, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 119, 198, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(120, 200, 255, 0.03) 0%, transparent 30%);
    pointer-events: none;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.message-wrapper {
    margin-bottom: 20px;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    max-width: 80%;
}

.bot-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
    margin-right: auto;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-bubble {
    padding: 18px 24px;
    border-radius: 20px;
    word-wrap: break-word;
    position: relative;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(138, 43, 226, 0.05);
    transition: all 0.3s ease;
}

.message-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.bot-message .message-bubble {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 248, 255, 0.9) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 5px;
    position: relative;
    overflow: hidden;
}

.bot-message .message-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    /* messageGlow animation disabled for stable text */
}

@keyframes messageGlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

.user-message .message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: userMessageGradient 4s ease infinite;
    color: white;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 5px;
    position: relative;
    overflow: hidden;
}

.user-message .message-bubble::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    /* userMessageShine animation disabled for stable text */
}

@keyframes userMessageGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes userMessageShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.message-time {
    margin-top: 5px;
    text-align: right;
}

.bot-message .message-time {
    text-align: left;
}

/* Typing Indicator */
.typing-dots {
    display: flex;
    gap: 6px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 248, 255, 0.9) 100%);
    border-radius: 20px;
    border-bottom-left-radius: 5px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.typing-dots span {
    height: 10px;
    width: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.typing-dots span:nth-child(4) {
    animation-delay: 0.6s;
}

.typing-text {
    font-size: 14px;
    color: #667eea;
    font-weight: 500;
    margin-left: 8px;
    animation: none !important;
    transform: none !important;
    opacity: 0.8;
    background: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0) scale(0.8);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-8px) scale(1.1);
        opacity: 1;
    }
}

/* Chat Input */
.chat-input {
    padding: 25px 30px;
    background: 
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 0 0 24px 24px;
    position: relative;
}

.chat-input::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.chat-input .form-control {
    border-radius: 30px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 18px 24px;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 20px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
}

.chat-input .form-control:focus {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.15),
        0 8px 32px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.chat-input .form-control::placeholder {
    color: rgba(102, 126, 234, 0.6);
    transition: all 0.3s ease;
}

.chat-input .form-control:focus::placeholder {
    color: rgba(102, 126, 234, 0.4);
    transform: translateX(5px);
}

.chat-input .btn {
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 300% 300%;
    animation: buttonGradient 4s ease infinite, holographic 2s ease-in-out infinite alternate;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.4),
        0 16px 64px rgba(118, 75, 162, 0.2),
        0 0 40px rgba(240, 147, 251, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.chat-input .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-input .btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 12px 40px rgba(102, 126, 234, 0.5),
        0 8px 24px rgba(118, 75, 162, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.chat-input .btn:hover::before {
    opacity: 1;
}

.chat-input .btn:active {
    transform: translateY(-2px) scale(1.02);
}

.chat-input .btn:disabled {
    opacity: 0.6;
    transform: none;
    animation: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

@keyframes buttonGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes holographic {
    0% {
        filter: hue-rotate(0deg) saturate(1);
        transform: scale(1);
    }
    25% {
        filter: hue-rotate(90deg) saturate(1.2);
        transform: scale(1.02);
    }
    50% {
        filter: hue-rotate(180deg) saturate(1.4);
        transform: scale(1.05);
    }
    75% {
        filter: hue-rotate(270deg) saturate(1.2);
        transform: scale(1.02);
    }
    100% {
        filter: hue-rotate(360deg) saturate(1);
        transform: scale(1);
    }
}

/* Navbar Styles */
.navbar {
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-container {
        margin: 0;
        border-radius: 0;
        height: 100vh;
    }
    
    .chat-header {
        border-radius: 0;
        padding: 15px 20px;
    }
    
    .message {
        max-width: 90%;
    }
    
    .chat-messages {
        padding: 15px;
    }
    
    .chat-input {
        padding: 15px 20px;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .message {
        max-width: 95%;
    }
    
    .message-bubble {
        padding: 12px 15px;
    }
    
    .chat-input .form-control {
        font-size: 14px;
        padding: 12px 18px;
    }
    
    .chat-input .btn {
        width: 45px;
        height: 45px;
    }
}

/* Loading Animation */
.spinner-border {
    animation: spinner-border .75s linear infinite;
}

/* Custom Scrollbar for Firefox */
.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus {
    outline: none;
}

/* Animated Background Particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    border-radius: 50%;
    animation: float 25s infinite linear, glow 3s ease-in-out infinite alternate;
    box-shadow: 
        0 0 6px rgba(79, 172, 254, 0.8),
        0 0 12px rgba(79, 172, 254, 0.4),
        0 0 18px rgba(79, 172, 254, 0.2);
}

.particle:nth-child(odd) {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    box-shadow: 
        0 0 6px rgba(255, 107, 107, 0.8),
        0 0 12px rgba(255, 107, 107, 0.4),
        0 0 18px rgba(255, 107, 107, 0.2);
    animation-duration: 30s, 4s;
}

.particle:nth-child(3n) {
    background: linear-gradient(45deg, #48dbfb, #0abde3);
    box-shadow: 
        0 0 6px rgba(72, 219, 251, 0.8),
        0 0 12px rgba(72, 219, 251, 0.4),
        0 0 18px rgba(72, 219, 251, 0.2);
    animation-duration: 35s, 2.5s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: -5s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: -10s;
    animation-duration: 22s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: -15s;
    animation-duration: 16s;
}

.particle:nth-child(5) {
    left: 60%;
    animation-delay: -8s;
    animation-duration: 25s;
}

.particle:nth-child(6) {
    left: 70%;
    animation-delay: -12s;
    animation-duration: 19s;
}

.particle:nth-child(7) {
    left: 80%;
    animation-delay: -3s;
    animation-duration: 21s;
}

.particle:nth-child(8) {
    left: 90%;
    animation-delay: -7s;
    animation-duration: 17s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes glow {
    0% {
        filter: brightness(0.8) hue-rotate(0deg);
        transform: scale(1);
    }
    50% {
        filter: brightness(1.2) hue-rotate(180deg);
        transform: scale(1.1);
    }
    100% {
        filter: brightness(0.8) hue-rotate(360deg);
        transform: scale(1);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

/* Sparkle Effects */
.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #fff 0%, transparent 70%);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
    pointer-events: none;
}

.sparkle:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 80%; left: 80%; animation-delay: 0.5s; }
.sparkle:nth-child(3) { top: 50%; left: 10%; animation-delay: 1s; }
.sparkle:nth-child(4) { top: 30%; left: 90%; animation-delay: 1.5s; }

/* Tech Status Indicator */
.tech-indicator {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pulse-ring.delay-1 {
    animation-delay: 0.7s;
}

.pulse-ring.delay-2 {
    animation-delay: 1.4s;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: statusBlink 2s infinite;
}

@keyframes statusBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

/* Enhanced Typing Indicator */
.typing-dots {
    display: flex;
    gap: 6px;
    padding: 20px 24px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 248, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border-bottom-left-radius: 5px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.typing-dots span {
    height: 10px;
    width: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: inline-block;
    animation: typingEnhanced 1.6s infinite ease-in-out;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingEnhanced {
    0%, 60%, 100% {
        transform: scale(0.8) translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: scale(1.2) translateY(-10px);
        opacity: 1;
    }
}

/* Scrollbar Enhancement */
.chat-messages::-webkit-scrollbar {
    width: 12px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(248, 249, 250, 0.5);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
}

/* Print Styles */
@media print {
    .chat-input,
    .chat-header,
    .particles-container {
        display: none;
    }
    
    .chat-container {
        box-shadow: none;
        border: 1px solid #ddd;
        background: white;
    }
}