/* New Shipment Origin Section Styles */
#new-shipment-origin-section {
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
    position: relative;
}

#new-shipment-origin-section .content-main {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: all 0.3s ease;
}

/* Section Tabs */
.section-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.section-tab {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-tab.active {
    background: white;
    color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.section-tab:hover:not(.active) {
    background: #e9ecef;
    color: #495057;
}

.section-content {
    display: none;
}

.section-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Article 9 Form Styles */
.article9-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
}

.form-section h4 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.form-section h5 {
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-auto {
    display: flex;
    align-items: flex-end;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-control {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-control:read-only {
    background: #f8f9fa;
    color: #6c757d;
}

/* Species and Supplier Items */
.species-item, .supplier-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.species-item:last-child, .supplier-item:last-child {
    margin-bottom: 0;
}

.remove-species, .remove-supplier {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mapping Container */
.mapping-container {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.map-controls {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 15px;
}

.map-status {
    margin-left: auto;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.map-container {
    height: 400px;
    position: relative;
}

.deforestation-map {
    width: 100%;
    height: 100%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    color: #6c757d;
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    color: #adb5bd;
}

.map-placeholder p {
    font-weight: 600;
    margin-bottom: 5px;
}

.map-placeholder small {
    font-size: 12px;
}

.map-overlays {
    background: white;
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
}

.overlay-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.overlay-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
}

.coordinates-list {
    max-height: 150px;
    overflow-y: auto;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 10px;
}

.coordinate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #dee2e6;
}

.coordinate-item:last-child {
    border-bottom: none;
}

.deforestation-alert {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 6px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #dc3545;
}

.deforestation-alert i {
    font-size: 18px;
}

/* File Upload Areas */
.verification-upload, .compliance-upload {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
}

/* Navigation Buttons */
#ns-prev-section, #ns-next-section {
    min-width: 120px;
}

/* Regulation Panel Updates */
.guide-section {
    display: none;
}

.guide-section.active {
    display: block;
}

.guide-section h5 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.guide-section ul, .guide-section ol {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.5;
    margin: 10px 0 10px 20px;
}

.guide-section li {
    margin-bottom: 6px;
}

.guide-section strong {
    color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-tabs {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .map-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .map-status {
        margin-left: 0;
    }
    
    .overlay-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .compliance-actions {
        flex-direction: column;
    }
    
    #ns-prev-section, #ns-next-section {
        order: -1;
    }
}

/* Add to existing regulation panel styles */
#new-shipment-origin-section.with-regulation-panel .content-main {
    margin-right: 400px;
}

#new-shipment-origin-section .regulation-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

#new-shipment-origin-section .regulation-panel.active {
    right: 0;
}

/* Include all previous CSS styles from earlier implementation */
/* ... (all the previous CSS styles for cards, modals, etc.) ... */