/* Анимация #1: Капсула с волнами — точная копия из pharma_animations_colorful.html */
.loader-1 {
    position: relative;
    margin: 0 auto;
    width: 80px;
    height: 80px;
}
.loader-1 .pill {
    width: 60px;
    height: 30px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #4facfe);
    background-size: 300% 100%;
    border-radius: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 20px rgba(102,126,234,0.5);
    animation: rotate-pill 3s ease-in-out infinite, gradient-shift 3s ease infinite;
}
.loader-1 .wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    top: 0;
    left: 0;
}
.loader-1 .wave:nth-child(1) {
    border: 3px solid #667eea;
    animation: wave-pulse 2s ease-out infinite;
}
.loader-1 .wave:nth-child(2) {
    border: 3px solid #f093fb;
    animation: wave-pulse 2s ease-out 0.5s infinite;
}
.loader-1 .wave:nth-child(3) {
    border: 3px solid #4facfe;
    animation: wave-pulse 2s ease-out 1s infinite;
}
@keyframes rotate-pill {
    0%, 100% { transform: translate(-50%, -50%) rotate(45deg); }
    50% { transform: translate(-50%, -50%) rotate(405deg); }
}
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes wave-pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Анимация #2: Разноцветные вращающиеся капсулы */
.loader-2 {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}
.loader-2 .orbit-pill {
    width: 20px;
    height: 40px;
    border-radius: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    animation: orbit 2s linear infinite;
    box-shadow: 0 0 15px currentColor;
}
.loader-2 .orbit-pill:nth-child(1) { 
    background: linear-gradient(135deg, #667eea, #764ba2);
    animation-delay: 0s;
}
.loader-2 .orbit-pill:nth-child(2) { 
    background: linear-gradient(135deg, #f093fb, #f5576c);
    animation-delay: 0.5s;
}
.loader-2 .orbit-pill:nth-child(3) { 
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    animation-delay: 1s;
}
.loader-2 .orbit-pill:nth-child(4) { 
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    animation-delay: 1.5s;
}
@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(50px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotate(360deg) translateX(50px) rotate(-360deg);
        opacity: 0.3;
    }
}

/* Анимация #5: Радужная капсула с переливающимся заполнением */
.loader-5 {
    width: 100px;
    height: 50px;
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(90deg, #667eea, #764ba2, #f093fb, #4facfe) border-box;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}
.loader-5::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    animation: fill 2s ease-in-out infinite;
}
@keyframes fill {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* Анимация #7: Разноцветный каскад капсул */
.loader-7 {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}
.loader-7 .flying-pill {
    width: 30px;
    height: 15px;
    border-radius: 15px;
    position: absolute;
    animation: fly 3s ease-in-out infinite;
    box-shadow: 0 0 15px currentColor;
}
.loader-7 .flying-pill:nth-child(1) {
    left: 0px;
    top: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    animation-delay: 0s;
}
.loader-7 .flying-pill:nth-child(2) {
    left: 30px;
    top: 80px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    animation-delay: 0.3s;
}
.loader-7 .flying-pill:nth-child(3) {
    left: 60px;
    top: 80px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    animation-delay: 0.6s;
}
.loader-7 .flying-pill:nth-child(4) {
    left: 90px;
    top: 80px;
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    animation-delay: 0.9s;
}
@keyframes fly {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-40px) rotate(180deg);
        opacity: 1;
    }
    50% {
        transform: translateY(0) rotate(360deg);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-40px) rotate(540deg);
        opacity: 1;
    }
}
