@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* Base layout / typography */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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;
}

/* Validation */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* Blazor error UI */
#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;
    }

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

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

/* Loading indicator */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem 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");
    }

/* Horse postcards / cards */
.horse-postcard {
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .horse-postcard:hover {
        transform: translateY(-3px);
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    }

.horse-card-top {
    width: 100%;
    max-height: 100px;
    object-fit: cover;
    object-position: 50% 20% !important;
}

.horse-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.75rem;
}

.horse-card {
    flex: 0 0 auto;
    width: 180px;
}

.clickable-card {
    cursor: pointer;
}

    .clickable-card:hover {
        box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.15);
    }

.card-img-top > img.horse-card-img {
    width: 100% !important;
    max-height: 200px !important; /* try 80–120px */
    object-fit: cover !important;
    object-position: 50% 35% !important;
}


/* Search and layout helpers */
.search-container {
    display: flex;
    align-items: center;
}

.horse-image-container {
    display: flex;
}

.horse-img p {
    border: 0.5px solid black;
    text-align: center;
    font-size: 20px;
}

.horse-img img {
    border: 2px solid #000;
    margin: 5px;
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.label {
    margin-right: 10px;
}

.form-label {
    font-weight: bold;
}

.form-group {
    margin-bottom: 1.5rem;
}

.editable {
    background-color: white;
}

.readonly {
    background-color: lightgrey;
}

.input-person {
    width: 200px;
}

.input-cost {
    width: 150px;
}

.inline-container {
    display: flex;
    align-items: center;
}

/* Notifications */
.notification-container {
    border: 1px solid black;
    padding: 10px;
    margin-left: 10px;
}

.message-notification {
    margin-top: 5px;
}

.notification {
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 13px;
}

.notification-green {
    background-color: lightgreen;
}

.notification-red {
    background-color: lightcoral;
}

/* Maintenance / select controls */
.select-maintenance {
    width: auto;
    padding: 6px;
    font-size: 13px;
}

/* Text areas / inputs */
.display-textarea {
    border: 1px solid #ccc;
    width: 100%;
    min-height: 15px;
    padding: 6px;
    font-size: 13px;
    resize: vertical;
    background-color: #f5f5f5;
}

input {
    width: 220px;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

    input[type="date"] {
        width: 150px;
        padding: 4px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 13px;
    }

textarea {
    width: 300px;
    font-size: 14px;
}

/* Product container (inventory) */
.prodcontainer-holder {
    font-family: Roboto, sans-serif;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1px;
    margin: 20px;
}

.prodcontainer-items {
    border: 1px solid #ccc;
    padding: 4px;
    width: auto;
    cursor: pointer;
    text-align: center;
    background-color: lightgray;
    border-radius: 20px;
    font-size: 13px;
}

ul {
    list-style-type: disc;
    padding-left: 20px;
    text-align: left;
}

li {
    list-style-type: disc;
    padding-left: 2px;
}

/* Heading inside product container */
.prodcontainer-heading {
    background-color: lightblue;
    border-color: red;
    border-width: thick;
    border-style: solid;
    padding: 5px;
    font-size: 16px;
    border: 1px solid #ccc;
}

.prodcontainer-order {
    font-size: 14px;
    text-align: left;
    margin-bottom: 2px;
}

.prodcontainer-sku {
    font-size: 13px;
    font-weight: bolder;
}

/* Status lamps */
.lamp {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.green-lamp {
    background-color: green;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.red-lamp {
    background-color: red;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* Time pill + notes */
time {
    border: 1px solid;
    background-color: rgba(220, 220, 220, 0.2);
    border-radius: 10px;
    padding: 4px;
    margin: 8px 0;
    width: 100px;
    font-weight: lighter;
    font-size: 13px;
}

.noteBoxes {
    border: 1px solid;
    border-radius: 10px;
    padding: 8px;
    margin: 8px 0;
    width: 280px;
    font-size: 13px;
}

.type1 {
    border-color: #E76F51;
    background-color: rgba(231, 111, 81, 0.1);
}

.type2 {
    border-color: #2A9D8F;
    background-color: rgba(42, 157, 143, 0.1);
}

.type3 {
    border-color: #0096C7;
    background-color: rgba(0, 150, 199, 0.1);
}

.type4 {
    border-color: #00B353;
    background-color: rgba(0, 179, 83, 0.1);
}

/* Misc */
.picture {
    width: 15px;
    padding-right: 10px;
}

/* Make paragraphs lighter and less boxy */
p {
    font-size: 14px;
    font-weight: normal;
    border-radius: 0;
    background-blend-mode: normal;
    padding: 0;
    font-family: inherit;
}

/* Section headings */
h2 {
    font-family: Roboto, sans-serif;
    font-size: 18px;
    font-weight: bold;
    padding: 6px 2px 2px 6px;
}

/* Tables */
.table {
    border-collapse: collapse;
    width: 100%;
    color: #333;
    font-family: Arial, sans-serif;
    font-size: 13px;
    text-align: left;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin: auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

.table-container {
    border: 1px solid #ddd;
    background-color: #f2f2f2;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 2px 20px 5px;
}

table td {
    background-color: #fff;
    border: 1px solid #999;
    padding: 2px;
    border-bottom: 1px solid #ccc;
    text-align: center;
    align-items: center;
    font-weight: normal;
    font-size: 13px;
}

.table-primary th {
    background-color: #002664;
    color: #fff;
    font-weight: bold;
    padding: 8px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #ccc;
    font-size: 13px;
}

table tr:nth-child(even) td {
    background-color: #f2f2f2;
    align-items: center;
}

table tr:hover td {
    background-color: #ffedcc;
    align-items: center;
}

/* Service status */
.textbox-service-status {
    border: 1px solid black;
    padding: 4px;
    margin-left: 10px;
    border-radius: 5px;
    font-size: 13px;
}

.div-button-pairs {
    margin-bottom: 16px;
}

.div-service-container {
    padding: 16px;
    text-align: center;
    border: 1px solid grey;
    border-radius: 10px;
    font-size: 13px;
}

/* Generic button override (keeps Bootstrap .btn-primary above) */
.btn {
    background-color: #007bff;
    border: none;
    color: #fff;
    padding: 4px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
    vertical-align: middle;
}

/* Image thumbnail / popup */
.image-popup img,
.thumbnail-img {
    cursor: pointer;
}

.image-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.image-popup {
    max-width: 90%;
    max-height: 90%;
    background-color: #fff;
    padding: 16px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

    .image-popup img {
        max-width: 100%;
        max-height: 100%;
    }

.image-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

/* Nav icon spacing */
.nav-link i {
    margin-right: 10px;
}
