@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a,
.btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.success-message {
    color: rgb(20, 140, 151);
}

#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;
}

.selectable {
    cursor: pointer;
}

.buffer {
    margin-top: 20px;
}

.small-buffer {
    margin-top: 10px;
}

.custom-checkbox .custom-control-input:checked~.custom-control-label::before {
    background-color: rgb(20, 140, 151);
}

.bridgeway-green-bg {
    background-color: rgb(20, 140, 151);
}

.bridgeway-green-color {
    color: rgb(20, 140, 151);
}

.flag-green {
    background-color: rgb(20, 140, 151);
    color: white;
    padding: 2px 5px 1px 4px;
    border-radius: 5px;
}

.flag-orange {
    background-color: orange;
    color: white;
    padding: 2px 5px 1px 4px;
    border-radius: 5px;
}

.flag-red {
    background-color: red;
    color: white;
    padding: 2px 5px 1px 4px;
    border-radius: 5px;
}

.active-tab-report-page {
    background-color: rgb(20, 140, 151) !important;
    color: white !important;
}

.non-active-tab-report-page {
    color: gray;
    background-color: white;
}

.italic {
    font-style: italic;
}

.rotate-180 {
    transform: rotate(180deg);
}

.red-form-label {
    background-color: red;
    color: white;
    padding: 2px;
    padding-right: 5px;
    border-radius: 3px;
    margin-bottom: 4px;
}

.blue-form-label {
    background-color: blue;
    color: white;
    padding: 4px;
    padding-right: 5px;
    padding-left: 5px;
    border-radius: 3px;
    margin-bottom: 4px;
}

.bridgeway-green-form-label {
    background-color: rgb(20, 140, 151);
    color: white;
    padding: 4px;
    padding-right: 5px;
    padding-left: 5px;
    border-radius: 3px;
    margin-bottom: 4px;
}

.error-message {
    color: red;
    font-weight: bold;
}

.structure-info-card {
    background-color: #f9f9f9
}

.deadline-card {
    border: solid 1px rgba(0, 0, 0, 0.2);
    border-radius: 3px;

}

.bottom-spacer {
    /*box-shadow: rgba(0,0,0,0.2) 5px 5px 10px;*/
    margin-bottom: 15px;
}

.current-examination-card {
    border: solid 1px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    background-color: #f8f8f8;
    width: 100%;
    margin-left: 0px;
    margin-right: 0px;
}

.current-examination-planned {
    border: solid 1px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    background-color: #f7dfdf;
    width: 100%;

}

.current-examination-site {
    border: solid 1px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    background-color: #fff0ba;
    width: 100%;
}

.current-examination-review {
    border: solid 1px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    background-color: #e7ffda;
    width: 100%;

}

.current-examination-admin {
    border: solid 1px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    background-color: #dee9ff;
    width: 100%;
}

.network-rail-colour {
    background-color: darkorange;
}

.hover-for-lightyellow:hover {
    background-color: lightyellow;
}

.read-only-label {
    font-weight: bold;
    margin-bottom: -5px;
}

.bert-state-color-green {
    background: rgb(20, 140, 151);
}

.bert-state-color-red {
    background: #dc3545;
}

.bert-state-color-blue {
    background: #4d4dfe;
}

.image-gallery-container {
    display: flex;
    flex-direction: row;
    /* Aligns children (image containers) in a row */
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem;

    /* --- Styling Properties --- */
    background-color: #f7f7f7;
    /* Light grey background */
    padding: 1rem;
    /* Add space inside the container */
    border-radius: 8px;
    /* Rounded corners for the container */
    border: 1px solid #ddd;
    /* A light border */
    margin-bottom: 20px;
}

/* The container for an individual image and its label.
      This acts as the flex item within the gallery.
    */
.image-container {
    display: flex;
    flex-direction: column;
    /* Stacks the image on top of the label */
    align-items: center;
    /* Centers the label horizontally */
    width: 160px;
    /* Set a fixed width for the container */

    /* --- Flex Item Properties --- */
    flex-grow: 0;
    flex-shrink: 0;
    position: relative; /* Required for positioning the overlay and checkmark */
    cursor: pointer;
    /* transition: transform 0.2s ease-in-out; */
}

.image-container:not(.selected) .defect-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.image-container.selected .defect-image {
    border: 3px solid rgb(20, 140, 151);; /* A vibrant blue border */
}

/* Add a semi-transparent overlay to darken the image slightly */
.image-container.selected::before {
    content: ''; /* Necessary for the pseudo-element to show */
    position: absolute;
    top: 0;
    left: 0;
    width: 160px; /* Must match your image width */
    height: 120px; /* Must match your image height */
    background-color: rgba(20, 140, 151, 0.3);
    border-radius: 6px; /* Match the image's border-radius */
    pointer-events: none; /* Allows clicks to go through to the image if needed */
    transition: none;
}

/* Add a checkmark icon to the top right corner */
.image-container.selected::after {
    content: '✔'; /* The checkmark symbol */
    position: absolute;
    top: 5px;
    right: 10px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.7); /* Makes the checkmark easier to read */
}

.defect-image {
    height: 120px;
    width: 160px;
    object-fit: cover;
    cursor: pointer;

    /* --- Styling Properties --- */
    border-radius: 6px;
    /* Rounded corners for the images */
    border: 1px solid #ccc;
    /* A slightly darker border for images */
    /* transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; */
    /* Smooth transition for hover effect */
}

/* Add a subtle hover effect to the image */
/* .defect-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
} */

/* The text label underneath the image */
.image-label {
    margin-top: 8px;
    /* Space between image and label */
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    width: 100%;
    /* Ensure label doesn't overflow container */

    /* --- New Flex Properties for Label --- */
    display: flex;
    justify-content: space-between;
    /* Pushes text to left, button to right */
    align-items: center;
    padding: 0 4px;
    /* Add slight horizontal padding */
}

.delete-btn {
    background: transparent;
    border: none;
    color: #e63946;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s ease-in-out;
}

.delete-btn:focus {
    outline: none;
}

.no-outline-on-focus:focus{
    outline: none !important;
}

.sticky-search-container {
    position: sticky;
    top: -1px; /* Adjust as needed, sticks to the very top of the scrollable area */
    z-index: 10; /* Ensures the search bar stays on top of the scrolling images */
    background-color: white; /* Prevents images from showing through the search bar background when scrolling */
    padding-bottom: 1rem; /* Adds a little space between the search bar and the photos */
}

button.simple-dropdown-button.btn.dropdown-toggle {
  color: gray !important;
}

.simple-dropdown.simple-bs-compat .simple-dropdown-button:focus {
  outline: 0 !important;
  box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25) !important;
}
