/* CarbonGuru File Analysis Styles */

.carbonguru-file-analysis,
.carbonguru-sessions-list {
    padding: 20px 0;
}

.upload-section {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* File Requirements Section */
.file-requirements {
    background: #fff;
    padding: 25px;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
    margin-bottom: 30px;
}

.file-requirements h3 {
    margin-top: 0;
    color: #0073aa;
    font-size: 18px;
}

.file-requirements h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.requirements-summary {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    padding: 12px;
    background: #f0f9ff;
    border-radius: 4px;
}

.required-columns {
    list-style: none;
    padding: 0;
    margin: 0;
}

.required-columns li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.required-columns li:last-child {
    border-bottom: none;
}

.required-columns strong {
    color: #0073aa;
    font-family: monospace;
    font-size: 14px;
}

.file-example {
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
}

.file-example strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
}

.file-example pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* Upload Form */
.upload-form {
    margin-top: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-field .required {
    color: #d63638;
    font-weight: 700;
}

.form-field select,
.form-field input[type="file"] {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-field select:focus,
.form-field input[type="file"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.form-field small {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 12px;
    font-style: italic;
}

#file-upload {
    padding: 10px;
}

#upload-btn {
    padding: 12px 30px;
    font-size: 16px;
    margin-top: 10px;
}

/* Error Box */
.error-box {
    background: #fff1f0;
    border: 2px solid #d63638;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
    color: #d63638;
}

.error-box strong {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

/* Info Box */
.info-box {
    background: #f0f9ff;
    border: 2px solid #0073aa;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
    color: #0073aa;
}

.info-box strong {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.processing-section {
    background: #fff;
    padding: 30px;
    border: 2px solid #0073aa;
    border-radius: 8px;
}

.progress-info {
    margin-bottom: 30px;
}

.status-message {
    font-size: 16px;
    font-weight: 600;
    color: #0073aa;
    margin-bottom: 10px;
}

.items-processed {
    font-size: 14px;
    color: #666;
}

.items-processed .count {
    font-weight: 600;
    color: #0073aa;
}

.processed-items {
    margin-top: 20px;
}

.processed-items h4 {
    margin-bottom: 15px;
    color: #333;
}

#items-list {
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

/* Recent Items - Extension Style */
.recent-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 6px;
    border: 1px solid #e9ecef;
    animation: slideIn 0.3s ease-out;
}

.recent-item:last-child {
    margin-bottom: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.item-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 13px;
    margin-bottom: 3px;
    line-height: 1.3;
}

.item-footprint {
    color: #28a745;
    font-weight: 500;
    font-size: 12px;
}

.carbon-cost-badge {
    font-size: 12px;
    color: #e74c3c;
    font-weight: 600;
    margin-left: 8px;
    padding: 2px 6px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.completion-section {
    background: #f0f9ff;
    padding: 40px;
    border: 2px solid #0073aa;
    border-radius: 8px;
    text-align: center;
}

.success-message h3 {
    color: #0073aa;
    margin-bottom: 15px;
}

.success-message p {
    margin-bottom: 15px;
}

.success-message a.button {
    margin: 5px;
}

/* Sessions List */
.shop_table_responsive {
    margin-top: 20px;
}

.shop_table_responsive td {
    padding: 12px;
}

.shop_table_responsive td[data-title="Actions"] {
    text-align: right;
}

#sessions-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .upload-form {
        flex-direction: column;
    }

    #file-upload {
        width: 100%;
    }
}
