/* === Global Styles === */


body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: #141414;
    color: #eee;
}

#blazor-error-ui {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ff4d4d;
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    z-index: 2000;
}

    #blazor-error-ui a.reload, #blazor-error-ui a.dismiss {
        color: white;
        margin-left: 1rem;
        cursor: pointer;
        text-decoration: underline;
    }

@media (max-width:768px) {
    .mud-drawer {
        width: 200px;
    }

    .mud-appbar {
        font-size: 1rem;
    }
}

@media (max-width:480px) {
    .mud-drawer {
        width: 180px;
    }

    .mud-appbar {
        font-size: 0.9rem;
    }
}


body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: #141414;
    color: #eee;
}

a {
    color: inherit;
    text-decoration: none;
}

.mud-main-content-custom {
    padding-top: 64px;
    min-height: 100vh;
    background: linear-gradient(to bottom, #0a0a0a, #141414);
}


.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    width: 100%;
    position: relative;
}

.uploading-overlay {
    /*position: absolute;*/
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

    .uploading-overlay > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

.uploading-text {
    display: flex;
    flex-direction: row; 
    align-items: center;
    gap: 0.3rem;
    font-size: 1.4rem;
    color: #fff;
}

.uploading-subtext {
    margin-top: 8px;
    font-size: 0.9rem;
    opacity: 0.75;
    max-width: 320px;
    text-align: center;
    color: #fff;
}

.chip-container {
    margin-top: 8px; 
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 1; 
}



.dot-anim span {
    animation: blink 1.4s infinite both;
}

    .dot-anim span:nth-child(2) {
        animation-delay: 0.2s;
    }

    .dot-anim span:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}


.panel-description {
    color: #bbb;
    font-size: 0.9rem;
}

.mud-table th, .mud-table td {
    font-size: 0.9rem;
    color: #ddd;
}


.risk-badge-wrapper-svg {
    position: relative;
    width: 100%;
    max-width: 200px;
    margin: auto;
}

.risk-badge-svg {
    width: 100%;
    height: auto;
}

.shield-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

.shield-title {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.shield-value {
    font-size: 1.5rem;
    font-weight: bold;
}


.submit-btn {
    margin-top: 1rem;
    padding: 0.7rem 1.5rem;
    background-color: #1e88e5;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    align-self: center;
}

    .submit-btn:hover {
        background-color: #1565c0;
    }


img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    cursor: pointer;
}


.mud-drawer {
    background: #1a1a1a;
}

.mud-appbar {
    background: #1f1f1f;
    color: #fff;
}


#blazor-error-ui {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ff4d4d;
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    z-index: 2000;
}

    #blazor-error-ui a.reload,
    #blazor-error-ui a.dismiss {
        color: white;
        margin-left: 1rem;
        cursor: pointer;
        text-decoration: underline;
    }


@media (max-width: 768px) {
    .mud-drawer {
        width: 200px;
    }

    .mud-appbar {
        font-size: 1rem;
    }

    .upload-content {
        min-height: 150px;
    }

    .chip-container {
        justify-content: flex-start;
    }

    .submit-btn {
        max-width: 100%;
    }
}


@media (max-width: 480px) {
    .mud-drawer {
        width: 180px;
    }

    .mud-appbar {
        font-size: 0.9rem;
    }

    .mud-main-content-custom {
        padding: 0.5rem !important;
    }

    .pa-8, .pa-6 {
        padding: 1rem !important;
    }

    .upload-content {
        min-height: 120px;
    }

    .chip-container {
        justify-content: center;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .submit-btn {
        width: 100%;
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }

    .panel-description {
        font-size: 0.85rem;
    }

    .shield-title {
        font-size: 0.75rem;
    }

    .shield-value {
        font-size: 1.2rem;
    }
}


.mud-list-item {
    padding: 0.4rem 0.6rem;
}

.mud-paper {
    background: #1a1a1a !important;
    color: #ddd;
}




.glow {
    animation: glowPulse 1.5s infinite alternate;
}

@keyframes glowPulse {
    0% {
        text-shadow: 0 0 5px #ff4c4c, 0 0 10px #ff4c4c, 0 0 20px #ff4c4c;
        color: #ff4c4c;
    }

    50% {
        text-shadow: 0 0 10px #ff4c4c, 0 0 20px #ff4c4c, 0 0 30px #ff4c4c;
        color: #ff1a1a;
    }

    100% {
        text-shadow: 0 0 5px #ff4c4c, 0 0 10px #ff4c4c, 0 0 20px #ff4c4c;
        color: #ff4c4c;
    }
}

.loading-glow {
    animation: loadingPulse 1s infinite alternate;
}

@keyframes loadingPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}


.order-mobile-first {
    order: 1;
}

.order-mobile-second {
    order: 2;
}

@media (min-width: 600px) {
    .order-mobile-first {
        order: 2; 
    }

    .order-mobile-second {
        order: 1;
    }
}


.risk-badge-wrapper-svg {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.risk-badge-svg {
    width: 140px;
    height: 140px;
}


.shield-border {
    opacity: 0.9;
}

.shield-border-glow {
    opacity: 0.6;
}

.shield-content {
    position: absolute;
    text-align: center;
    pointer-events: none;
}

.shield-title {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 2px;
}

/* Loading scan */
.shield-scan-ring {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-dasharray: 8 18;
    animation: shieldScan 1.2s linear infinite;
    opacity: 0.7;
}

@keyframes shieldScan {
    from {
        transform: rotate(0deg);
        transform-origin: 50% 50%;
    }

    to {
        transform: rotate(360deg);
        transform-origin: 50% 50%;
    }
}

.glow {
    text-shadow: 0 0 6px currentColor, 0 0 14px currentColor;
}

.mud-icon-button-mobile-only {
    display: none !important; 
}

@media (max-width: 960px) {
    .mud-icon-button-mobile-only {
        display: inline-flex !important;
    }
}










.upload-drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.02);
}

    .upload-drop-zone:hover {
        border-color: #4fd1c5;
        background: rgba(79, 209, 197, 0.05);
    }

    .upload-drop-zone.drag-active {
        border-color: #4fd1c5;
        background: rgba(79, 209, 197, 0.12);
        box-shadow: 0 0 0 2px rgba(79, 209, 197, 0.25), 0 0 24px rgba(79, 209, 197, 0.35);
        transform: scale(1.01);
    }

.file-upload-input {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 10;
    opacity: 0;
}