﻿html, body {
    /*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.0em;
    /*Full Web App Like iphone*/
    overscroll-behavior-y: auto;
    /* Optional: prevents horizontal 'swipe-to-go-back' in some browsers */
    overscroll-behavior-x: none;
}




h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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+PHBhdGgg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SAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem 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;
}




/*Custom CSS Add by ME*/


/*Navigation Icons*/
.nav-icon {
    width: 28px;
    height: 28px;
    margin-right: 8px;
}




/* Apply this to your main app container for Pull to Refresh */
.ptr-container {
    /* Let this element grow to fill the available space in the flex container */
    flex: 1;
    /* These are still needed */
    overflow-y: auto; /* Allows scrolling */
    /* FIX: Changed from 'contain' to 'auto' to allow native pull-to-refresh */
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    /* This is a crucial fix for flexbox scrolling. It prevents the container
       from shrinking smaller than its content, which can cause issues. */
    min-height: 0;
}



/* Add this to your site's stylesheet, like app.css */

/* Pull to Refresh */
.ptr-main {
    /* FIX: Changed from 'contain' to 'auto' to allow native pull-to-refresh */
    overscroll-behavior-y: auto;
    /* Make sure the element is actually scrollable for the property to work */
    overflow-y: auto;
}



.dxbs-grid-row {
    height: 170px; /* or any height you prefer */
}

/* Optional: control header row height too */
.dxbs-grid-header-row {
    height: 170px;
}


/*Highlight Row by Column Name*/
.highlighted-item > td {
    background-color: #fffd98
}



/*Grid Row Selection Color*/
.dxbl-grid-selected-row {
    background-color: #98ffb7
}








/*Image Thumbnail Responsive*/
.thumbnail-responsive {
    width: 150px;
    height: 150px;
    object-fit: cover; /* This is the key property */
}




/*Buttons*/

.nss-button-green {
    background-color: #ff3f13;
    color: white;
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}


.nss-button-blue {
    background-color: #b72576;
    color: white;
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}



.nss-button-edit {
    background-color: #1861ac;
    color: white;
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}


.nss-bg-orange {
    background-color: #89921c; /* Bootstrap's standard orange color */
    color: #fff; /* White text for better contrast */
}


.nss-bg-red {
    background-color: red; /* Bootstrap's standard orange color */
    color: #fff; /* White text for better contrast */
}



.nss-bg-green {
    background-color: #26b050; /* Bootstrap's standard orange color */
    color: #fff; /* White text for better contrast */
}



.nss-bg-gray.dx-texteditor .dx-texteditor-input {
    background-color: #6c757d !important;
    color: #ffffff !important;
    text-align: center;
    font-weight: bold;
}

.nss-bg-gray-input {
    background-color: #6c757d;
    color: white;
    text-align: center;
    font-weight: bold;
}


/*Card Header Customization*/
.nss-card-header-pending {
    background-color: #1861ac; /* A custom color */
    color: mistyrose; /*white text */
}

.nss-card-header-approved {
    background-color: #007524; /* A custom color */
    color: mistyrose; /*white text */
}

.nss-card-header-finished {
    background-color: #258cfb; /* A custom color */
    color: mistyrose; /*white text */
}

.nss-card-header-cancelled {
    background-color: #b32121; /* A custom color */
    color: mistyrose; /*white text */
}

/*Bootstrap Card*/
.card {
    border: 1px solid pink;
    padding-bottom: 3%;
}



/*Scroll To Top*/
/* Position this in your global app.css or ScrollToTopButton.razor.css */
.scroll-to-top-button {
    /* Critical: Fixed relative to the Browser window, not the Blazor Layout */
    position: fixed !important;
    bottom: 30px;
    right: 30px;
    /* Ensure it is above the sidebar and the .content div */
    z-index: 9999 !important;
    /* UI Styling */
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Neumorphic / Premium Shadow */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
}

    /* Beautiful Icon Scaling */
    .scroll-to-top-button i {
        font-size: 1.6rem;
    }

    /* Hover effect for PC mouse users */
    .scroll-to-top-button:hover {
        transform: translateY(-5px) scale(1.1);
    }

/* Media Query to ensure it doesn't overlap scrollbars on small PC windows */
@media (max-width: 994.98px) {
    .scroll-to-top-button {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}



/*Sweet Alert Options*/
/* Customize SweetAlert2 Progress Bar Thickness */
.swal2-timer-progress-bar {
    height: 10px !important; /* Default is usually ~2.5px */
    background-color: teal !important; /* Optional: Change color to match your theme */
}

/* Change the Title Size */
.swal2-title {
    font-size: 1.5rem !important; /* Adjust as needed */
}

/* Change the Content/Message Size */
.swal2-html-container {
    font-size: 1.1rem !important;
}

/* Change the Button Text Size */
.swal2-styled {
    font-size: 0.9rem !important;
}

.swal2-icon {
    width: 5em !important; /* Default is 5em */
    height: 5em !important;
    font-size: 0.8em !important; /* This scales the animation inside the icon */
}




/*Hr Lines and Text Middle*/

.hr-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: mistyrose;
}

    .hr-text::before,
    .hr-text::after {
        content: '';
        flex: auto;
        border-bottom: 1px solid #ff5d5d
    }










/* L7 Loading - Optimized for Beauty and Alignment */

.l7-master-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.l7-loader-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px; /* Slightly larger for beauty */
    height: 120px;
}

.l7-logo-pulse {
    width: 70px;
    height: auto;
    z-index: 2;
    /* Smoother, slower pulse for a high-end feel */
    animation: l7-pulse 2s ease-in-out infinite;
}

.l7-spinner-ring {
    position: absolute;
    width: 110px;
    height: 110px;
    border: 4px solid rgba(0, 94, 162, 0.05);
    border-top: 4px solid #1b6ec2; /* Matching your primary blue */
    border-radius: 50%;
    animation: l7-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.l7-text-style {
    margin-top: 20px;
    font-family: 'Pyidaungsu', 'Segoe UI', Tahoma, sans-serif;
    color: #1b6ec2;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    /* Text fade-in animation to match the spinner */
    animation: l7-fade 0.5s ease-in;
}

/* Animations */
@keyframes l7-pulse {
    0%, 100% {
        transform: scale(0.85);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes l7-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes l7-fade {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* Hide the default DX text since we made our own */
.l7-loading-panel .dxlp-text {
    display: none !important;
}




/*DxGrid Horizonal Scrollbar Size*/


/* Base height */
.dxbl-scroll-viewer-scroll-bar {
    height: 0.5rem !important;
    transition: height 0.5s ease;
}

.dxbl-scroll-viewer-scroll-thumb {
    height: 0.5rem !important;
    transition: height 1.0s ease;
    border-radius: 0.5rem !important;
    background-color: rgb(25, 2, 2) !important;
}

/* On hover → grow */
.dxbl-scroll-viewer-scroll-bar:hover,
.dxbl-scroll-viewer-scroll-bar:hover .dxbl-scroll-viewer-scroll-thumb {
    height: 1.2rem !important;
}

.dxbl-scroll-viewer-scroll-bar:hover,
.dxbl-scroll-viewer-scroll-thumb:hover {
    height: 1.2rem !important;
}


/*DxButton Blazing Berry Color*/
/* Standard Bootstrap Blue Overrides for DxButton */
.dxbl-btn-primary {
    /* Base State */
    --dxbl-btn-bg: #0d6efd !important;
    --dxbl-btn-border-color: #0d6efd !important;
    --dxbl-btn-color: #fff !important;
    /* Hover State */
    --dxbl-btn-hover-bg: #0b5ed7 !important;
    --dxbl-btn-hover-border-color: #0a58ca !important;
    --dxbl-btn-hover-color: #fff !important;
    /* Active/Focus State */
    --dxbl-btn-active-bg: #0a58ca !important;
    --dxbl-btn-active-border-color: #0a53be !important;
    --dxbl-btn-active-shadow: 0 0 0 0.25rem rgba(49, 132, 253, 0.5) !important;
}


/*DxButton Spinner Size*/
.custom-large-spinner {
    width: 1.0rem !important;
    height: 1.0rem !important;
}





/*Icon Repo*/

.nss-icon-wrapper svg {
    display: block;
    fill: currentColor; /* Allows the 'Color' parameter or CSS text color to work */
}

/* Ensure NavMenu links don't jump during load */
/*.nav-link .nss-icon-wrapper {
    flex-shrink: 0;
}*/