/* Consent Management Section Styles */
#consent-management-section {
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
    position: relative;
}

#consent-management-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;
}

/* Toggle Switch */
.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
}

.toggle-input {
    display: none;
}

.toggle-slider {
    width: 50px;
    height: 26px;
    background: #dee2e6;
    border-radius: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
}

.toggle-input:checked + .toggle-slider {
    background: #28a745;
}

.toggle-input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-text {
    font-weight: 600;
    color: #2c3e50;
}

/* Forests List */
.forests-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.forest-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.forest-item:hover {
    border-color: #007bff;
}

.forest-item.selected {
    border-color: #28a745;
    background: #f8fff9;
}

.forest-item input[type="checkbox"] {
    margin-right: 10px;
}

.forest-info h5 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.forest-info p {
    margin: 0;
    color: #6c757d;
    font-size: 13px;
}

/* Fee Breakdown */
.fee-breakdown {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.fee-item:last-child {
    border-bottom: none;
}

.fee-item.total {
    font-weight: 600;
    color: #2c3e50;
    border-top: 2px solid #dee2e6;
    padding-top: 12px;
    margin-top: 8px;
}

.fee-item.grand-total {
    font-weight: 700;
    color: #28a745;
    font-size: 1.1em;
    border-top: 2px solid #28a745;
}

/* Applications List */
.applications-list, .consents-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.application-card, .consent-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.application-card:hover, .consent-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.application-header, .consent-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.application-info h5, .consent-info h5 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.application-meta, .consent-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #6c757d;
}

.application-status, .consent-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-active {
    background: #d1ecf1;
    color: #0c5460;
}

.status-used {
    background: #e2e3e5;
    color: #383d41;
}

.status-expired {
    background: #f8d7da;
    color: #721c24;
}

.application-details, .consent-details {
    margin-top: 15px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 2px;
}

.detail-value {
    font-weight: 500;
    color: #2c3e50;
}

.application-actions, .consent-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Product and Container Items */
.product-item, .container-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.product-header, .container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.product-header h5, .container-header h5 {
    margin: 0;
    color: #2c3e50;
}

.remove-product, .remove-container {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Available Forests */
.available-forests {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.available-forest-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.available-forest-card:hover {
    border-color: #007bff;
}

.available-forest-card.selected {
    border-color: #28a745;
    background: #f8fff9;
}

.forest-owner {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.forest-fee {
    font-weight: 600;
    color: #28a745;
    margin-top: 8px;
}

/* Fee Calculation Card */
.fee-breakdown-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.fee-breakdown-card h6 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

/* Terms Section */
.terms-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 10px;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
}

/* Badges */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary {
    background: #007bff;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .application-header, .consent-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .application-actions, .consent-actions {
        flex-direction: column;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .forests-list, .available-forests {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Animation for section transitions */
.section-content {
    display: none;
}

.section-content.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
 