body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.header-section {
    background: radial-gradient(ellipse at center, #66BB6A 0%, #4CAF50 60%, #43A047 100%);
    color: white;
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
}

.company-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.progress-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.progress-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(100% / 8);
    right: calc(100% / 8);
    height: 4px;
    background: #e9ecef;
    z-index: 1;
}

.progress-line {
    position: absolute;
    top: 50%;
    height: 4px;
    background: linear-gradient(to right, #17a2b8 0%, #20c997 100%);
    z-index: 2;
    width: calc(100% - 70px);
}

.timeline-step {
    background: white;
    border: 2px solid #17a2b8;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    position: relative;
    font-size: 0.9rem;
}

.timeline-step.completed {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    border-color: #17a2b8;
    color: white;
}

.timeline-step.active {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    border-color: #20c997;
    color: white;
}

.timeline-step.pending {
    background: white;
    border-color: #17a2b8;
    color: #17a2b8;
    opacity: 0.4;
}

.summary-section {
    color: white;
    padding: 0;
    margin: 0;
}

.summary-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.summary-title .section-icon {
    color: white;
}

.summary-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-start;
}

.summary-badge {
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 0.4rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    text-align: center;
    color: #4CAF50;
}

.badge-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: #43A047;
    margin-bottom: 0.1rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-value {
    font-size: 0.8rem;
    font-weight: bold;
    color: #4CAF50;
}

/* Timeline Container */
.timeline-container {
    display: grid;
    grid-template-columns: 1fr 11fr;
    gap: 0;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 2rem;
    bottom: 2rem;
    left: calc(8.33% / 2);
    transform: translateX(-50%);
    width: 3px;
    background: linear-gradient(to bottom, #4CAF50 0%, #43A047 100%);
    z-index: 1;
    animation: growLine 2s ease-in-out;
}

@keyframes growLine {
    0% {
        height: 0;
        bottom: 50%;
    }
    100% {
        height: calc(100% - 4rem);
        bottom: 2rem;
    }
}

.timeline-column {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    height: 100%;
}

.timeline-dot.end {
    position: absolute;
    bottom: 2.5rem;
    background: #43A047;
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.3);
    animation: fadeInScale 1s ease-out 2.5s forwards, pulse 2s infinite 3.5s;
    opacity: 0;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(67, 160, 71, 0.1);
        transform: scale(1.1);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.3);
        transform: scale(1);
    }
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border: 2px solid #43A047;
    border-radius: 50%;
    z-index: 2;
    position: relative;
    margin-top: 0.5rem;
    animation: fadeInScale 1s ease-out;
}

.timeline-dot.start {
    background: #66BB6A;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
    animation-delay: 0.5s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}



.timeline-content {
    padding-left: 0;
}

.accordion-item {
    border: 1px solid #adb5bd;
    margin-bottom: 0.8rem;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.accordion-header .accordion-button {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 12px 12px 0 0 !important;
    color: #495057;
}

.accordion-button.collapsed {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
}

.accordion-button.collapsed .section-icon {
    color: #17a2b8;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    color: white;
    box-shadow: none;
}

.accordion-button:not(.collapsed) .section-icon {
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    padding: 1.2rem;
    background: white;
}

.route-title {
    font-weight: bold;
    color: #495057;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.detail-item {
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 6px;
    border-left: 3px solid #17a2b8;
}

.detail-label {
    font-weight: bold;
    color: #495057;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}

.detail-value {
    color: #212529;
    font-size: 0.95rem;
}

.section-icon {
    font-size: 1.5rem;
    margin-right: 0.8rem;
    color: #17a2b8;
}

.ship-icon {
    fill: white;
    transition: color 0.3s ease;
}

.accordion-button.collapsed .ship-icon {
    fill: #17a2b8;
}

.accordion-button:not(.collapsed) .ship-icon {
    fill: white;
}

.transport-section {
    /* background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%); */
    background: #f8f9fa;
    color: #495057;
    padding: 0.8rem;
    border-radius: 6px;
    margin: 0.8rem 0;
    font-size: 0.9rem;
    border-left: 3px solid rgb(23, 162, 184);
}

.dates-timeline {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 1rem;
    margin: 0.8rem 0;
    color: #495057;
    font-size: 0.9rem;
    text-align: left;
}

.dates-timeline h5 {
    color: #495057;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    text-align: left;
}

.dates-timeline strong {
    color: #212529;
}

.quality-test {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    padding: 0.8rem;
    margin: 0.8rem 0;
    font-size: 0.9rem;
}

.btn-quality {
    background: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.btn-quality:hover {
    background: #138496;
    border-color: #117a8b;
    color: white;
}

/* Map Styles */
.map-container {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

.map-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.map-caption {
    text-align: center;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #e9ecef;
    color: #495057;
    font-size: 0.9rem;
}

.btn-outline-primary {
    border-width: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

/* Summary Table Styles */
.summary-table {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #495057;
    text-align: left;
    font-size: 0.9rem;
}

/* Header Items */
.header-item {
    text-align: center;
    padding: 0.8rem;
}

.header-item.lotto-centered {
    background: #4aac4e;
    border-radius: 8px;
    padding: 1rem;
    margin: 0 auto;
    max-width: 300px;
}

.header-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.header-item.lotto-centered .header-label {
    color: rgba(255, 255, 255, 0.8);
}

.header-value {
    font-size: 1rem;
    font-weight: bold;
    color: #495057;
}

.header-item.lotto-centered .header-value {
    color: white;
    font-size: 1.2rem;
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
}

.grid-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.8rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.grid-item .section-icon {
    font-size: 1.2rem;
    color: #4aac4e;
    margin-bottom: 0.4rem;
    display: block;
    text-align: center;
    width: 100%;
}

.grid-label {
    font-size: 0.8rem;
    font-weight: bold;
    color: #495057;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.grid-value {
    font-size: 0.9rem;
    font-weight: bold;
    color: #212529;
}

/* Separator */
.separator {
    border: none;
    height: 2px;
    background: #4aac4e;
    margin: 1rem 0;
}

/* Footer Items */
.footer-item {
    text-align: center;
    padding: 0.8rem;
    background: #e8f5e8;
    border-radius: 6px;
    margin: 0 0.2rem;
}

.footer-label {
    font-size: 0.8rem;
    font-weight: bold;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.footer-value {
    font-size: 0.9rem;
    font-weight: bold;
    color: #495057;
}

@media (max-width: 768px) {
    .company-title {
        font-size: 2rem;
    }
    
    .progress-timeline {
        margin: 1rem 0;
        padding: 1rem 1.5rem;
    }
    
    .timeline-step {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .timeline-container {
        grid-template-columns: 30px 1fr;
    }
    
    .timeline-container::before {
        left: 15px;
        width: 2px;
    }
    
    .timeline-dot {
        width: 10px;
        height: 10px;
    }
    
    .timeline-dot.end {
        bottom: 2rem;
    }
    
    .summary-badges {
        gap: 0.5rem;
        justify-content: flex-start;
    }
    
    .summary-badge {
        min-width: 70px;
        padding: 0.4rem 0.8rem;
    }
    
    .badge-label {
        font-size: 0.7rem;
    }
    
    .badge-value {
        font-size: 0.85rem;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
}
