
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
/*@import "blazing-berry.bs5.scss";*/
@import "blazing-berry.bs5.css";
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;
}

.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(...) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* ============================= */
/* Proposal Card Styling        */
/* ============================= */

.proposal-card {
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out;
}

    .proposal-card:hover {
        transform: translateY(-3px);
    }

/* Image container holding image + badge */
.proposal-image-container {
    height: 180px;
    width: 100%;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    position: relative;
}

/* Image that fills the container */
.proposal-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Status badge */
.status-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 12px;
    font-weight: 500;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Status colors */
.bg-active {
    background-color: #d1e7dd !important;
    color: #0f5132 !important;
}

.bg-planning {
    background-color: #fff3cd !important;
    color: #664d03 !important;
}

.bg-completed {
    background-color: #e2e3e5 !important;
    color: #41464b !important;
}

/* Typography inside card */
.proposal-card h5 {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
}

.proposal-card .text-muted {
    font-size: 0.85rem;
}

/* Zones & Buildings stat boxes */
.proposal-card .d-flex > .flex-fill {
    min-width: 45%;
}

/* Progress section */
.proposal-card .progress-label {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    color: #6c757d;
}

/* Total project value */
.proposal-card .fs-5 {
    font-size: 1.25rem;
}

/* View Zones button */
.view-zones-btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0.375rem;
}

/* Consistent padding fix for DevExpress card */
.proposal-card .dx-card-content {
    padding: 1rem !important;
}

/* ProgressBar adjustment */
.dx-progressbar {
    height: 8px;
    border-radius: 6px;
}

/* ============================= */
/* Optional Loading Spinner     */
/* ============================= */

.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");
    }

code {
    color: #c02d76;
}

.zone-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.zone-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.zone-icon {
    color: purple;
}

.building-card {
    background-color: #f8f9fa;
}

.building-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.status-badge {
    font-size: 0.8rem;
}

/*.bg-purple {
    background-color: #a855f7;
}*/

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: " / ";
}



.dx-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

h4, h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

small.text-muted {
    font-size: 0.875rem;
}

.row.g-3 > .col-md-3,
.row.g-3 > .col-md-4,
.row.g-3 > .col-md-6 {
    padding-bottom: 1rem;
}

/* Label spacing */
.dx-field-label {
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #555;
}

/* Buttons */
.btn-dark {
    background-color: #222;
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border-radius: 6px;
}

    .btn-dark:hover {
        background-color: #000;
    }

/* Back Button */
.dx-button.dx-link-button {
    color: #007bff;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
}

    .dx-button.dx-link-button:hover {
        text-decoration: underline;
        color: #0056b3;
    }

/* TextArea Styling */
textarea.form-control {
    resize: vertical;
    border-radius: 6px;
}

.card {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.05);
}

.container {
    max-width: 1140px;
}

.btn-fav {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* Responsive padding inside cards */
@media (max-width: 768px) {
    .dx-card {
        padding: 1.25rem;
    }
}