@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.perspective-container {
    perspective: 1000px;
}

/* Grid Background */
.grid-bg {
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-float-slow {
    animation: float 6s ease-in-out infinite;
}

.clip-path-slant {
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

.animate-shine {
    animation: shine 1s;
}

/* Removed duplicate marquee definition */


/* .animate-marquee:hover {
    animation-play-state: paused;
} */

/* Nav Link 3D Effect */
.nav-link-3d {
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-link-3d:hover {
    transform: translateY(-2px) scale(1.1);
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.8), 0 0 15px rgba(147, 51, 234, 0.5);
    color: #ffffff;
}

.nav-link-3d::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, #3b82f6, #9333ea);
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(-50%);
}

.nav-link-3d:hover::after {
    width: 80%;
}

/* Neon / 3D Button Effects */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-glow {
    box-shadow: 0 0 5px #3b82f6, 0 0 25px #3b82f6, 0 0 50px #3b82f6, 0 0 100px #3b82f6;
}

.text-glow {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5), 0 0 20px rgba(147, 51, 234, 0.3);
}

/* Animated Gradient Text */
/* Animated Gradient Text */
.animate-gradient-text {
    background-size: 200% auto;
    animation: textGradient 3s linear infinite;
}

@keyframes textGradient {
    to {
        background-position: 200% center;
    }
}

/* Logo Premium Animation (Blue-White Pulse) */
.logo-premium-anim {
    animation: logoBlueWhitePulse 3s ease-in-out infinite;
    will-change: filter;
}

@keyframes logoBlueWhitePulse {

    0%,
    100% {
        /* Bright White with Soft Glow */
        filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
    }

    50% {
        /* Intense White Glow */
        filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 35s linear infinite;
}

100% {
    background-position: 100% 50%;
}
}

/* Admin Panel Specifics */
.admin-glass {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-sidebar-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.admin-sidebar-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.admin-sidebar-link:hover::before,
.admin-sidebar-link.active::before {
    transform: scaleY(1);
}

.admin-sidebar-link:hover,
.admin-sidebar-link.active {
    background: rgba(255, 255, 255, 0.03);
    padding-left: 1.5rem;
}

.table-glass th {
    background: rgba(17, 24, 39, 0.9);
    color: #9ca3af;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.table-glass td {
    background: rgba(17, 24, 39, 0.6);
    color: #e5e7eb;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-glass tr:hover td {
    background: rgba(30, 41, 59, 0.8);
}