﻿
/* Login page animations */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

.animate-spin-slow {
    animation: spin-slow 3s linear infinite;
}

.splash-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #9ca3af;
    z-index: 50;
}

.dark .splash-overlay {
    background-color: #4b5563;
}

.dots-loader {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.energy-spring {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, #00d4ff, #0080ff, #6366f1, #8b5cf6);
    background-size: 300% 300%;
    animation: springPulse 2s ease-in-out infinite, gradientShift 4s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.4),
        0 0 40px rgba(0, 212, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.energy-spring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(0,212,255,0.3) 70%, transparent 100%);
    border-radius: 50%;
    animation: innerGlow 1.5s ease-in-out infinite alternate;
}

.energy-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #00d4ff 0%, #0080ff 50%, transparent 100%);
    border-radius: 50%;
    animation: orbit 3s linear infinite;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.energy-particle:nth-child(1) {
    animation-delay: 0s;
    animation-duration: 2.5s;
}

.energy-particle:nth-child(2) {
    animation-delay: -0.6s;
    animation-duration: 3s;
}

.energy-particle:nth-child(3) {
    animation-delay: -1.2s;
    animation-duration: 2.8s;
}

.energy-particle:nth-child(4) {
    animation-delay: -1.8s;
    animation-duration: 3.2s;
}

.energy-particle:nth-child(5) {
    animation-delay: -2.4s;
    animation-duration: 2.7s;
}

.energy-particle:nth-child(6) {
    animation-delay: -3s;
    animation-duration: 3.1s;
}

/* Энергетические волны */
.energy-wave {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: wave 2s ease-out infinite;
}

.energy-wave:nth-child(2) {
    animation-delay: 0.7s;
}

.energy-wave:nth-child(3) {
    animation-delay: 1.4s;
}

.plasma-spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00d4ff;
    border-radius: 50%;
    animation: spark 1.5s ease-out infinite;
    box-shadow: 0 0 8px rgba(0, 212, 255, 1);
}

.plasma-spark:nth-child(1) {
    top: 20%;
    left: 50%;
    animation-delay: 0s;
}

.plasma-spark:nth-child(2) {
    top: 50%;
    right: 20%;
    animation-delay: 0.3s;
}

.plasma-spark:nth-child(3) {
    bottom: 20%;
    left: 50%;
    animation-delay: 0.6s;
}

.plasma-spark:nth-child(4) {
    top: 50%;
    left: 20%;
    animation-delay: 0.9s;
}

@keyframes springPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
    }
    25% {
        transform: scale(0.85) rotate(90deg);
        filter: brightness(1.2);
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        filter: brightness(0.9);
    }
    75% {
        transform: scale(0.95) rotate(270deg);
        filter: brightness(1.1);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes innerGlow {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(45px) rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 0.7;
        transform: rotate(180deg) translateX(45px) rotate(-180deg);
    }
    to {
        transform: rotate(360deg) translateX(45px) rotate(-360deg);
        opacity: 1;
    }
}

@keyframes wave {
    0% {
        transform: scale(0.8);
        opacity: 1;
        border-color: rgba(0, 212, 255, 0.8);
    }
    50% {
        border-color: rgba(99, 102, 241, 0.4);
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
        border-color: rgba(139, 92, 246, 0.1);
    }
}

@keyframes spark {
    0% {
        transform: scale(0) translateY(0px);
        opacity: 1;
    }
    50% {
        transform: scale(1) translateY(-10px);
        opacity: 0.8;
    }
    100% {
        transform: scale(0) translateY(-20px);
        opacity: 0;
    }
}

.energy-field {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    animation: fieldPulse 3s ease-in-out infinite;
}

.energy-field::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 50%;
    animation: fieldPulse 2.5s ease-in-out infinite reverse;
}

.energy-arc {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(0, 212, 255, 0.6);
    border-radius: 50%;
    animation: arcRotate 4s linear infinite;
}

.energy-arc:nth-child(2) {
    animation-delay: 1s;
    border-top-color: rgba(139, 92, 246, 0.4);
}

.energy-arc:nth-child(3) {
    animation-delay: 2s;
    border-top-color: rgba(99, 102, 241, 0.3);
}

.quantum-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, #ffffff 0%, #00d4ff 100%);
    border-radius: 50%;
    animation: quantumFloat 2.5s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.quantum-particle:nth-child(1) {
    top: 30%;
    left: 70%;
    animation-delay: 0s;
}

.quantum-particle:nth-child(2) {
    top: 60%;
    left: 30%;
    animation-delay: 0.5s;
}

.quantum-particle:nth-child(3) {
    top: 80%;
    left: 60%;
    animation-delay: 1s;
}

@keyframes fieldPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes arcRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes quantumFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 1;
    }
    25% {
        transform: translateY(-8px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-15px) scale(0.8);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-8px) scale(1.1);
        opacity: 0.9;
    }
}

.energy-spring,
.energy-particle,
.energy-wave,
.plasma-spark,
.energy-field,
.energy-arc,
.quantum-particle {
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Темная тема */
.dark .energy-spring {
    background: linear-gradient(45deg, #00d4ff, #0080ff, #6366f1, #a855f7);
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.6),
        0 0 60px rgba(0, 212, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.15);
}

.dark .energy-spring::before {
    background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(0,212,255,0.4) 70%, transparent 100%);
}

.dark .energy-field {
    border-color: rgba(0, 212, 255, 0.3);
}

.dark .energy-field::before {
    border-color: rgba(139, 92, 246, 0.2);
}

.dark .energy-arc {
    border-top-color: rgba(0, 212, 255, 0.8);
}

.dark .energy-arc:nth-child(2) {
    border-top-color: rgba(139, 92, 246, 0.6);
}

.dark .energy-arc:nth-child(3) {
    border-top-color: rgba(99, 102, 241, 0.4);
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    height: 2px;
    background-color: #2563eb;
    transition: left 0.3s ease, width 0.3s ease;
}

#nav-links {
    position: relative;
}

.nav-item {
    position: relative;
    padding-bottom: 0.25rem;
}

    .nav-item.active {
        color: #2563eb;
        font-weight: 500;
    }
nav {
    backdrop-filter: blur(6px);
    transition: background-color 0.3s ease;
}

.dark nav {
    background-color: rgba(31,41,55,0.8);
}

html:not(.dark) nav {
    background-color: rgba(255,255,255,0.8);
}

.theme-circle {
    position: fixed;
    width: 0;
    height: 0;
    border-radius: 9999px;
    transform: translate(-50%, -50%);
    opacity: 0.6;
    pointer-events: none;
    z-index: 50;
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
}

    .theme-circle.expand {
        width: 200vmax;
        height: 200vmax;
    }

    .theme-circle.fade {
        opacity: 0;
    }

html.dark body {
    background-color: #1f2937;
    color: #e5e7eb;
}

html.dark table {
    color: #e5e7eb;
}

    html.dark table tbody tr {
        background-color: #374151;
        color: #ffffff;
    }

    html.dark table thead th {
        color: #ffffff;
    }

html.dark [class*="dark:border-gray-600"] {
    border-color: #4b5563;
}

html.dark [class*="dark:bg-white"] {
    background-color: #ffffff;
}

/* Вот тут ВСЁ заменил! ↓↓↓ */
html.dark [class*="dark:text-blue-600"] {
    color: #2563eb;
}

html.dark thead[class*="dark:from-gray-700"] {
    background-image: linear-gradient(to right,#374151,#1f2937);
}

html.dark [class*="dark:bg-gray-700/50"] {
    background-color: rgba(55,65,81,0.5);
}

html.dark [class*="dark:bg-gray-700"] {
    background-color: #374151;
}

html.dark [class*="dark:bg-gray-800"] {
    background-color: #1f2937;
}

html.dark [class*="dark:text-gray-300"] {
    color: #d1d5db;
}

html.dark [class*="dark:text-gray-200"] {
    color: #e5e7eb;
}

html.dark [class*="dark:text-white"] {
    color: #ffffff;
}

html.dark [class*="dark:border-gray-700"] {
    border-color: #374151;
}

html.dark [class*="dark:hover:bg-gray-700"]:hover {
    background-color: #374151;
}

html.dark #filter-panel {
    background-color: #374151;
    color: #ffffff;
}

html.dark select,
html.dark select option {
    background-color: #1f2937;
    color: #e5e7eb;
}

html.dark input::placeholder {
    color: #9ca3af;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.animate-fadein {
    animation: fadeIn 0.7s cubic-bezier(.37,.01,.53,.98);
}

@keyframes blinkGreen {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.animate-blink-green {
    animation: blinkGreen 1.2s infinite;
}

@keyframes blinkRed {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: .2;
    }
}

.animate-blink-red {
    animation: blinkRed 1.2s infinite;
}

.shadow-glow-green {
    box-shadow: 0 0 16px 3px #4ade8088;
}

.shadow-glow-red {
    box-shadow: 0 0 16px 3px #ef444488;
}

@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.menu-enter {
    animation: slideDown 0.25s cubic-bezier(0.4,0,0.2,1) forwards;
}

.menu-leave {
    animation: slideUp 0.25s cubic-bezier(0.4,0,0.2,1) forwards;
}

.aspect-video {
    position: relative;
    padding-bottom: 56.25%; 
}

.aspect-video > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-enter {
    animation: modalFadeIn 0.3s cubic-bezier(0.4,0,0.2,1) forwards;
}