/* 
    This file contains global styles for the application, including:
    - Font settings
    - Button and link styles
    - Validation and error UI
    - Loader and progress indicators
    - Response template styles for .cc11-container
    Add or modify styles as needed for consistent UI/UX.
*/

html,
body,
body * {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
}

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 {
    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+PHBhdGggZD0iT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EuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}

#vl-loader-overlay {
    position: fixed;
    z-index: 9999;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(231, 240, 235, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vl-minimal-loader {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    //background: #fff;
    border-radius: 50%;
    //box-shadow: 0 2px 16px #e6eae6;
    position: relative;
}

.vl-minimal-loader-svg {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 15px;
    left: 15px;
}

.vl-minimal-loader-bg {
    fill: none;
    stroke: #fff;
    stroke-width: 8;
}

.vl-minimal-loader-arc {
    fill: none;
    stroke: url(#vl-minimal-loader-gradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 160 80;
    stroke-dashoffset: 0;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    animation: vl-minimal-loader-spin 1.2s linear infinite;
}

.vl-minimal-loader-pause {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes vl-minimal-loader-spin {
    100% {
        stroke-dashoffset: -240;
    }
}

.cc11-container h1 {
    font-size: 22px;
}

.cc11-container h2 {
    font-size: 20px;
}

.cc11-container h3 {
    font-size: 18px;
}

.cc11-container h4 {
    font-size: 16px;
}

.cc11-container p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.cc11-container h1,
.cc11-container h2,
.cc11-container h3,
.cc11-container h4,
.cc11-container h5,
.cc11-container h6 {
    font-weight: 600;
    margin-bottom: 8px;
}

.cc11-container ul,
.cc11-container ol {
    padding-left: 20px;
}

.cc11-container li,
cc11-container a {
    font-size: 14px;
}

.cc11-container ul,
.cc11-container ol {
    padding-left: 20px;
}

.cc11-container .cc11-text-output {
    margin-bottom: 5px;
}

.toast-message {
    color: #fff;
    padding: 18px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 500;
    margin: 16px auto;
    text-align: center;
    width: fit-content;
    height: 60px;
    min-width: 320px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    position: fixed;
    left: 50%;
    top: 40px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0px;
}

.toast-message:before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 22px;
    background: url('/_content/VL.Mysentinel.Shared/images/toast_icon.svg') no-repeat center center;
    background-size: contain;
    margin-right: 10px;
}

.toast-success {
    background: #8bc500;
}

.toast-error {
    background: #ff0000;
}

/* Mobile styles */
@media (max-width: 767px) {

    .cc11-container {
        font-size: 12px;
        /* Base size */
        line-height: 1.5;
        margin: 2px auto 0 auto !important;
    }

    .cc11-container h1 {
        font-size: 18px;
        /* ~1.5 � base */
    }

    .cc11-container h2 {
        font-size: 16px;
        /* ~1.35 � base */
    }

    .cc11-container h3 {
        font-size: 15px;
        /* ~1.25 � base */
    }

    .cc11-container h4 {
        font-size: 14px;
        /* ~1.15 � base */
    }

    .cc11-container h5,
    .cc11-container h6 {
        font-size: 13px;
    }

    .cc11-container p {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 6px;
    }

    .cc11-container li,
    .cc11-container a {
        font-size: 12px;
    }

    .cc11-container ul,
    .cc11-container ol {
        padding-left: 16px;
        /* tighter for small screens */
    }

    .cc11-container h1,
    .cc11-container h2,
    .cc11-container h3,
    .cc11-container h4,
    .cc11-container h5,
    .cc11-container h6 {
        font-weight: 600;
        margin-bottom: 6px;
    }

    .cc11-container .cc11-text-output {
        margin-bottom: 4px;
        padding-top: 1px;
    }

    .cc11-container .cc11-followup-card {
        padding-left: 1px;
        padding-top: 2px;
    }
}

body.noscroll {
    overflow: hidden !important;
    //position: fixed;
    //width: 100vw;
}

body.noscroll .vl-userbar {
    z-index: 0 !important;
}

/* Widget CSS for Dashboard page - Add Comment */
/* Card container for widgets */
.widget-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 14px 0 rgba(0, 0, 0, 0.06);
    border: 1.5px solid #e5e7eb;
    //padding: 1.5em 1.5em 1em 1.5em;
    //margin-bottom: 20px;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Header section of the widget card */
.widget-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    background-color: rgba(231, 240, 235, 0.55);
    padding: 1px 20px;
}

/* Title styling for widget card */
.widget-card-title {
    font-size: 14px;
    color: #005c56;
}

/* Actions area in the widget card header */
.widget-card-actions {
    display: flex;
    gap: 0.6em;
}

/* Icon button for widget actions */
.widget-icon-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.2em;
    cursor: pointer;
    padding: 0.2em 0.4em;
    transition: color 0.2s;
}

.widget-icon-btn:hover {
    color: #176d5c;
    //background: #f5f7fa;
    border-radius: 4px;
}

/* Body/content area of the widget card */
.widget-card-body {
    width: 100%;
    min-width: 0;
    padding: 0 10px 10px;
}

/* Grid layout for widgets */
.widgets-grid {
    display: grid;
    /* max 3 columns per row, each column flexible */
    grid-template-columns: repeat(3, 1fr); /* max 3 per row */
    gap: 20px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    align-items: stretch;
    max-width: 100%;
}
@media (max-width: 900px) {
    .widgets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .widgets-grid {
        grid-template-columns: 1fr;
    }
}

.aggrid-widget-container {
    width: 100%;
    min-width: 0;
    height: 100%;
    /* Optional: set a min-height if you want */
    min-height: 300px;
    box-sizing: border-box;
}

/* VL.Mysentinel.WebAsm/wwwroot/css/confirm-dialog.css */
.confirm-dialog-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.18);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.confirm-dialog {
    background: #fff;
    //border-radius: 6px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
    min-width: 340px;
    max-width: 90vw;
    padding: 18px 24px 20px 24px;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    width: 398px;
    min-height: 175px;
}
.confirm-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.confirm-dialog-title {
    font-weight: 600;
    color: #005c56;
}
.confirm-dialog-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #676767;
}
.confirm-dialog-message {
    margin-bottom: 30px;
    color: #1b1b1b;
}
.confirm-dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
.btn {
    padding: 4px 22px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
    cursor: pointer;
}
.btn:focus, .btn:active:focus {
    box-shadow: none;
}
.btn-danger {
    background: #b83214;
    color: #fff;
    border: none;
}
.btn-outline, .btn-outline:hover {
    background: #fff;
    color: #005c56;
    border: 1px solid #005c56;
}