/* 차량 다이어그램 스타일 */

.car-diagram-wrapper {
    position: relative;
    margin: 2rem 0;
    background: #f8fafc;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 2px solid #e2e8f0;
}

.car-diagram-container {
    position: relative;
    width: 580px;
    height: 230px;
    margin: 0 auto;
    background-image: url('/images/car-diagram.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.car-diagram-table {
    width: 580px;
    height: 230px;
    border-collapse: collapse;
    position: relative;
    z-index: 10;
}

.car-cell {
    width: 29px;
    height: 23px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background-color: transparent;
}

.car-cell:hover {
    border-color: #2563eb !important;
    box-shadow: 0 0 5px rgba(37, 99, 235, 0.5);
    z-index: 100;
}

.status-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: bold;
    pointer-events: none;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

.diagram-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.legend-box {
    width: 24px;
    height: 24px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 11px;
    color: white;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

.diagram-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.diagram-info {
    font-size: 0.875rem;
    color: #64748b;
}

.diagram-summary {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.summary-item {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
}

/* 인쇄시 스타일 */
@media print {
    .diagram-controls {
        display: none;
    }
    
    .car-diagram-wrapper {
        background: white;
        border: 1px solid #333;
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .car-diagram-container {
        width: 100%;
        height: auto;
        aspect-ratio: 580 / 230;
    }
    
    .car-diagram-table {
        width: 100%;
        height: auto;
    }
    
    .car-cell {
        width: 5%;
        height: auto;
        aspect-ratio: 29 / 23;
    }
    
    .status-label {
        font-size: 8px;
    }
}

/* 상태별 색상 정의 */
.status-normal {
    background-color: transparent !important;
}

.status-exchange {
    background-color: #ff0000 !important;
}

.status-welding {
    background-color: #ffaa00 !important;
}

.status-scratch {
    background-color: #ff6600 !important;
}

.status-uneven {
    background-color: #9933ff !important;
}

.status-corrosion {
    background-color: #996633 !important;
}

.status-damage {
    background-color: #000000 !important;
}

