/**
 * Equipment Label Plate Extractor Styles
 */

.equipment-extractor {
    max-width: 1400px; /* Increased from 1200px */
    margin: 0 auto;
    padding: 20px;
}

.equipment-extractor h2 {
    color: #333;
    margin-bottom: 30px;
}

.equipment-extractor h3 {
    color: #555;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Upload Section */
.upload-section {
    margin-bottom: 30px;
}

.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.drop-zone:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.drop-zone.drag-over {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.drop-zone p {
    margin: 10px 0;
    color: #666;
}

.drop-zone .hint {
    font-size: 0.9em;
    color: #999;
}

/* File List */
.file-list {
    margin: 20px 0;
}

.file-list h4 {
    color: #555;
    margin-bottom: 10px;
}

.file-list ul {
    list-style: none;
    padding: 0;
}

.file-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.btn-remove {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.btn-remove:hover {
    background-color: #c82333;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #0056b3;
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Quality Section */
.quality-section {
    margin-top: 30px;
}

.quality-summary {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 20px;
}

.quality-summary .warning {
    color: #856404;
    background-color: #fff3cd;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #ffc107;
}

.quality-summary .success {
    color: #155724;
    background-color: #d4edda;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #28a745;
}

.quality-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.quality-item {
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quality-item.has-warnings {
    border-left: 4px solid #ffc107;
}

.quality-item h4 {
    margin-top: 0;
    color: #333;
    font-size: 14px;
}

.quality-item .warnings {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.quality-item .warnings li {
    padding: 5px 0;
    color: #856404;
    font-size: 14px;
}

.quality-item .warnings li:before {
    content: "⚠️ ";
    margin-right: 5px;
}

/* Progress Section */
.progress-section {
    margin-top: 30px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background-color: #007bff;
    transition: width 0.3s ease;
    width: 0%;
}

#progressText {
    color: #666;
    margin-top: 10px;
}

/* Error Section */
.error-section {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

.success-section {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.error-message {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .equipment-extractor {
        padding: 10px;
    }

    .drop-zone {
        padding: 20px;
    }

    .quality-details {
        grid-template-columns: 1fr;
    }
}

/* Extraction Results */
.extraction-results {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.extraction-results h3 {
    color: #28a745;
    margin-top: 0;
}

/* Confidence Indicators */
.confidence-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
}

.confidence-excellent {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.confidence-good {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.confidence-icon {
    font-size: 18px;
    font-weight: bold;
}

.confidence-text {
    font-weight: 500;
}

/* Confidence Warnings */
.confidence-warning {
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    border-left: 4px solid;
}

.confidence-fair {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.confidence-poor {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.confidence-warning {
    display: flex;
    gap: 12px;
}

.warning-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.warning-content {
    flex: 1;
}

.warning-content strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.warning-content p {
    margin: 8px 0;
    line-height: 1.5;
}

.warning-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.warning-content li {
    margin: 4px 0;
    line-height: 1.4;
}

.equipment-record {
    background-color: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.equipment-record h4 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.record-details {
    display: grid;
    gap: 12px;
}

.detail-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    font-weight: 600;
    color: #555;
}

.detail-row .value {
    color: #333;
    word-break: break-word;
}

.action-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-ai {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-ai:hover:not(:disabled) {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.btn-ai:disabled {
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

/* AI Enhance Status */
.ai-enhance-status {
    margin: 15px 0;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
}

.ai-enhance-status.loading {
    background-color: #e3f2fd;
    color: #1976d2;
    border-left: 4px solid #2196f3;
}

.ai-enhance-status.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.ai-enhance-status.warning {
    background-color: #fff3e0;
    color: #e65100;
    border-left: 4px solid #ff9800;
}

.ai-enhance-status.error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.ai-enhance-status small {
    display: block;
    margin-top: 5px;
    opacity: 0.8;
    font-size: 12px;
}

/* Image Viewer */
.image-viewer {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.image-viewer h5 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-color: white;
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-item img:hover {
    transform: scale(1.05);
}

.no-images {
    color: #999;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

/* Edit Form */
.edit-form {
    margin: 20px 0;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.edit-form h5 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.edit-form h5:first-child {
    margin-top: 0;
}

.form-row {
    margin-bottom: 15px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-row input[type="date"] {
    max-width: 200px;
}

.form-actions {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

/* Save Status */
.save-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-weight: 500;
}

.save-status.saving {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.save-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}

.save-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #dc3545;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
}

/* Mode Toggle */
.mode-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.btn-mode {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #dee2e6;
    background-color: white;
    color: #6c757d;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-mode:hover {
    border-color: #007bff;
    color: #007bff;
}

.btn-mode.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Search Section */
.search-section {
    margin-top: 20px;
    max-width: 1400px; /* Match equipment-extractor width */
}

.search-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.search-form .form-row:last-of-type {
    margin-bottom: 0;
}

.search-form .form-group {
    display: flex;
    flex-direction: column;
}

.search-form .form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.search-form .form-group input {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.search-form .form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.search-form .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 0;
    border-top: none;
}

/* Search Results */
.search-results {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.results-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Table container with horizontal scroll */
#resultsTable {
    overflow-x: auto;
    margin-bottom: 20px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 1200px; /* Ensure table has minimum width */
}

.results-table thead {
    background: #f8f9fa;
}

.results-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.results-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    max-width: 300px; /* Increased from 200px */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.results-table tbody tr:hover {
    background: #f8f9fa;
}

.results-table td.actions {
    white-space: nowrap;
    width: 80px;
    text-align: center;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    transition: transform 0.2s;
}

.btn-icon:hover {
    transform: scale(1.2);
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

#pageInfo {
    font-weight: 600;
    color: #555;
}

/* Responsive Design for Search */
@media (max-width: 768px) {
    .mode-toggle {
        flex-direction: column;
    }
    
    .search-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .results-table {
        font-size: 12px;
    }
    
    .results-table th,
    .results-table td {
        padding: 8px;
    }
}

/* Image Lightbox/Modal */
.image-lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.lightbox-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    font-size: 14px;
    padding: 10px;
}

/* Make equipment images clickable */
.equipment-image-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.equipment-image-container:hover {
    transform: scale(1.02);
}

.equipment-image-container::after {
    content: '🔍';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.equipment-image-container:hover::after {
    opacity: 1;
}

.equipment-image {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.equipment-image:hover {
    opacity: 0.9;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-caption {
        position: relative;
        bottom: 0;
        margin-top: 10px;
    }
}


/* History Modal */
.history-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.history-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.history-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.history-modal-header h3 {
    margin: 0;
    color: #333;
}

.history-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.history-modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.history-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.history-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.history-empty .hint {
    font-size: 0.9em;
    color: #999;
    margin-top: 10px;
}

.history-entry {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.history-entry:last-child {
    margin-bottom: 0;
}

.history-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.history-version {
    font-weight: bold;
    color: #007bff;
    font-size: 1.1em;
}

.history-timestamp {
    color: #666;
    font-size: 0.9em;
}

.history-entry-user {
    margin-bottom: 10px;
    font-size: 0.95em;
}

.history-user-label {
    color: #666;
    margin-right: 5px;
}

.history-user-value {
    color: #333;
    font-weight: 500;
}

.history-changes {
    margin-top: 10px;
}

.history-changes-label {
    font-weight: bold;
    color: #555;
    margin-bottom: 8px;
}

.history-changes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-changes-list li {
    padding: 8px 12px;
    margin: 5px 0;
    background-color: #fff;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.history-old-value {
    color: #dc3545;
    text-decoration: line-through;
    margin: 0 5px;
}

.history-arrow {
    color: #666;
    margin: 0 5px;
}

.history-new-value {
    color: #28a745;
    font-weight: 500;
    margin: 0 5px;
}

.history-no-changes {
    color: #666;
    font-style: italic;
    padding: 10px;
    background-color: #fff;
    border-radius: 4px;
}

/* Delete Button Styles */
.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background-color: #c82333;
}

.btn-danger:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-icon.btn-delete {
    color: #dc3545;
}

.btn-icon.btn-delete:hover {
    color: #c82333;
    background-color: #f8d7da;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #007bff;
    background-color: #f8f9fa;
}

.tab-btn.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 600;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Grid for Tabs */
.tab-content .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Confidence Badges */
.confidence-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
    white-space: nowrap;
}

.confidence-badge.confidence-high {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.confidence-badge.confidence-medium {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.confidence-badge.confidence-low {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Prediction Source Badges */
.prediction-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
    white-space: nowrap;
}

.prediction-badge.prediction-decoded {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.prediction-badge.prediction-predicted {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Form Row with Badge */
.form-row {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-row label {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

/* Responsive Design for Tabs */
@media (max-width: 768px) {
    .tab-navigation {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        white-space: nowrap;
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .tab-content .form-grid {
        grid-template-columns: 1fr;
    }
}


/* Phase 4: Form Section Styling */
.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #495057;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.form-section .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}
