/* Shipments Management Section Styles */
#shipments-management-section {
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
    position: relative;
}

#shipments-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;
}

/* Radio Button Styles */
.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #007bff;
    background: #007bff;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-text {
    font-weight: 500;
    color: #2c3e50;
}

/* Consent Code Section */
.consent-code-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.consent-details {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.consent-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f1f1;
}

.consent-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.consent-info-label {
    font-weight: 500;
    color: #6c757d;
}

.consent-info-value {
    font-weight: 600;
    color: #2c3e50;
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.document-upload-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.document-upload-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.document-header h6 {
    margin: 0;
    color: #2c3e50;
    font-size: 14px;
}

.document-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
}

.status-uploaded {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.document-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    background: #fafbfc;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.document-upload-area:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.document-upload-area i {
    font-size: 36px;
    color: #6c757d;
    margin-bottom: 10px;
}

.document-upload-area p {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.document-upload-area span {
    color: #6c757d;
    font-size: 12px;
}

.document-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Payment Summary */
.payment-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.fee-calculation-card, .payment-methods {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.fee-calculation-card h6, .payment-methods h6 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.fee-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.fee-item:last-child {
    border-bottom: none;
}

.fee-item.total {
    font-weight: 700;
    color: #28a745;
    font-size: 1.1em;
    border-top: 2px solid #dee2e6;
    padding-top: 12px;
    margin-top: 8px;
}

.bank-details {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.bank-info p {
    margin: 5px 0;
    font-size: 13px;
}

.wallet-balance {
    background: #e7f3ff;
    border: 1px solid #b3d7ff;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
}

.balance-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

/* Shipments List */
.shipments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.shipment-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.shipment-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shipment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.shipment-info h5 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.shipment-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #6c757d;
}

.shipment-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-draft {
    background: #e2e3e5;
    color: #383d41;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #cce7ff;
    color: #004085;
}

.status-shipped {
    background: #d1ecf1;
    color: #0c5460;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.shipment-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.shipment-detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 2px;
}

.detail-value {
    font-weight: 500;
    color: #2c3e50;
}

.shipment-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Tracker Styles */
.tracker-search {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.tracker-results {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.tracking-timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    border: 3px solid #dee2e6;
    border-radius: 50%;
    background: white;
    margin-right: 15px;
    position: relative;
    z-index: 2;
}

.timeline-item.active .timeline-marker {
    border-color: #28a745;
    background: #28a745;
}

.timeline-item.completed .timeline-marker {
    border-color: #28a745;
    background: #28a745;
}

.timeline-content {
    flex: 1;
}

.timeline-content h6 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.timeline-content p {
    margin: 0;
    color: #6c757d;
    font-size: 13px;
}

.timeline-date {
    font-size: 12px;
    color: #999;
}

.recent-shipments {
    margin-top: 30px;
}

.recent-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.recent-shipment-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recent-shipment-item:hover {
    border-color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .shipment-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .shipment-actions {
        flex-direction: column;
    }
    
    .shipment-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation for file upload */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.document-upload-area.uploading {
    animation: pulse 1s infinite;
    border-color: #007bff;
}

/* Badge Styles */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-info {
    background: #cce7ff;
    color: #004085;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}
