/* Article 9 Specific Styles */
.payment-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.payment-notice i {
    color: #856404;
    margin-right: 0.5rem;
}

.payment-notice span {
    color: #856404;
    font-weight: 600;
}

.year-selection {
    margin-bottom: 1rem;
}

.year-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.year-tab {
    padding: 0.75rem 1.5rem;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-tab.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.year-tab:hover:not(.active) {
    background: #f8f9fa;
}

.year-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cutoff-notice {
    color: #dc3545;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.species-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Commodities & Tags */
.commodities-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.commodity-tag {
    background: #e9ecef;
    padding: 0.375rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.commodity-tag .remove-tag {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    font-size: 0.75rem;
}

/* Importers & Supply Chain Lists */
.importers-list,
.suppliers-list,
.customers-list,
.plots-list {
    margin-bottom: 1rem;
}

.list-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item.deforestation-alert {
    border-left: 4px solid #dc3545;
    background: #f8d7da;
}

.list-item-content {
    flex: 1;
}

.list-item-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.list-item-details span {
    font-size: 0.875rem;
    color: #6c757d;
}

.list-item-details .status {
    font-weight: 600;
}

.list-item-details .status.deforestation_detected {
    color: #dc3545;
}

.list-item-details .status.verified {
    color: #28a745;
}

.list-item-actions {
    display: flex;
    gap: 0.5rem;
}

.plot-comments {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #495057;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
}

/* Mapping Section */
.mapping-section {
    margin-bottom: 1.5rem;
}

.mapping-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.plot-size-info {
    color: #6c757d;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-container {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.fra-map {
    height: 400px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    color: #6c757d;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Payment Section */
.payment-calculator {
    margin-bottom: 1.5rem;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.payment-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #007bff;
}

.payment-options {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    margin: 0;
}

/* Files Preview */
.files-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.file-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.file-preview-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-preview-actions {
    display: flex;
    gap: 0.5rem;
}

/* Comments Section */
.comments-section {
    margin-top: 1rem;
}

/* Verification Sections */
.verification-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.verification-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.verification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Requirement List in Regulation Panel */
.requirement-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.requirement-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #28a745;
}

.important-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
}

.important-notice h5 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.important-notice ul {
    margin: 0;
    padding-left: 1.5rem;
}

.important-notice li {
    color: #856404;
    margin-bottom: 0.25rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h4 {
    margin: 0;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.modal-body {
    padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .species-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-options {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mapping-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .year-tabs {
        justify-content: center;
    }
    
    .year-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .list-item-actions {
        align-self: flex-end;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
}

@media (max-width: 480px) {
    .list-item-details {
        flex-direction: column;
        gap: 0.25rem;
    }
}