/* Custom Glassmorphism & Animations */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* Frontend Theme (When using the default background) */
body:not(.bg-gray-50) {
    background-color: #0f172a;
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    background-attachment: fixed;
    background-size: cover;
    color: #f1f5f9;
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(15, 23, 42, 0.4);
    /* slate-900 with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-nav {
    background: rgba(15, 23, 42, 0.85);
    /* slate-900 with opacity */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(30, 41, 59, 0.4);
    /* slate-800 with opacity */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(139, 92, 246, 0.2);
    /* violet shadow */
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(167, 139, 250, 0.3);
    /* violet border */
}

/* Gradients */
.gradient-text {
    background: linear-gradient(135deg, #f472b6 0%, #a78bfa 50%, #22d3ee 100%);
    /* pink-400 to violet-400 to cyan-400 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
    /* pink-600 to violet-600 */
}

/* Animations - Keeping same */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-delay-100 {
    animation-delay: 100ms;
}

.animate-delay-200 {
    animation-delay: 200ms;
}

.animate-delay-300 {
    animation-delay: 300ms;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(52, 211, 153, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 211, 153, 0.7);
}

/* Utilities */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Admin Visibility Overrides */
body.bg-gray-50 {
    color: #334155 !important;
    background-image: none !important;
}

body.bg-gray-50 .bg-white {
    color: #1e293b !important;
}

body.bg-gray-50 table td {
    color: #1e293b !important;
}

body.bg-gray-50 input,
body.bg-gray-50 select,
body.bg-gray-50 textarea {
    color: #1e293b !important;
}

body.bg-gray-50 p.text-gray-500,
body.bg-gray-50 p.text-gray-400 {
    color: #64748b !important;
    /* slate-500 */
}

body.bg-gray-50 .truncate {
    color: inherit !important;
}