/* Sagging Detection Calculator Specific Styles */

/* Sagging Analysis Display */
.sagging-analysis {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    border: 2px solid #10b981;
}

.sagging-header {
    text-align: center;
    margin-bottom: 20px;
}

.sagging-title {
    font-size: 20px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 8px;
}

.sagging-subtitle {
    font-size: 14px;
    color: #064e3b;
}

.sagging-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.sagging-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.sagging-card:hover {
    border-color: #10b981;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.sagging-card.minimal {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.sagging-card.moderate {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.sagging-card.significant {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fefbf3, #fef3c7);
}

.sagging-card.severe {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.sagging-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.sagging-card.minimal .sagging-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.sagging-card.moderate .sagging-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.sagging-card.significant .sagging-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.sagging-card.severe .sagging-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.sagging-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sagging-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sagging-card.minimal .sagging-value {
    color: #059669;
}

.sagging-card.moderate .sagging-value {
    color: #1d4ed8;
}

.sagging-card.significant .sagging-value {
    color: #d97706;
}

.sagging-card.severe .sagging-value {
    color: #dc2626;
}

.sagging-description {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* Measurement Guide */
.measurement-guide {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #93c5fd;
}

.measurement-guide h4 {
    color: #1d4ed8;
    margin-bottom: 8px;
    font-size: 16px;
}

.measurement-guide p {
    color: #1e40af;
    font-size: 14px;
    margin: 0;
}

/* Visual Checklist */
.visual-checklist {
    margin: 20px 0;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.checklist-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checklist-item input[type="checkbox"]:checked + .checkmark {
    background: #10b981;
    border-color: #10b981;
}

.checklist-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.item-details {
    flex: 1;
}

.item-details strong {
    display: block;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 2px;
}

.item-details span {
    font-size: 12px;
    color: #64748b;
}

/* Measurement Analysis */
.measurement-analysis {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.measurement-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.measurement-item {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.measurement-item:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.measurement-item.minimal {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.measurement-item.moderate {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.measurement-item.significant {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fefbf3, #fef3c7);
}

.measurement-item.severe {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.measurement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.measurement-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.measurement-depth {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.measurement-item.minimal .measurement-depth {
    background: #dcfce7;
    color: #059669;
}

.measurement-item.moderate .measurement-depth {
    background: #dbeafe;
    color: #1d4ed8;
}

.measurement-item.significant .measurement-depth {
    background: #fef3c7;
    color: #d97706;
}

.measurement-item.severe .measurement-depth {
    background: #fee2e2;
    color: #dc2626;
}

.measurement-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.detail-label {
    font-size: 14px;
    color: #64748b;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

/* Severity Assessment */
.severity-assessment {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #93c5fd;
}

.severity-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.severity-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #bfdbfe;
    text-align: center;
    transition: all 0.3s ease;
}

.severity-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.severity-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 20px;
}

.severity-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.severity-value {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 4px;
}

.severity-description {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* Severity Guide Sidebar */
.severity-guide {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-item {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.guide-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.guide-item.minimal {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-color: #10b981;
}

.guide-item.moderate {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #3b82f6;
}

.guide-item.significant {
    background: linear-gradient(135deg, #fefbf3, #fef3c7);
    border-color: #f59e0b;
}

.guide-item.severe {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #ef4444;
}

.guide-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.guide-item.minimal strong {
    color: #059669;
}

.guide-item.moderate strong {
    color: #1d4ed8;
}

.guide-item.significant strong {
    color: #d97706;
}

.guide-item.severe strong {
    color: #dc2626;
}

.guide-item span {
    font-size: 12px;
    color: #64748b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sagging-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .measurement-breakdown {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .severity-indicators {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .checklist-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .sagging-analysis {
        padding: 20px;
    }
    
    .measurement-analysis {
        padding: 20px;
    }
    
    .severity-assessment {
        padding: 20px;
    }
    
    .checklist-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .sagging-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .sagging-metrics {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .severity-indicators {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .sagging-card {
        padding: 16px;
    }
    
    .sagging-value {
        font-size: 18px;
    }
    
    .sagging-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .sagging-analysis {
        padding: 16px;
    }
    
    .measurement-analysis {
        padding: 16px;
    }
    
    .severity-assessment {
        padding: 16px;
    }
    
    .measurement-item {
        padding: 16px;
    }
    
    .severity-card {
        padding: 16px;
    }
    
    .checklist-item {
        padding: 10px;
    }
    
    .guide-item {
        padding: 10px;
    }
}
