/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
    }
}

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

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Glass morphism effects */
.glass {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom focus styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Message animations */
.message-enter {
    animation: fadeIn 0.3s ease-out;
}

/* Typing indicator */
.typing-dot {
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite;
    margin: 0 2px;
}

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

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

/* Glow effects */
.glow-primary {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.glow-secondary {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

/* Memory card hover */
.memory-card {
    transition: all 0.3s ease;
}

.memory-card:hover {
    transform: translateX(4px);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Category tag active states */
.category-btn.active {
    background: rgba(6, 182, 212, 0.2);
    border-color: #06b6d4;
    color: #06b6d4;
}

.memory-filter.active {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
}

/* Web search result styling */
.search-result {
    border-left: 3px solid #6366f1;
    padding-left: 1rem;
    margin: 0.5rem 0;
}

.search-source {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #06b6d4;
    margin-top: 0.5rem;
}

/* Loading shimmer */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    aside {
        width: 100%;
    }
    
    .lg\:w-64 {
        width: 100%;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
}