/* Custom Styles & Utilities */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    cursor: url('/img/cursor.svg') 4 4, auto;
}

/* Interactive Element Custom Cursor */
a,
button,
[role="button"],
input[type="submit"],
.cursor-pointer,
.nav-link {
    cursor: url('/img/cursor-pointer.svg') 6 2, pointer !important;
}

/* Hologram Map Utilities */
.hologram-map {
    filter: invert(1) sepia(1) hue-rotate(180deg) saturate(300%) brightness(0.8);
    mix-blend-mode: screen;
    opacity: 0.8;
    transition: all 0.5s ease;
}

.node-pulse {
    animation: flash 1.5s ease-in-out infinite alternate;
}

@keyframes flash {
    0% {
        opacity: 0.2;
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 10px 2px rgba(37, 99, 235, 0.5);
    }
}

/* Modal Styles */
.modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

/* Tab Transitions */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Dashboard Simulation */
.float-anim {
    animation: floating 6s ease-in-out infinite;
}

.float-anim-delay {
    animation: floating 7s ease-in-out infinite alternate-reverse;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Nav Link Active State */
.nav-link.active {
    color: #2563eb;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2563eb;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
}