/* From Uiverse.io by SRIMANKS */
.card {
    width: 190px;
    height: 254px;
    background: rgba(117, 12, 12, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: 0.2s;
}

.card:hover {
    transform: scale(1.05);
    transition: 0.2s;
    filter: drop-shadow(0px 0px 10px rgb(249, 249, 249));
}

.card::after {
    content: "scanning";
    height: fit-content;
    width: 100%;
    color: rgb(255, 255, 255);
    position: absolute;
    z-index: 2;
    bottom: 15%;
    text-align: center;
    animation: 2s dots infinite;
}

.card::before {
    content: "";
    height: 0.1em;
    width: 80%;
    border-radius: 10px;
    background-color: rgb(249, 249, 249);
    position: absolute;
    z-index: 2;
    bottom: 10%;
    animation: 4s grow infinite;
    align-self: flex-start;
    margin-left: 10%;
    filter: drop-shadow(0px 0px 10px #ffffff) drop-shadow(0px 0px 10px #ffffff);
}

.card svg {
    filter: drop-shadow(0px 0px 10px #ffffff) drop-shadow(0px 0px 50px #ffffff);
}


@keyframes loop {
    0% {
        stroke-dashoffset: 50;
        stroke-dasharray: 90;
    }

    50% {
        stroke-dashoffset: 100;
        ;
        stroke-dasharray: 50;
    }

    100% {
        stroke-dashoffset: 50;
        stroke-dasharray: 90;
    }
}

@keyframes dots {
    0% {
        content: "Authenticating."
    }

    25% {
        content: "Verifying credentials.."
    }

    50% {
        content: "Establishing secure connection..."
    }

    75% {
        content: "Checking session validity"
    }

    100% {
        content: "Authentication complete."
    }
}

@keyframes grow {
    0% {
        width: 0%;
    }

    50% {
        width: 80%
    }

    100% {
        width: 0%;
    }
}

path {
    stroke-dasharray: 90;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.8;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.4s ease-out;
}

.animate-shimmer {
    animation: shimmer 3s ease-in-out infinite;
}


.modern-scroll {
    /* Modern scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.modern-scroll::-webkit-scrollbar {
    width: 6px;
}

.modern-scroll::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.modern-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.4) 0%,
            rgba(168, 85, 247, 0.4) 50%,
            rgba(236, 72, 153, 0.4) 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.modern-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.6) 0%,
            rgba(168, 85, 247, 0.6) 50%,
            rgba(236, 72, 153, 0.6) 100%);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    transform: scaleX(1.2);
}

.modern-scroll::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.8) 0%,
            rgba(168, 85, 247, 0.8) 50%,
            rgba(236, 72, 153, 0.8) 100%);
}

/* Smooth scrolling behavior */
.modern-scroll {
    scroll-behavior: smooth;
}

/* Custom scroll animations */
.modern-scroll:hover::-webkit-scrollbar-thumb {
    animation: scrollGlow 2s ease-in-out infinite alternate;
}

@keyframes scrollGlow {
    0% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.2);
    }

    100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.4), 0 0 30px rgba(168, 85, 247, 0.2);
    }
}

/* Enhanced scroll indicators */
.modern-scroll::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 20px;
    background: linear-gradient(to bottom, rgba(99, 102, 241, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-scroll::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 1px;
    height: 20px;
    background: linear-gradient(to top, rgba(99, 102, 241, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-scroll:hover::before,
.modern-scroll:hover::after {
    opacity: 1;
}

.portal-sidebar {
    position: relative;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    isolation: isolate;
}

.portal-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120px 120px at 20% 10%, rgba(255, 255, 255, 0.12), transparent 60%),
        radial-gradient(160px 140px at 80% 20%, rgba(255, 255, 255, 0.08), transparent 65%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0));
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.portal-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    flex-shrink: 0;
}

.portal-sidebar.is-collapsed .portal-logo {
    padding: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-sidebar.is-collapsed .portal-logo-img {
    width: 56px;
    height: 56px;
}

.portal-sidebar.is-collapsed .portal-logo-brand-box {
    gap: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-sidebar.is-collapsed .portal-brand {
    display: none;
}

.portal-logo-img {
    width: 56px;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.portal-logo-brand-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.header-glass {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.45), rgba(30, 64, 175, 0.25)) !important;
    border-radius: 14px !important;
    margin: 4px 4px 0 4px;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 14px 30px rgba(7, 19, 40, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px) !important;
}


.portal-logo-collapsed {
    width: 36px;
    height: 36px;
    padding: 4px;
    object-fit: contain;
}

.portal-brand-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #f8fafc;
    line-height: 1.2;
}

.portal-brand-line1 {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #f8fafc;
    line-height: 1.0;
    display: block;
}

.portal-brand-line2 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(226, 232, 240, 0.85);
    line-height: 1.1;
    display: block;
}

.portal-brand-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.2;
    display: block;
    margin-top: 0;
}

.portal-brand.light .portal-brand-title {
    color: #0f172a;
}

.portal-brand.light .portal-brand-subtitle {
    color: rgba(51, 65, 85, 0.85);
}
