html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.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;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMzLjU4NiA2Ni4wMTgzWk0yNjMuNTc2IDg2LjA1NDdDMjYxLjA0OSA4Ni4wNTQ3IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevents the scrollbar from appearing */
}

.full-height {
    height: 100vh; /* 100% of the viewport height */
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    overflow: auto; /* Allows scrolling within the content area if needed */
}

.align-label-right {
    display: flex;
    align-items: center; /* Centers items vertically */
}

.fixed-width-label {
    width: 300px; /* Fixed width for the label */
    text-align: right; /* Align text to the right */
}

.align-label-right .fluent-text-field {
    flex: 1; /* Allows the text field to take up the remaining space */
}
.readonly-field {
    color: #6c757d; /* Optional: Gray text color */
}
.json-table {
    width: 100%;
    margin-top: 10px; /* Adjust the value as needed */
    font-size: var(--font-size-md); /* Using the medium font size variable */
    font-family: var(--font-family-primary); /* Using the primary font family variable */
}

.json-table-header {
    background-color: #f2f2f2;
    text-align: left;
    border: 1px solid #ccc;
    padding: 8px;
}

.json-table-cell {
    border: 1px solid #ccc;
    padding: 8px;
}
.expand-button {
    margin-bottom: 10px; /* Adjust the value as needed */
    border: 1px solid #ccc; /* Thinner border */
    padding: 5px 10px; /* Optional: Adjust padding for better appearance */
    border-radius: 4px; /* Optional: Add rounded corners */
    background-color: #f9f9f9; /* Optional: Add a background color */
    cursor: pointer; /* Optional: Add a pointer cursor */
}

/* New styles for header and footer */
.header-container {
    background-image: url('images/GV-footer.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.header-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
}

.header-logo {
    max-width: 100%;
    height: auto;
}

.header-title, .header-username {
    color: white;
}

.footer-container {
    flex-shrink: 0;
    background-image: url('images/GV-footer.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.footer-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
}

.footer-text {
    margin-right: 20px;
    color: black;
}

/* adjust the height of the toast popup, remove extra height */
.fluent-toast-content {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    min-height: unset !important;
    line-height: 1.2 !important;
}

/* adjust the height of the toast popup, remove extra height */
.fluent-toast {
    min-height: unset !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    line-height: 1.2 !important;
    height: auto !important;
    align-items: center !important;
    display: flex !important;
}

/* Styles for badge rows, wraps badges to next line if needed */
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.bold-label {
    font-weight: bold;
}

.horizontal-divider {
    width: 100%;
}

/* Add to app.css */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.form-col-1 {
    flex: 1;
    min-width: 300px;
}

.form-col-2 {
    flex: 1;
    min-width: 250px;
}

.form-col-3 {
    flex: 1;
    min-width: 200px;
}

.form-col-4 { 
    flex: 1; 
    min-width: 180px; 
}

.form-col-5 {
    flex: 1;
    min-width: 150px;
}

.form-col-1 > *,
.form-col-2 > *,
.form-col-3 > *,
.form-col-4 > *,
.form-col-5 > * {
    width: 100%;
}

.form-full-width {
    width: 100%;
}

/* Responsive behavior */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .form-col-1,
    .form-col-2,
    .form-col-3 {
        min-width: 100%;
    }
}

.tag-dialog {
    width: 500px !important;
    min-height: 300px !important;
    max-width: 90vw !important; /* Responsive on smaller screens */
}

.tag-dialog .fluent-dialog-body {
    padding: 20px !important;
    min-width: 450px !important;
}

/* Ensure the select dropdown has enough space */
.tag-dialog fluent-select {
    min-width: 400px !important;
}

/* Analysis process two-panel layout */
.analysis-process-two-panel {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    min-height: 400px;
}

.analysis-steps-list {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.step-list-card {
    border: 1px solid var(--neutral-stroke-rest, #d1d1d1);
    border-radius: 6px;
    padding: 12px 14px;
    cursor: pointer;
    background-color: var(--neutral-layer-1, #fff);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.step-list-card:hover {
    border-color: var(--neutral-stroke-hover, #a19f9d);
    background-color: var(--neutral-layer-2, #f5f5f5);
}

.step-list-card-selected {
    border: 2px solid var(--accent-fill-rest, #0078d4);
    background-color: var(--neutral-layer-2, #f5f5f5);
}

.step-list-card-active {
    background-color: #e6f2ff;
}

.step-list-card-active.step-list-card-selected {
    background-color: #cce5ff;
}

.step-list-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.step-list-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 8px;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    background-color: var(--accent-fill-rest, #0078d4);
    border-radius: 4px;
    flex-shrink: 0;
}

.step-list-card-title {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

.step-list-card-status {
    font-size: 0.8rem;
    color: var(--neutral-foreground-hint, #605e5c);
}

.analysis-step-detail {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
}

.step-detail-card {
    border: 1px solid var(--neutral-stroke-rest, #d1d1d1);
    border-radius: 6px;
    padding: 16px 20px;
    background-color: var(--neutral-layer-1, #fff);
    min-height: 200px;
}

.step-detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--neutral-foreground-hint, #605e5c);
    gap: 8px;
}

/* Analysis process step cards (legacy / detail content) */
.step-card {
    border: 1px solid var(--neutral-stroke-rest, #d1d1d1);
    border-radius: 4px;
    margin-bottom: 16px;
    padding: 12px 16px;
}

.process-action-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.step-action-bar {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.step-inline-form {
    border: 1px solid var(--neutral-stroke-rest, #d1d1d1);
    border-radius: 4px;
    padding: 12px;
    margin-top: 8px;
    background-color: var(--neutral-layer-2, #f5f5f5);
}

.algorithm-param-hint {
    font-size: 0.85rem;
    color: var(--neutral-foreground-hint, #616161);
    margin: 0 0 8px 0;
}

/* Analysis process accordion heading style */
fluent-accordion-item.context-details-accordion-item::part(button),
.context-details-accordion-item::part(button) {
    background-color: var(--neutral-layer-1, #fff) !important;
    color: var(--neutral-foreground-rest, #242424) !important;
    border: none !important;
    font-weight: 700 !important;
}

fluent-accordion-item.context-details-accordion-item::part(heading),
.context-details-accordion-item::part(heading) {
    background-color: var(--neutral-layer-1, #fff) !important;
}

/* Event data grid with smaller font size */
.event-data-grid-small {
    font-size: 0.875rem !important;
}

.event-data-grid-small tbody tr {
    font-size: 0.875rem !important;
}

.event-data-grid-small td {
    font-size: 0.875rem !important;
    padding: 6px 8px !important;
}

/* File list: keep upload + filter + bulk actions on one row (FluentStack can stretch to full width). */
.file-list-toolbar {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.file-list-toolbar > * {
    flex: 0 0 auto;
}

.gv-filter-box,
.gv-select-many-delete {
    display: inline-flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 10px;
}



