/* Base styles */
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,... no-repeat ...) 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;
}

/* JustPark Timeline */
.timeline-container {
    position: relative;
    height: 28px;
    background: #e9ecef;
    border-radius: 6px;
    margin-top: 6px;
}

.timeline-parking {
    position: absolute;
    height: 100%;
    background: #6c757d;
    border-radius: 6px;
}

.timeline-event {
    position: absolute;
    height: 100%;
    background: #0d6efd;
    border-radius: 6px;
}

.timeline-now {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 2px;
    background: red;
}

/* Flash animations */
.count-flash {
    animation: flashCountRow 0.8s ease-out;
}

@keyframes flashCountRow {
    0% {
        background-color: #d1ecf1;
    }
    /* light cyan */
    100% {
        background-color: transparent;
    }
}

.sign-flash {
    animation: flashSignRow 1.5s ease-out;
}

@keyframes flashSignRow {
    0% {
        background-color: #fff3cd;
    }
    /* soft yellow */
    100% {
        background-color: transparent;
    }
}



/* SiteMonitor Table */
/* Container allows both vertical & horizontal scroll */
.monitor-table-container {
    max-height: 70vh; /* adjust as needed */
    overflow-y: auto; /* vertical scroll */
    overflow-x: auto; /* horizontal scroll */
    position: relative;
}

/* Table styling */
.monitor-table {
    width: 100%;
    border-collapse: collapse;
}

    /* Sticky header row */
    .monitor-table thead th {
        position: sticky;
        top: 0;
        background: white;
        z-index: 3; /* above everything */
        text-align: center;
    }

    /* Freeze first column (Company) */
    /*.monitor-table td:first-child,
    .monitor-table th:first-child {
        position: sticky;
        left: 0;
        background: white;
        z-index: 2;
    }*/

    /* Freeze second column (Employees On Site) */
    /*.monitor-table td:nth-child(2),
    .monitor-table th:nth-child(2) {
        position: sticky;
        left: 160px;*/ /* width of first column */
        /*background: white;
        z-index: 2;
    }*/

/* Lot / Zone headers colors */
.lot-header {
    background: #eef6ff;
}

.zone-header {
    background: #f6f0ff;
}

/* Compact buttons inside table cells */
.monitor-table button {
    padding: 0 6px;
    line-height: 1;
}

/* Capacity indicator */
.capacity {
    font-size: 11px;
    color: #888;
}

.capacity-exceeded {
    color: red;
    background: #ffcccc !important;
    font-weight: bold;
}

.monitored-capacity-exceeded {
    color: white;
    background-color: #dc3545;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 2px;
}

/* Capacity bar (optional visualization) */
.capacity-bar {
    width: 120px;
    height: 10px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

    .capacity-bar.small {
        width: 80px;
        height: 8px;
    }

.capacity-fill {
    height: 100%;
    background: linear-gradient(90deg,#28a745,#ffc107,#dc3545);
    transition: width 0.4s ease;
}

.capacity-text {
    font-size: 0.75rem;
    margin-left: 6px;
    color: #555;
}
