/* MedLab Pro Custom Styles */
.gradient-bg {
    background: linear-gradient(-45deg, #667eea, #764ba2, #ff6b6b, #4ecdc4);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.glass-effect {
    backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.125);
}

.dark .glass-effect {
    background-color: rgba(31, 41, 55, 0.75);
    border: 1px solid rgba(55, 65, 81, 0.125);
}

.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.floating {
    animation: bounceGentle 6s ease-in-out infinite;
}

.pulse-ring {
    animation: pulseGlow 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
}

.section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

.loading-dots {
    display: inline-block;
}

.loading-dots:after {
    content: '...';
    animation: dots 1.5s steps(5, end) infinite;
}

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

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

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

@keyframes dots {
    0%, 20% { color: rgba(0,0,0,0); text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    40% { color: currentColor; text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    60% { text-shadow: .25em 0 0 currentColor, .5em 0 0 rgba(0,0,0,0); }
    80%, 100% { text-shadow: .25em 0 0 currentColor, .5em 0 0 currentColor; }
}

/* Charts container */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

/* Form styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background-color: white;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
    border-color: transparent;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .form-control {
        background-color: #374151;
        border-color: #4b5563;
        color: white;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .hover-lift:hover {
        transform: none;
        box-shadow: none;
    }
    
    .chart-container {
        height: 250px;
    }
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .float-left {
    float: right;
}

[dir="rtl"] .float-right {
    float: left;
}

/* Animation delays for staggered effects */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }