/*
 * Digital Inspection Terminal - Pro Max UI 2.0
 * High-performance interface for fleet operators.
 */

.renhel-inspection-terminal {
    --primary: var(--rh-color-primary);
    --accent: var(--rh-color-accent);
    --surface: var(--rh-color-surface-1);
}

#inspectionModal .modal-content {
    border-radius: var(--rh-radius-lg);
    background: var(--rh-color-bg-base);
    box-shadow: var(--rh-shadow-floating);
    border: none;
    overflow: hidden;
}

#inspectionModal .modal-header {
    background: var(--rh-color-primary);
    color: #FFFFFF;
    padding: 24px 30px;
    border: none;
}

/* Kiosk Progress Bar */
.inspection-wizard-progress-bar {
    height: 6px;
    background: var(--rh-color-surface-3);
    position: relative;
    margin-bottom: 0;
}

.progress-active-line {
    height: 100%;
    background: var(--rh-color-accent);
    transition: width var(--rh-transition-normal);
}

.inspection-step-container {
    padding: 40px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

/* Metric Inputs - Large for Tablet */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.metric-input-card {
    background: var(--rh-color-surface-1);
    padding: 24px;
    border-radius: var(--rh-radius-md);
    border: 2px solid var(--rh-border-color);
    transition: all var(--rh-transition-fast);
}

.metric-input-card:focus-within {
    border-color: var(--rh-color-accent);
    box-shadow: 0 0 0 4px var(--rh-border-focus);
}

.metric-label {
    font-size: var(--rh-font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--rh-text-muted);
    margin-bottom: 12px;
    display: block;
}

.metric-field {
    font-size: var(--rh-font-size-2xl);
    font-weight: 800;
    width: 100%;
    border: none;
    background: transparent;
    color: var(--rh-color-primary);
    outline: none;
}

/* Damage Map - Pro Max Visuals */
.damage-map-wrapper {
    background: var(--rh-color-surface-1);
    border-radius: var(--rh-radius-lg);
    padding: 40px;
    box-shadow: var(--rh-shadow-md);
    position: relative;
    margin: 0 auto;
    max-width: 800px;
}

.vehicle-svg-container {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05));
}

.damage-marker {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #ef4444;
    border: 3px solid #FFFFFF;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
    cursor: pointer;
    z-index: 100;
    animation: marker-pulse 2s infinite;
}

@keyframes marker-pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* Signature Pad - Pro Max Style */
.signature-terminal-zone {
    background: var(--rh-color-surface-2);
    border: 2px solid var(--rh-border-color);
    border-radius: var(--rh-radius-md);
    overflow: hidden;
    position: relative;
}

.signature-pad-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--rh-text-muted);
    font-size: var(--rh-font-size-sm);
    pointer-events: none;
    opacity: 0.5;
}

/* Action Buttons */
.terminal-btn-group {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 30px;
}

.terminal-btn {
    flex: 1;
    height: 60px;
    font-size: var(--rh-font-size-base);
    font-weight: 700;
}

@media (max-width: 768px) {
    .inspection-step-container {
        padding: 20px;
    }
    
    .damage-map-wrapper {
        padding: 10px;
    }
}
