/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #363636;
    background: #ffffff;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
}

.header-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    color: #333b69;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo.brand img {
    height: 64px;
    width: auto;
    display: inline-block;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
}

.brand-fallback {
    display: none;
    font-weight: 800;
}

.tagline {
    font-size: 1.2rem;
    color: #6b7280;
    font-weight: 300;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Tracking section */
.tracking-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.tracking-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 30px;
}

.tracking-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

#trackingNumber {
    flex: 1;
    padding: 18px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

#trackingNumber:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.track-btn {
    padding: 18px 32px;
    background: linear-gradient(135deg, #ef6d34 0%, #333b69 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.track-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 109, 52, 0.35);
}

.track-btn:active {
    transform: translateY(0);
}

.example-numbers {
    text-align: left;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.example-numbers p {
    color: #64748b;
    font-weight: 500;
    margin-bottom: 15px;
}

.sample-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sample-number {
    background: #ef6d34;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sample-number:hover {
    background: #d95f2e;
    transform: translateY(-1px);
}

/* Results section */
.results-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shipment-info {
    margin-bottom: 40px;
}

.shipment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.shipment-header h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
}

.tracking-id {
    background: #f1f5f9;
    color: #475569;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    display: none!important;
}

.shipment-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}

.status-badge.processing {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.in-transit {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.delivered {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.delayed {
    background: #fee2e2;
    color: #dc2626;
}

.delivery-info {
    text-align: right;
}

.delivery-date {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
}

/* Shipment Details Table - Enhanced Design */
.shipment-details-table {
    margin-bottom: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.shipment-details-table h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin: 0;
    padding: 20px 25px;
    background: linear-gradient(135deg, #ef6d34 0%, #333b69 100%);
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.details-table {
    background: #ffffff;
    padding: 0;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 18px 25px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    align-items: center;
    min-height: 60px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.detail-label {
    font-weight: 700;
    color: #475569;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-label::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #ef6d34;
    border-radius: 50%;
    flex-shrink: 0;
}

.detail-value {
    color: #1e293b;
    font-weight: 600;
    font-size: 1rem;
    padding-left: 15px;
    border-left: 2px solid #e2e8f0;
    margin-left: 10px;
}

.detail-value:empty::after {
    content: 'Not Available';
    color: #94a3b8;
    font-style: italic;
    font-weight: 400;
}

/* Forwarding number link styling */
.detail-value a {
    color: #ef6d34 !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: color 0.3s ease;
}

.detail-value a:hover {
    color: #d95f2e !important;
    text-decoration: underline !important;
}

/* Special styling for important fields */
.detail-row:nth-child(1) .detail-value,
.detail-row:nth-child(3) .detail-value,
.detail-row:nth-child(5) .detail-value {
    color: #333b69;
    font-weight: 700;
    font-size: 1.05rem;
}

.detail-row:nth-child(9) .detail-value {
    color: #10b981;
    font-weight: 700;
    font-size: 1.05rem;
}

.detail-row:nth-child(10) .detail-value,
.detail-row:nth-child(11) .detail-value {
    color: #059669;
    font-weight: 600;
}

/* Shipment Documents Section */
.shipment-documents {
    margin-top: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.shipment-documents h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin: 0;
    padding: 20px 25px;
    background: linear-gradient(135deg, #ef6d34 0%, #333b69 100%);
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.shipment-documents h4 i {
    margin-right: 10px;
}

.document-list {
    padding: 20px 25px;
    background: #ffffff;
}

.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    margin-bottom: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.document-item:hover {
    background: #f1f5f9;
    border-color: #ef6d34;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(239, 109, 52, 0.15);
}

.document-item:last-child {
    margin-bottom: 0;
}

.document-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.document-icon {
    color: #ef4444;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.document-details {
    flex: 1;
}

.document-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 4px;
}

.document-meta {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    gap: 15px;
    align-items: center;
}

.document-size {
    font-weight: 500;
}

.document-date {
    color: #94a3b8;
}

.document-actions {
    display: flex;
    gap: 10px;
}

.document-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.document-btn.download {
    background: linear-gradient(135deg, #ef6d34, #d95f2e);
    color: white;
}

.document-btn.download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 109, 52, 0.3);
}

.document-btn.view {
    background: #3b82f6;
    color: white;
}

.document-btn.view:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.no-documents {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.no-documents i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-documents p {
    font-size: 1rem;
    font-weight: 500;
}

/* Error section */
.error-section {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: slideUp 0.5s ease-out;
    margin-bottom: 30px;
}

.error-content i {
    font-size: 4rem;
    color: #f59e0b;
    margin-bottom: 20px;
}

.error-content h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 15px;
}

.error-content p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.not-found-content i {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.not-found-content h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.not-found-content p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.try-again-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.try-again-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.8);
}
.d-none{
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        padding: 30px 20px;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .tracking-section {
        padding: 30px 20px;
    }
    
    .tracking-section h2 {
        font-size: 2rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .track-btn {
        justify-content: center;
    }
    
    .shipment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .shipment-status {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .delivery-info {
        text-align: left;
    }
    
    .shipment-details-table h4 {
        font-size: 1.4rem;
        padding: 18px 20px;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
        padding: 15px 20px;
        gap: 8px;
    }
    
    .detail-label {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    
    .detail-value {
        font-size: 0.9rem;
        padding-left: 0;
        border-left: none;
        margin-left: 0;
        border-top: 1px solid #e2e8f0;
        padding-top: 8px;
    }
    
    .results-section {
        padding: 30px 20px;
    }
    
    .not-found-section {
        padding: 40px 20px;
    }
    
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .tracking-section h2 {
        font-size: 1.8rem;
    }
    
    .sample-numbers {
        flex-direction: column;
        align-items: center;
    }
    
    .shipment-details {
        gap: 15px;
    }
    
    .shipment-details-table h4 {
        font-size: 1.2rem;
        padding: 15px 18px;
    }
    
    .detail-row {
        padding: 12px 18px;
        min-height: 50px;
    }
    
    .detail-label {
        font-size: 0.8rem;
    }
    
    .detail-value {
        font-size: 0.85rem;
        padding-top: 6px;
    }
    
    .shipment-documents h4 {
        font-size: 1.3rem;
        padding: 15px 18px;
    }
    
    .document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
    }
    
    .document-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .document-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .document-meta {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

}
