﻿/* TechnoCartShop — site.css
   Place this file at: TechnoCartShop/wwwroot/css/site.css
   This file resolves the 404 for /css/site.css
*/

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: #0f172a;
}

a {
    color: inherit;
}

/* Blazor validation */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid.modified:not([type=checkbox]) {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
    font-size: .8rem;
}

/* Blazor error UI */
#blazor-error-ui {
    background: #fff3cd;
    border-top: 1px solid #ffc107;
    bottom: 0;
    box-shadow: 0 -1px 6px rgba(0,0,0,.12);
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: .85rem;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        font-size: 1.25rem;
    }

/* Loading bar */
.loading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ffc107;
    z-index: 9999;
    animation: loadingBar 2s infinite ease-in-out;
}

@keyframes loadingBar {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }

    50% {
        transform: scaleX(.7);
        transform-origin: left;
    }

    100% {
        transform: scaleX(1);
        transform-origin: left;
        opacity: 0;
    }
}
