/* Analyzer-specific styles */
.section-heading {
    margin-bottom: 15px;
}

.section-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.analyzer-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.upload-box {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 6px;
    padding: 40px;
    text-align: center;
    transition: border-color 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: #3498db;
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: #666;
    margin-bottom: 15px;
}

.upload-area h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.upload-area p {
    color: #666;
    margin: 0 0 20px 0;
}

.file-input {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.analyze-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.analyze-button:hover {
    background-color: #45a049;
}

/* Results styles */
.results-box {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Debug info styles */
.debug-info {
    background-color: #fffde7;
    border: 1px solid #ffd54f;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
}

.debug-info h3 {
    margin-top: 0;
    color: #ff6f00;
}

/* Info box styles */
.info-box {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 30px;
}

.info-columns {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.info-column {
    flex: 1;
}

		
		@media (max-width: 768px) {
    .info-columns {
        flex-direction: column;
        gap: 20px;
    }
    
    .upload-area {
        padding: 20px;
    }
}

/* Results container styles */
.results-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.result-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
}

.result-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.result-section h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Table styles */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th {
    background-color: #2c3e50;
    color: white;
    text-align: left;
    padding: 10px 15px;
}

.results-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* Quality score */
.quality-score-container {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 15px;
}

.quality-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    color: white;
    padding: 10px;
}

.score-high {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
}

.score-medium {
    background: linear-gradient(135deg, #FFC107, #FF9800);
}

.score-low {
    background: linear-gradient(135deg, #F44336, #FF5722);
}

.score-value {
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
}

.score-label {
    font-size: 14px;
    text-align: center;
    margin-top: 5px;
}

.summary-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    flex: 1;
}

.summary-item {
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    padding: 10px 15px;
    border-radius: 4px;
}

.summary-item span {
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
    font-size: 14px;
}

/* Size visualization */
.size-visualization {
    margin-top: 20px;
}

.size-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.size-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 10px;
}

.size-present {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.size-missing {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
}

.size-value {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.size-check {
    color: #4CAF50;
    font-size: 24px;
}

.size-x {
    color: #F44336;
    font-size: 24px;
}

/* Compatibility section */
.compatibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.compat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.compat-present {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.compat-missing {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    opacity: 0.7;
}

.compat-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.compat-present .compat-icon {
    color: #4CAF50;
}

.compat-missing .compat-icon {
    color: #9e9e9e;
}

/* Recommendations section */
.recommendations {
    background-color: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    border-bottom: none;
}

.recommendations-list li {
    margin-bottom: 12px;
    line-height: 1.5;
}

.recommendations-list li:last-child {
    margin-bottom: 0;
}