@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap');



* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-weight: 500;
    font-family: "Montserrat", sans-serif;
    color: var(--text);
}




html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background: radial-gradient(ellipse at bottom right, #0f172a, #334155);
    scrollbar-width: none; /* makes the scrollbar thin */
    scrollbar-color: hsl(240.3, 79.45%, 50.39%) /* thumb color */
    transparent; /* thumb color */
}


.loader-container {
    
    height:100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
}

.logo-loader {
    width: 200px;
    display: block;
    margin: auto;
    animation: spin 4s linear infinite, bounce 2s ease-in-out infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -8px;
    }
}




.no-topics-container {
    padding-top:5rem;
    align-self: center;

}



/* Scrollbar width */
body::-webkit-scrollbar {
    width: 8px;
}

    /* Track: transparent so gradient shows through */
    body::-webkit-scrollbar-track {
        background: transparent;
    }

    /* Thumb: your brand gradient */
    body::-webkit-scrollbar-thumb {
        background: linear-gradient( 180deg, hsl(240.3, 79.45%, 50.39%), hsl(240.44, 100%, 73.53%) );
        border-radius: 6px;
    }

        /* Thumb hover (optional) */
        body::-webkit-scrollbar-thumb:hover {
            background: linear-gradient( 180deg, hsl(240.3, 79.45%, 50.39%), hsl(240.44, 100%, 73.53%) );
        }






:root {
    --text: hsl(0 0% 95%);
    --primary: hsl(240.3, 79.45%, 50.39%);
    --secondary: hsl(240.44, 100%, 73.53%);
    --primary-gradient: linear-gradient( 180deg, hsl(240.3, 79.45%, 50.39%), hsl(240.44, 100%, 73.53%) );
    --background: hsla(240, 80%, 60%, 0.08);
}


.nav-link {
    position: relative;
    color: white;
    transition: transform 0.2s ease, text-shadow 0.2s ease, color 0.2s ease;
}

    /* underline */
    .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 0%;
        height: 4px;
        background: linear-gradient( 90deg, hsl(240.3, 79.45%, 50.39%), hsl(240.44, 100%, 73.53%) );
        transition: width 0.25s ease;
    }

    .nav-link:hover {
       
        transform: translateY(-1px);
        
    }

        .nav-link:hover::after {
            width: 100%;
        }



.fade-slide {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeSlide 0.6s ease forwards;
}

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




/* Base link */
.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    color: hsl(0, 0%, 85%);
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    /* Left accent bar */
    .sidebar-link::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 4px;
        height: 0%;
        background: linear-gradient( 180deg, hsl(240.3, 79.45%, 50.39%), hsl(240.44, 100%, 73.53%) );
        border-radius: 0 6px 6px 0;
        transform: translateY(-50%);
        transition: height 0.2s ease;

    }

    /* Hover */
    .sidebar-link:hover {
        background-color: hsla(240, 80%, 60%, 0.08);
        color: white;
        
        transform: translateY(-1px);
    }

        .sidebar-link:hover::before {
            height: 70%;
        }

    /* Active route (Blazor adds .active automatically) */
    .sidebar-link.active {
        background-color: hsla(240, 80%, 60%, 0.15);
        color: white;
        font-weight: 600;
    }

        .sidebar-link.active::before {
            height: 80%;
        }







/*.nav-link {
    text-decoration: none;
    font-family: "Montserrat",sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--text);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius:1rem;
    padding:0.5rem;
}

    .nav-link:hover {
        
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    }
*/





.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


