ul.errorlist {display:none}

.image-container { position: relative; display: inline-block; }
.clickable-box {
    position: absolute;
    border: 2px solid transparent; /* Hidden by default */
    cursor: pointer;
    z-index: 1;
}
.clickable-box:hover {
    border-color: yellow; /* Shows highlight on hover */
    background: rgba(255, 255, 0, 0.2); /* Optional: slight tint */
}

/* Manifest Form Wizard Styles */

.form-wizard {
    /* Remove height and overflow to prevent double scrollbars */
}

/* SIDEBAR LAYOUT - see sidebar.css for main sidebar styles */

/* Wizard sidebar - sits to the right of the app sidebar */
.wizard-sidebar {
    position: fixed;
    top: 48px;
    left: 250px;
    width: 220px;
    height: calc(100vh - 48px);
    overflow-y: auto;
    padding-top: 1rem;
    z-index: 100;
}

.wizard-main-content {
    margin-left: 220px;
    padding-bottom: 100px;
    min-height: calc(100vh - 48px);
}

.main-content {
    padding-bottom: 100px; /* space for fixed buttons */
    min-height: calc(100vh - 48px);
}

/* Clickable Form Image */
.form-image-container {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Wrapper for image and SVG overlay */
.form-image-wrapper {
    position: relative;
    width: 100%;
    display: inline-block;
}

.clickable-box {
  position: absolute;
  border: 2px solid transparent; /* Hidden by default */
  cursor: pointer;
}
.clickable-box:hover {
  border-color: yellow; /* Shows highlight on hover */
  background: rgba(255, 255, 0, 0.2); /* Optional: slight tint */
}

.form-image {
    width: 100%;
    height: auto;
    display: block;
}

/* SVG overlay positioned absolutely over the image */
.form-540-map,
.form-541-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through to specific elements */
}

.form-map {
    width: 100%;
    height: auto;
    display: block;
}

/* Clickable form sections */
.form-section {
    fill: rgba(233, 236, 239, 0.3); /* Semi-transparent light gray */
    stroke: #6c757d;
    stroke-width: 2;
    transition: all 0.3s ease;
    pointer-events: auto; /* Make sections clickable */
}

.form-section:hover {
    fill: rgba(207, 226, 255, 0.6); /* Semi-transparent light blue */
    stroke: #0d6efd;
    stroke-width: 3;
    cursor: pointer;
}

.form-section.active {
    fill: rgba(13, 110, 253, 0.4); /* Semi-transparent blue - highlighted */
    stroke: #0a58ca;
    stroke-width: 3;
    animation: pulse-highlight 2s ease-in-out infinite;
}

.form-section.completed {
    fill: rgba(209, 231, 221, 0.4); /* Semi-transparent green */
    stroke: #198754;
}

/* Pulse animation for active section */
@keyframes pulse-highlight {
    0%, 100% {
        fill: rgba(13, 110, 253, 0.4);
    }
    50% {
        fill: rgba(13, 110, 253, 0.6);
    }
}

.section-label {
    fill: #212529;
    font-size: 16px;
    font-weight: 600;
    text-anchor: middle;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-shadow: 0 0 3px white, 0 0 3px white, 0 0 3px white; /* Outline effect for better visibility */
}

.section-label.active {
    fill: #0d6efd;
    font-weight: 700;
}

/* Navigation Steps */
.wizard-nav {
    margin-top: 20px;
}

.nav-step {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.nav-step a {
    text-decoration: none;
    color: #495057;
    padding: 8px 12px;
    display: flex;
    align-items: center;
}

.nav-step:hover {
    background-color: #f8f9fa;
}

.nav-step.active {
    background-color: #e7f1ff;
    border-left: 4px solid #0d6efd;
}

.nav-step.completed .step-number i {
    color: #198754;
}

.nav-step.active .step-number i {
    color: #0d6efd;
}

.step-number {
    width: 30px;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.step-title {
    font-size: 14px;
    font-weight: 500;
}

/* Section Headers */
.section-header h3 {
    color: #212529;
    font-weight: 600;
}

.section-header .text-muted {
    font-size: 0.95rem;
}

/* Wizard Actions (Bottom Navigation) */
.wizard-actions {
    position: fixed;
    bottom: 0;
    left: 470px; /* 250px app sidebar + 220px wizard sidebar */
    right: 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 90;
    background-color: white;
}

@media (max-width: 991.98px) {
    .wizard-actions {
        left: 0;
        width: 100%;
    }
}

/* Cards and Forms */
.card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

.card-header {
    font-weight: 600;
}

/* Progress Bar */
.progress {
    border-radius: 5px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.progress-bar {
    font-weight: 600;
    font-size: 0.9rem;
    transition: width 0.6s ease;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .main-content {
        margin-left: 0;
    }

    .wizard-sidebar {
        left: 0;
        width: 200px;
    }

    .wizard-main-content {
        margin-left: 200px;
    }

    .wizard-actions {
        width: 100%;
    }

    .form-image-container {
        max-width: 300px;
        margin: 0 auto;
    }

    .form-wizard {
        height: auto;
        overflow: visible;
    }
}

/* HTMX Indicators */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-request.htmx-indicator {
    display: inline-block;
}

/* Save Indicator */
#save-indicator {
    font-size: 0.9rem;
    min-height: 24px;
}

/* Table Improvements */
.table-responsive {
    border-radius: 4px;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Accordion Customization */
.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0d6efd;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Badge Styling */
.badge {
    font-size: 0.8rem;
    padding: 0.35em 0.65em;
}

/* Alert Improvements */
.alert {
    border-left: 4px solid;
}

.alert-info {
    border-left-color: #0dcaf0;
}

.alert-success {
    border-left-color: #198754;
}

.alert-warning {
    border-left-color: #ffc107;
}

.alert-danger {
    border-left-color: #dc3545;
}

/* Empty State Styling */
.card-body .bi-inbox,
.card-body .bi-radioactive {
    opacity: 0.3;
}

/* Button Improvements */
.btn {
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

/* Loading State */
#wizard-content .spinner-border {
    width: 3rem;
    height: 3rem;
}
