/* Custom styles for Diet Designer */

/* Loading dots animation */
.loading-dots::after {
    content: '';
    animation: loadingDots 1.5s steps(4, end) infinite;
}

@keyframes loadingDots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Smooth transitions for theme switching */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Line clamp utility */
.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Chat message animations */
.chat-message {
    animation: fadeInUp 0.3s ease-out;
}

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

/* Custom scrollbar for chat */
#chatMessages::-webkit-scrollbar {
    width: 6px;
}

#chatMessages::-webkit-scrollbar-track {
    background: transparent;
}

#chatMessages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.dark #chatMessages::-webkit-scrollbar-thumb {
    background: #4b5563;
}

/* Button hover effects */
.hover-scale:hover {
    transform: scale(1.02);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #047857, #059669, #047857);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

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

/* Focus styles */
.focus-ring:focus {
    outline: 2px solid #10B981;
    outline-offset: 2px;
}

/* Custom green focus styles for all inputs */
input:focus, textarea:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px #10B981 !important;
    border-color: #10B981 !important;
}

/* Override Tailwind focus ring colors */
.focus\:ring-green-500:focus {
    --tw-ring-color: #10B981 !important;
    box-shadow: 0 0 0 2px #10B981 !important;
}

/* Modern card hover effects */
.modern-card {
    transition: all 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dark .modern-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Phosphor icon fixes */
.ph {
    font-family: "Phosphor Icons";
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

/* Drag and drop animation */
.drag-over {
    border-color: #10B981 !important;
    background-color: rgba(16, 185, 129, 0.1) !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .mobile-full {
        width: 100%;
    }
    
    .mobile-text-center {
        text-align: center;
    }
    
    .mobile-hidden {
        display: none;
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gray-50 {
        background-color: white !important;
    }
    
    .text-gray-600 {
        color: black !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 