.mud-main-content {
    height: 100%;
    min-height: 100vh;
    display: flex;
}

.mud-chip {
    font-size: var(--mud-typography-default-size);
}

    .mud-chip.mud-chip-size-small {
        font-size: var(--mud-typography-body1-size);
    }

.mud-tabs {
    background-color: var(--mud-palette-surface);
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
    font-size: var(--mud-typography-subtitle1-size);
}

.mud-input > input.mud-input-root, div.mud-input-slot.mud-input-root {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-input > textarea.mud-input-root {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-simple-table table * tr > td, .mud-simple-table table * tr th {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-expand-panel .mud-expand-panel-header {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-button-year {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-table-cell {
    font-size: var(--mud-typography-default-size) !important;
}


.mud-typography-subtitle2 {
    font-size: var(--mud-typography-subtitle2-size);
    color: var(--mud-palette-text-secondary);
}

.mud-typography-body1 {
    font-size: var(--mud-typography-body1-size);
}

.mud-typography-body2 {
    font-size: var(--mud-typography-body2-size);
    /*color: var(--mud-palette-text-secondary);*/
}

.mud-button-outlined-size-small {
    font-size: var(--mud-typography-body2-size);
}

.mud-grid.readonly-grid > .mud-grid-item {
    border-bottom: 1px solid var(--mud-palette-table-lines);
    padding-bottom: 2px;
}

.mud-nav-link {
    white-space: normal !important;
}

.user-button {
    text-transform: none;
    background: rgba(var(--mud-palette-primary-rgb), 0.1)
}
.mud-list-item-icon{
    min-width:none !important;
}
.side-menu .mud-chip.mud-chip-size-small {
    font-size: 0.625rem;
    height: 1.125rem;
}
.appbar-special-menu 
    .mud-list-item

{
    border-radius: 6px;
    margin: 4px 0;
}
.appbar-special-menu
.mud-list-subheader {
    font-weight: 700;
    font-size: 1rem;
    color: #8898aa;
}
.appbar-special-menu
.mud-typography-body1 {
    font-weight: 600;
}
.appbar-special-menu
.mud-typography-body2 {
    font-weight: 600;
    color: #8898aa;
}
.appbar-special-menu
.mud-list-item-disabled
.mud-typography-body2 {
    font-weight: 600;
    color: rgba(136, 152, 170, 0.6);
}
.layout-menu-shadow {
    box-shadow: 0 30px 60px rgba(0,0,0,0.12) !important;
}

.mud-table.mud-data-grid.mud-xs-table.mud-table-dense.mud-table-hover.mud-elevation-1 .mud-toolbar {
    height: auto !important;
    padding: 1rem
}


.mud-table.mud-data-grid.mud-xs-table.mud-table-dense.mud-table-hover.mud-elevation-1 .mud-toolbar-gutters {
    height: auto !important;
    padding: 1rem
}

.mud-table.mud-data-grid.mud-xs-table.mud-table-dense.mud-table-hover.mud-elevation-1 .mud-table-toolbar {
    height: auto !important;
    padding: 1rem
}

.mud-table.mud-data-grid.mud-xs-table.mud-table-dense.mud-table-hover.mud-elevation-1 .mud-table-pagination-toolbar {
    height: auto !important;
    padding: 0rem !important;
}

.network-status-indicator {
    width: 43px;
    height: 43px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto; /* Center horizontally if needed */
    box-sizing: border-box;
}

.avatar-container {
    position: relative;
    width: 35px; /* Fixed container width, same as avatar */
    height: 35px; /* Fixed container height, same as avatar */
}

/* Red rotating border (common style) */
.rotating-border {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 43px;
    height: 43px;
    border: 3px solid transparent; /* Default transparent */
    border-radius: 50%;
    animation: spin 2s linear infinite; /* Rotating animation */
    z-index: 1;
    box-sizing: border-box;
}

    /* Red border in dark mode */
    .rotating-border.dark-mode {
        border-top: 3px solid rgba(255, 0, 0, 0.8); /* Dark red border */
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.6), 0 0 12px rgba(255, 50, 50, 0.4); /* Enhanced shadow */
    }

    /* Red border in light mode */
    .rotating-border.light-mode {
        border-top: 3px solid rgba(255, 50, 50, 0.8); /* Light red border */
        box-shadow: 0 0 6px rgba(255, 50, 50, 0.5), 0 0 10px rgba(255, 100, 100, 0.3); /* Soft shadow */
    }

/* Dynamic green border (common style) */
.online-border {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    animation: green-pulse 2s infinite; /* Breathing animation */
    z-index: 1;
    box-sizing: border-box;
}

    /* Green border in dark mode */
    .online-border.dark-mode {
        border: 3px solid rgba(0, 128, 0, 1); /* Dark green border */
        box-shadow: 0 0 8px rgba(0, 128, 0, 0.6), 0 0 12px rgba(0, 255, 0, 0.4);
    }

    /* Green border in light mode */
    .online-border.light-mode {
        border: 3px solid rgba(0, 200, 0, 1); /* Light green border */
        box-shadow: 0 0 6px rgba(0, 200, 0, 0.5), 0 0 10px rgba(0, 255, 0, 0.3);
    }
/* Breathing animation */
@keyframes green-pulse {
    0% {
        box-shadow: 0 0 8px rgba(0, 128, 0, 0.6), 0 0 12px rgba(0, 255, 0, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 10px rgba(0, 128, 0, 0.8), 0 0 14px rgba(0, 255, 0, 0.5);
        transform: scale(1.03); /* Reduce scaling amplitude */
    }

    100% {
        box-shadow: 0 0 8px rgba(0, 128, 0, 0.6), 0 0 12px rgba(0, 255, 0, 0.4);
        transform: scale(1);
    }
}

MudAvatar {
    position: relative;
    z-index: 2; /* Ensure avatar is above the border */
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbG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kuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.bg-success {
    background-color: #28a745 !important;
}
.color-success {
    color: #28a745 !important;
}
.bg-warning {
    background-color: #ffc107 !important;
}

.bg-primary {
    background-color: #0d6efd !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}
.bg-secondary {
    background-color: #6c757d !important;
}

.bg-dark {
    background-color: #343a40 !important;
}

.bg-role {
    background-color: #4682B4 !important;
}
.bg-success-badge {
    background-color: #28a74508 !important;
    color: #28a745 !important;
}

.bg-warning-badge {
    background-color: #ffc10708 !important;
    color: #ffc107 !important;
}

.bg-primary-badge {
    background-color: #0d6efd08 !important;
    color: #0d6efd !important;
}

.bg-danger-badge {
    background-color: #dc354508 !important;
    color: #dc3545 !important;
}

.bg-secondary-badge {
    background-color: #6c757d08 !important;
    color: #6c757d !important;
}

.bg-dark-badge {
    background-color: #343a4008 !important;
    color: #343a40 !important;
    font-weight: 600;
}

.bg-role-badge {
    background-color: #4682B408 !important;
    color: #4682B4 !important;
    font-weight: 600;
}
.verification-success {
    background-color: #28a74526 !important; /* Green background */
    color: #28a745 !important;
    font-weight: 600;
}

.verification-error {
    background-color: #dc354526 !important; /* Red background */
    color: #dc3545 !important;
    font-weight: 600;
}

.verification-warning {
    background-color: #ffc10726 !important; /* Yellow/Orange background */
    color: #ffc107 !important;
    font-weight: 600;
}

.verification-checklist-failed {
    background-color: #6c757d26 !important; /* Gray background */
    color: #6c757d !important;
    font-weight: 600;
}

.verification-default {
    background-color: #007bff26 !important; /* Blue background as default */
    color: #007bff !important;
    font-weight: 600;
}
.verification-onboarding-success {
    background-color: #17a2b826 !important; /* Teal background for accepted submissions */
    color: #17a2b8 !important; /* White text */
    font-weight: 600;
}

.verification-onboarding-rejected {
    background-color: #fd7e1426 !important; /* Orange background for rejected submissions */
    color: #fd7e14 !important; /* White text */
    font-weight: 600;
}

.verification-success-bar {
    background-color: #28a745 !important; /* Green background */
    color: #28a745 !important;
    font-weight: 600;
}

.verification-error-bar {
    background-color: #dc3545 !important; /* Red background */
    color: #dc3545 !important;
    font-weight: 600;
}

.verification-warning-bar {
    background-color: #ffc107 !important; /* Yellow/Orange background */
    color: #ffc107 !important;
    font-weight: 600;
}

.verification-checklist-failed-bar {
    background-color: #6c757d !important; /* Gray background */
    color: #6c757d !important;
    font-weight: 600;
}

.verification-default-bar {
    background-color: #007bff !important; /* Blue background as default */
    color: #007bff !important;
    font-weight: 600;
}

.verification-onboarding-success-bar {
    background-color: #17a2b8 !important; /* Teal background for accepted submissions */
    color: #17a2b8 !important; /* White text */
    font-weight: 600;
}

.verification-onboarding-rejected-bar {
    background-color: #fd7e14 !important; /* Orange background for rejected submissions */
    color: #fd7e14 !important; /* White text */
    font-weight: 600;
}
.user-info-completed-bar {
    background-color: #8e44ad !important; /* Orange background for rejected submissions */
    color: #8e44ad !important; /* White text */
    font-weight: 600;
}
.contact-info-completed-bar {
    background-color: #d35400 !important; /* Orange background for rejected submissions */
    color: #d35400 !important; /* White text */
    font-weight: 600;
}
/*.camera-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.scan-area {
    width: 80%;
    aspect-ratio: 1 / 1.586;
    position: relative;
    z-index: 2;*/
    /* Use background gradients to create corner borders */
    /*background: linear-gradient(to right, white 4px, transparent 4px) 0 0, linear-gradient(to right, white 4px, transparent 4px) 0 100%, linear-gradient(to left, white 4px, transparent 4px) 100% 0, linear-gradient(to left, white 4px, transparent 4px) 100% 100%, linear-gradient(to bottom, white 4px, transparent 4px) 0 0, linear-gradient(to bottom, white 4px, transparent 4px) 100% 0, linear-gradient(to top, white 4px, transparent 4px) 0 100%, linear-gradient(to top, white 4px, transparent 4px) 100% 100%;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding: 20px;*/ /* Adjust as needed */
    /*border: 1px dashed #fff;
}

    .scan-area img {
        animation: fadeInOut 3s infinite;
    }

.scan-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #e0e0e0c2;
    border: none;
    border-radius: 5px;
    z-index: 3;
    width: 50%;
    height: 48px;
}*/



/*********************Gemini*****************************/
/*.mud-dialog-content {*/
    /* Set a specific max-height relative to the viewport.
       60vh is a good starting point, meaning 60% of the viewport height. */
    /*max-height: 60vh !important;*/
    /* Make this the positioning context for absolute children. */
    /*position: relative !important;*/
    /* Hide any overflow to prevent scrolling. */
    /*overflow: hidden !important;*/
    /* Use flexbox to center the content vertically */
    /*display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.camera-view {*/
    /* Remove position: absolute; to let it flow naturally */
    /*position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.overlay {*/
    /* Position the overlay relative to its parent `.camera-dialog-content` */
    /*position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;*/
    /* Optional: Add a semi-transparent background to see the overlay */
    /*background-color: rgba(0, 0, 0, 0.4);
}

.scan-area {
    width: 80%;
    aspect-ratio: 1 / 1.586;
    position: relative;*/
    /* The overlay provides the z-index, so this is no longer needed */
    /* z-index: 2; */
    /*border: 1px dashed #fff;*/
    /* Simpler way to create the corners using pseudo-elements */
    /* Add this to create the corner border effect */
    /*border-image: linear-gradient(to right, white 4px, transparent 4px) 1 1, linear-gradient(to left, white 4px, transparent 4px) 1 1, linear-gradient(to bottom, white 4px, transparent 4px) 1 1, linear-gradient(to top, white 4px, transparent 4px) 1 1;
    border-image-slice: 1;
    border-image-width: 20px;
    border-image-repeat: stretch;
}

.scan-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #e0e0e0c2;
    border: none;
    border-radius: 5px;
    z-index: 3;
    width: 50%;
    height: 48px;
}*/

/*********************gpt*****************************/
.camera-dialog .mud-dialog-content {
    padding: 0;
}

/* Positioning context and fixed height for the camera area */
.camera-wrapper {
    position: relative;
    width: 100%;
    height: 100%; /* mobile-safe viewport height */
    background: #000;
    overflow: hidden;
}



.camera-view {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* scan box centered vertically */
    align-items: center;
    padding: 16px;
    z-index: 2;
    pointer-events: none; /* allow clicks to pass through except button */
}

.scan-area {
    width: 80%;
    aspect-ratio: 1 / 1.586;
    position: relative;
    box-sizing: border-box;
    z-index: 2;
    /* corner borders via gradients */
    background: linear-gradient(to right, #fff 4px, transparent 4px) 0 0, linear-gradient(to right, #fff 4px, transparent 4px) 0 100%, linear-gradient(to left, #fff 4px, transparent 4px) 100% 0, linear-gradient(to left, #fff 4px, transparent 4px) 100% 100%, linear-gradient(to bottom,#fff 4px, transparent 4px) 0 0, linear-gradient(to bottom,#fff 4px, transparent 4px) 100% 0, linear-gradient(to top, #fff 4px, transparent 4px) 0 100%, linear-gradient(to top, #fff 4px, transparent 4px) 100% 100%;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    border: 1px dashed #ffffffa6;
}

.scan-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #e0e0e0c2;
    border: none;
    border-radius: 6px;
    width: min(60%, 340px);
    height: 48px;
    z-index: 3;
    pointer-events: auto; /* re-enable clicks for the button */
}

.hidden-canvas {
    display: none;
}

.captured {
    display: none;
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    z-index: 3;
}

.hidden {
    display: none !important;
}