.input-container {
    position: relative;
    display: inline-block;
}

input[type="text"] {
    padding-right: 25px;
    /* Add space for the clear button */
}

.clear-btn {
    position: absolute;
    right: 18px;
    /* Adjust as needed */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: red;
    font-size: 22px;
    display: none;
    /* Hide by default */
}

.input-container input:focus+.clear-btn,
.input-container input:not(:placeholder-shown)+.clear-btn {
    display: block;
    /* Show when input is focused or not empty */
}

body {
    margin-bottom: 27px !important;
}

.title-heading {
    font-family: 'Arial Black', 'Avant Garde';
    font-size: 18pt;
    color: #333;
    font-weight: bold;
    position: relative;
    margin-left: 10px;
}

.animated-border {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 50, 0.15));
    border-bottom: 4px solid black;
    margin-top: -40px;
    margin-left: -15px;
    margin-right: -15px;
    margin-bottom: 0px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px;
    position: relative;
    /* Needed for positioning the pseudo-element */
    display: flex;
    flex-direction: column;
    /* Stack children vertically */
    justify-content: space-between;
    /* Space out items */
    text-align: center;
}

.header-content {
    display: flex;
    flex-direction: column;
    /* Stack items vertically */
    align-items: center;
    /* Center items horizontally */
}

.header-logo {
    height: 150px;
    animation: fadeIn 2s ease-in-out;
    margin-bottom: 10px;
    /* Space between the image and the title */
}

.flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-hover-border {
    transition: border 0.3s ease;
}

.card-hover-border-obs:hover {
    border: 2px solid darkred;
}

.uk-badge-success {
    box-sizing: border-box;
    min-width: 25px;
    height: 25px;
    padding: 5px 5px;
    border-radius: 5px;
    vertical-align: middle;
    background: #32d296;
    color: #fff !important;
    font-size: 12px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    line-height: 0;
    letter-spacing: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif
}

.uk-badge-danger {
    box-sizing: border-box;
    min-width: 25px;
    height: 25px;
    padding: 5px 5px;
    border-radius: 5px;
    vertical-align: middle;
    background: #f0506e;
    color: #fff !important;
    font-size: 12px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    line-height: 0;
    letter-spacing: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif
}

.ws-header-bar {
    display: flex;
    justify-content: space-start;
    align-items: center;
    margin-bottom: 10px;
    background-color: #4c75a0 !important;
    margin-top: -20px;
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 8px 8px 0 0;
    border-bottom: 4px black solid;
    padding: 8px;
    color: white !important;
    font-weight: 800;
}

.address {
    text-align: left; /* Ensure address stays left-aligned */
}

.actions {
    display: flex;
    gap: 8px; /* Add spacing between buttons and icons */
    align-items: center; /* Center items vertically */
    justify-content: right;
}

.infoCard {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
    margin: 10px;
    width: calc(100% - 20px);
}

#loadingModal .uk-modal-dialog {
    background-color: rgba(0, 0, 0, 0.7); /* Dim background */
    border-radius: 10px;
    padding: 20px;
}

#loadingModal p {
    margin-top: 15px;
}  

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loadingOverlay .loading-content {
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
}

.chart-container {
    width: 80%;
    margin: auto;
}

.chart {
    display: block;
}

#breadcrumb {
    font-size: 16px;
    margin-bottom: 10px;
}

.breadcrumb-link {
    color: blue;
    cursor: pointer;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 5px;
    display: none;
}

.breadcrumb-link:hover {
    text-decoration: none;
}

/* Accordion title */
.uk-accordion-title {
    display: block;
    padding: 0px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
}

.uk-accordion-title:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 50, 0.15));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-weight: bold;
}

.odometer {
    display: inline-flex;  /* Keeps the odometer inline and prevents expansion */
    font-family: 'Courier New', Courier, monospace;  /* Simulate mechanical font */
    font-size: 22px;  /* Base font size */
    background-color: #333 !important;  /* Dark background for the odometer effect */
    color: #fff !important;  /* White digits */
    padding: 0px;
    margin: 5px;
    font-weight: bold;
    border-radius: 0px;
    width: fit-content;  /* Keeps the odometer width limited to its content */
    overflow: hidden;  /* Prevent content overflow */
    gap: 0px;  /* Space between digits */
}

.digit {
    position: relative;
    flex: 0 0 auto;  /* Prevent digits from stretching */
    width: 20px;  /* Fixed width for consistent sizing */
    height: 24px;  /* Adjust height to match font size */
    line-height: 24px;  /* Vertically center the digit */
    text-align: center;
    border-radius: 0px;
    margin: 0;  /* Remove additional margin */
    font-size: inherit;  /* Inherit font size for easier responsiveness */
}

.white-on-black {
    background-color: #222;  /* Darker background for the individual digits */
    color: #fff !important;  /* White text */
    border-right: 2px solid white !important;  /* White border between digits */
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}

.white-on-black-end {
    background-color: #222;  /* Darker background for the individual digits */
    color: #fff !important;  /* White text */
    border-right: 2px solid black !important;  /* White border between digits */
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}

.black-on-white {
    background-color: #fff !important;  /* White background for these digits */
    color: #222 !important;  /* Black text */
    border: 2px solid black;
}

.uk-accordion-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: start;
}

.details-container {
    flex: 7; /* 70% width */
    min-width: 300px;
}

.score-container {
    flex: 0 0 80px; /* Fixed width and height to ensure it's circular */
    font-size: 2rem; /* Increased font size */
    font-weight: bold;
    text-align: center;
    border: 5px solid black; /* Bold black border */
    border-radius: 50%; /* Round border */
    padding: 10px; /* Space around the score */
    background-color: #4c75a0; /* Match header bar color */
    color: #ffffff; /* White text */
    box-shadow: 0px 10px 10px rgba(41, 41, 41, 0.3); /* Optional: light shadow for depth */
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-container {
    width: 100%;
    margin-top: 10px;
}

@media print {
    .print-none {
        display: none !important;
    }
}