/* === Ekspertiz Şeması Stilleri (ekspetriz_other_site.html yapısı) === */

/* Page Form */
.page-form {
    width: 100%;
    margin: 20px 0;
}

.form-element-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.form-element-container {
    flex: 1;
    min-width: 300px;
}

.form-element-container.text-detail {
    flex: 1;
    min-width: 400px;
}

.form-element-container.svg-detail {
    flex: 1;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Elements Title Container */
.elements-title-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.title-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

/* İlk kolon (parça adı) sol hizalı */
.elements-row .title.title-text-container,
.elements-title-container .title.title-text-container {
    justify-content: flex-start;
    text-align: left;
}

.title-text-container.hover {
    cursor: pointer;
    transition: background-color 0.2s;
}

.title-text-container.hover:hover {
    background-color: #e9ecef;
    border-radius: 4px;
}

/* Elements Row */
.elements-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    align-items: center;
    transition: background-color 0.2s;
}

/* Checkbox kolonları ortalanmış */
.elements-row .orginal,
.elements-row .SCRATCHED,
.elements-row .PAINTED,
.elements-row .changed {
    display: flex;
    justify-content: center;
    align-items: center;
}

.elements-row:hover {
    background-color: #f8f9fa;
}

.elements-row:last-child {
    border-bottom: none;
}

/* Checkbox Stilleri */
.checkbox {
    display: inline-block;
    position: relative;
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0;
}

.checkbox span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s;
}

.checkbox input[type="radio"]:checked + span {
    background: #B71C1C;
    border-color: #B71C1C;
    color: white;
}

.checkbox input[type="radio"]:checked + span i {
    display: block;
    color: white;
}

.checkbox span i {
    display: none;
    font-size: 14px;
}

.checkbox:hover span {
    border-color: #B71C1C;
}

/* Durum Renkleri */
.orginal .checkbox input[type="radio"]:checked + span {
    background: #28a745;
    border-color: #28a745;
}

.SCRATCHED .checkbox input[type="radio"]:checked + span {
    background: #ffc107;
    border-color: #ffc107;
}

.PAINTED .checkbox input[type="radio"]:checked + span {
    background: #ff9800;
    border-color: #ff9800;
}

.changed .checkbox input[type="radio"]:checked + span {
    background: #dc3545;
    border-color: #dc3545;
}

/* SVG Detail */
.guide-of-svg {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.guide-of-svg > div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.guide-of-svg .orjinal {
    background: #e8f5e9;
    color: #2e7d32;
}

.guide-of-svg .SCRATCHED {
    background: #fff3cd;
    color: #856404;
}

.guide-of-svg .PAINTED {
    background: #ffe0b2;
    color: #e65100;
}

.guide-of-svg .changed {
    background: #ffebee;
    color: #c62828;
}

/* SVG */
#ekspertizSablon {
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 600px;
}

.expertise-part {
    cursor: pointer;
    transition: fill 0.2s ease, opacity 0.2s ease;
}

.expertise-part:hover {
    opacity: 0.8;
}

.expertise-part.status-original {
    fill: #FFFFFF !important;
}

.expertise-part.status-SCRATCHED {
    fill: #ffc107 !important;
}

.expertise-part.status-PAINTED {
    fill: #ff9800 !important;
}

.expertise-part.status-REPLACED {
    fill: #dc3545 !important;
}

/* Tramer Durumu */
#tramerTutarAlani {
    display: flex;
    align-items: center;
    gap: 10px;
}

#tramerTutarAlani label {
    font-weight: 500;
    color: #333;
}

#Tramer {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 150px;
}

/* Responsive */
@media (max-width: 1200px) {
    .form-element-row {
        flex-direction: column;
    }
    
    .form-element-container.text-detail,
    .form-element-container.svg-detail {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .form-element-row {
        flex-direction: column;
    }
    
    .form-element-container.svg-detail {
        order: -1; /* SVG'yi üste al */
    }
    
    .form-element-container.text-detail {
        order: 1; /* Text detayları alta */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .elements-title-container,
    .elements-row {
        grid-template-columns: minmax(100px, 1.2fr) repeat(4, minmax(48px, 1fr));
        gap: 4px;
        font-size: 0.8rem;
        padding: 8px;
    }

    .title-text-container {
        justify-content: flex-start;
        padding: 6px 4px;
    }

    .checkbox span {
        width: 30px;
        height: 30px;
    }
    
    .checkbox span i {
        font-size: 12px;
    }
    
    #ekspertizSablon {
        max-height: 350px;
        max-width: 100%;
    }
    
    .guide-of-svg {
        gap: 6px;
    }
    
    .guide-of-svg > div {
        font-size: 0.7rem;
        padding: 5px 8px;
    }
}

@media (max-width: 480px) {
    .elements-title-container,
    .elements-row {
        grid-template-columns: minmax(90px, 1.2fr) repeat(4, minmax(42px, 1fr));
        gap: 3px;
        font-size: 0.75rem;
        padding: 6px 4px;
    }

    .title-text-container {
        justify-content: flex-start;
        padding: 4px 2px;
        font-size: 0.7rem;
    }

    .checkbox span {
        width: 28px;
        height: 28px;
    }
    
    .checkbox span i {
        font-size: 11px;
    }

    .form-element-container.text-detail {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .elements-row {
        padding: 6px 4px;
    }
    
    #ekspertizSablon {
        max-height: 280px;
        max-width: 100%;
    }
    
    .guide-of-svg {
        gap: 4px;
    }
    
    .guide-of-svg > div {
        font-size: 0.65rem;
        padding: 4px 6px;
    }
}
