@import url('css/custom-properties.css');

body {
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    font-size: clamp(14px, 0.7rem + 0.175vw, 15px) !important;
}

h1:focus {
    outline: none;
}

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

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    top: 0;
    display: none;
    left: 0;
    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."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.hero {
    display: flex;
    align-items: center;
}

    .hero section {
        flex: 1;
    }

.hero-left {
    padding-inline: 24px;
}

.right {
    padding-top: 30px;
}

    .right img {
        width: 100%;
        max-width: 465px;
    }

@media screen and (max-width: 1000px) {
    nav img {
        width: 100px;
    }

    nav li {
        list-style: none;
        margin: 0 8px
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

        .hero .right {
            order: -1;
            padding-bottom: 2rem;
            width: 80%;
        }
}

.site-layout-background {
    background: #fff;
}

.mybox {
    padding: 10px;
    background: rgb(228,242,255);
    border-radius: 6px;
    box-shadow: 2px 2px 4px;
}

.shadow-sm {
    box-shadow: 0px 4px 8px 4px rgb(150 147 211 / 5%);
}

.header-section {
	background: #ffffff !important;
	padding: 0 1rem !important;
    z-index: 10;
    position: absolute;
    width: 100%;
    box-shadow: 1px 13px 18px -7px rgba(97,127,255,0.07);
    -webkit-box-shadow: 1px 13px 18px -7px rgba(97,127,255,0.07);
    -moz-box-shadow: 1px 13px 18px -7px rgba(97,127,255,0.07);
}

.fail-label {
    color: #000;
}

    .fail-label:hover {
        color: #40a9ff;
    }

.fail-label-active {
    color: #1890ff;
}

.fail-label-alert {
    color: red;
}

.invalid-input {
    border-color: #dc3545;
    transition: all 0.3s ease;
}

.invalid-input:focus {
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.6);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(148, 147, 243, 0.3);
}

.card-title {
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin: 0 !important;
}

.mud-table-cell {
    padding: 14px 1rem !important;
}


/* Custom Tab Styling */
.mud-tabs {
    gap: 1rem !important;
}

.mud-tabs .mud-tabs-tabbar {
    border-radius: 1rem !important;
}

.mud-tabs .mud-tabs-tabbar-content .mud-tabs-tabbar-wrapper {
    gap: 1rem !important;
    padding: 1.125rem !important;
}

.mud-tabs .mud-tab {
    border-radius: 0.8rem !important;
    overflow: hidden !important;
    margin: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 500 !important;
}

    .mud-tabs .mud-tab:hover {
        background-color: rgba(59, 130, 246, 0.1) !important;
    }

    .mud-tabs .mud-tab.mud-tab-active {
        background-color: rgb(0 97 255 / 4%) !important;
        box-shadow: 0 2px 9px rgb(0 29 255 / 25%) !important;
        color: #1d4ed8 !important;
        font-weight: 600 !important;
    }

    .mud-tabs .mud-tabs-panels {
        background: #FFFFFF !important;
        border-radius: 1rem !important;
    }

    .mud-tabs .mud-tab-slider {
        display: none !important;
    }

/* ------------------------------- */

/* Custom Breadcrumb Styling */
.breadcrumb-link:hover {
    color: #3b82f6 !important;
    text-decoration: underline !important;
}

/* Tab Panel Content Styling */
.mud-tab-panel {
    background: transparent !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
}
/* ------------------------------- */

.mud-dialog {
    overflow-x: hidden;
}

/* Fill Grade Timeline Styling */
.mud-dialog .fill-grade-container {
    background-color: #f6f9fb;
    padding: 1rem;
}

.fill-grade-timeline .mud-card-actions {
    display: none;
}

.fill-grade-timeline .mud-step-label-icon {
    width: 36px !important;
    height: 36px !important;
}

.fill-grade-timeline .mud-step-label-icon .mud-typography-caption {
    font-size: 1rem !important;
}

.fill-grade-timeline .mud-step-label-content .mud-step-label-content-title {
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}

.fill-grade-timeline .mud-step-label-content .mud-step-label-content-secondary-text {
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    opacity: 0.7 !important;
}

.fill-grade-timeline .mud-stepper-nav-connector {
    margin-inline-start: 33px !important;
}

.fill-grade-timeline .mud-step {
    opacity: 0.3 !important;
}

.fill-grade-timeline .mud-step-completed, .fill-grade-timeline .mud-step.active, .fill-grade-timeline .mud-step-error {
    opacity: 1 !important;
}

/* ------------------------------- */

/* Quick Stats Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out;
}

    .stat-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

.stat-card-active {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%) !important;
    border: 2px solid #6366f1 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    margin-bottom: 0.25rem !important;
}

.stat-label {
    color: #64748b !important;
    font-size: 0.875rem !important;
}

.grade-reject-alert .mud-alert-message {
    width: 100%;
}

.mud-input-control>.mud-input-control-input-container>.mud-input-label-outlined.mud-input-label-inputcontrol {
    line-height: 1.25rem !important;
    font-size: 0.875rem;
}
