* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: #041633;
    color: #FFFFFF;
    line-height: 1.6;
}

.header {
    background-color: #1a1a1a;
    padding: 20px 30px;
    border-bottom: 1px solid #00D0FF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.shipment-info {
    text-align: right;
}

.subscription-id {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.tracking-url-section {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

.tracking-url {
    font-size: 12px;
    color: #B0B0B0;
    font-family: 'Courier New', monospace;
    background-color: #041633;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #000;
}

.copy-url-btn {
    background-color: #0a2a4a;
    color: #00D0FF;
    border: 1px solid #00D0FF;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    font-family: 'Rajdhani', sans-serif;
}

.copy-url-btn:hover {
    background-color: #00D0FF;
    color: #041633;
}

.copy-url-btn i {
    font-size: 10px;
}

.main-content {
    padding: 30px;
}

.content-layout {
    display: flex;
    gap: 30px;
    width: 100%;
}

.left-panel {
    flex: 1;
}

.subscription-details {
    background-color: #041633;
    border: 1px solid #00D0FF;
    margin-bottom: 30px;
    overflow: hidden;
}

.details-header {
    background-color: #00D0FF;
    color: #041633;
    padding: 15px 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
}

.details-header i {
    margin-right: 8px;
    font-size: 16px;
}

.details-content {
    padding: 0;
    background-color: #0a2a4a;
}

.details-row {
    display: flex;
    width: 100%;
    padding: 20px;
    background-color: #0a2a4a;
}

.detail-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding-right: 20px;
}

.detail-item:last-child {
    padding-right: 0;
}

.detail-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #00D0FF;
    margin-right: 12px;
    flex-shrink: 0;
    border-radius: 0;
}

.detail-icon i {
    font-size: 14px;
    color: #041633;
}

.detail-info {
    flex: 1;
    min-width: 0;
}

.detail-label {
    color: #00D0FF;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-value {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.detail-value.status-active {
    color: #00D1B2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-container {
    padding: 25px;
    background-color: #0a2a4a;
}

.timeline-track {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 30px 0;
    width: 100%;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 50px;
    left: calc(100% / 14);
    right: calc(100% / 14);
    height: 2px;
    background: linear-gradient(to right, 
        #00D1B2 0%, 
        #00D1B2 66.66%, 
        #FFD740 66.66%, 
        #FFD740 83.33%, 
        #B0B0B0 83.33%, 
        #B0B0B0 100%);
    z-index: 1;
}

.timeline-milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
    min-width: 0;
}

.milestone-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    background-color: #00D1B2;
    border-radius: 0;
}

.milestone-icon i {
    font-size: 16px;
    color: #FFFFFF;
}

.timeline-milestone.in-progress .milestone-icon {
    background-color: #FFD740;
}

.timeline-milestone.in-progress .milestone-icon i {
    color: #041633;
}

.timeline-milestone.pending .milestone-icon {
    background-color: #1a1a1a;
    border: 2px solid #B0B0B0;
}

.timeline-milestone.pending .milestone-icon i {
    color: #B0B0B0;
}

.milestone-content {
    text-align: center;
    width: 100%;
}

.milestone-title {
    font-size: 12px;
    font-weight: 600;
    color: #00D0FF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.milestone-location {
    font-size: 11px;
    color: #B0B0B0;
    margin-bottom: 6px;
    line-height: 1.3;
}

.milestone-tag {
    background-color: #F4A300;
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 600;
    padding: 3px 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    display: inline-block;
}

.milestone-date {
    font-size: 11px;
    color: #B0B0B0;
    margin-bottom: 8px;
}

.milestone-status {
    margin-top: 10px;
}

.milestone-status i {
    font-size: 14px;
    color: #00D1B2;
}

.timeline-milestone.in-progress .milestone-status i {
    color: #FFD740;
}

.timeline-milestone.pending .milestone-status i {
    color: #B0B0B0;
}

.milestone-info {
    background-color: #1a1a1a;
    border: 1px solid #B0B0B0;
    padding: 8px;
    margin-top: 8px;
    border-radius: 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #B0B0B0;
    margin-bottom: 4px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: #00D0FF;
    font-size: 10px;
    width: 12px;
}

.containers-section {
    background-color: #041633;
    border: 1px solid #00D0FF;
    overflow: hidden;
}

.containers-header {
    background-color: #00D0FF;
    padding: 15px 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #041633;
}

.containers-header i {
    margin-right: 8px;
    font-size: 16px;
}

.containers-table {
    width: 100%;
    border-collapse: collapse;
}

.containers-table th {
    background-color: #333;
    color: #FFFFFF;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border-bottom: 1px solid #FFFFFF;
    border-right: 1px solid #FFFFFF;
}

.containers-table th:last-child {
    border-right: none;
}

.containers-table td {
    padding: 15px 20px;
    border-right: 1px solid #FFFFFF;
    vertical-align: middle;
    color: #FFFFFF;
    height: 80px;
}

.containers-table td:last-child {
    border-right: none;
}

.containers-table tr:nth-child(even) {
    background-color: #0a2a4a;
}

.containers-table tr:nth-child(odd) {
    background-color: #041633;
}

.containers-table tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.containers-table tr:hover {
    background-color: #0588CE !important;
}

.containers-table tbody tr::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFFFFF;
    font-size: 12px;
    opacity: 0.8;
}

.containers-table tbody tr:hover::after {
    opacity: 1;
}

.container-number {
    color: #00D0FF;
    font-weight: 600;
}

.container-type {
    background-color: #333;
    color: #FFFFFF;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
}

.port-info {
    color: #DADADA;
    font-size: 14px;
}

.eta-info {
    color: #FFFFFF;
    font-weight: 600;
}

.status-badge {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-arrived {
    background-color: #FFD740;
    color: #041633;
}

.status-transit {
    background-color: #00D1B2;
    color: #FFFFFF;
}

.status-terminal {
    background-color: #0588CE;
    color: #FFFFFF;
}



.tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
    height: 100%;
    align-content: center;
}

.tag {
    background-color: #666;
    color: #FFFFFF;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-style: normal;
}

/* Footer Styles */
.footer {
    background-color: #1a1a1a;
    padding: 20px 30px;
    border-top: 1px solid #00D0FF;
    margin-top: 10px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.website-link {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.website-link a {
    color: #00D0FF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.website-link a:hover {
    color: #0588CE;
}

/* Agents Section Styles */
.agents-section {
    background-color: #041633;
    border: 1px solid #00D0FF;
    overflow: hidden;
}

.agents-header {
    background-color: #00D0FF;
    padding: 15px 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #041633;
}

.agents-header i {
    margin-right: 8px;
    font-size: 16px;
}

.agent-card {
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
    border-bottom: 1px solid #000;
    background-color: #0a2a4a;
}

.agent-card:last-child {
    border-bottom: none;
}

.agent-content {
    display: flex;
    align-items: flex-start;
}

.agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    overflow: hidden;
}

.agent-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.human-agent .agent-avatar {
    /* Removed background color to allow transparent background */
}

.human-agent {
    background-color: #0d3a5a !important;
}

.agent-info {
    flex: 1;
    min-width: 0;
}

.agent-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
}

.agent-btn {
    padding: 8px 12px;
    font-size: 9px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.request-btn {
    background-color: #0a2a4a;
    color: #00D1B2;
    border-color: #00D1B2;
}

.request-btn:hover {
    background-color: #00D1B2;
    color: #041633;
}

.hot-btn {
    background-color: #0a2a4a;
    color: #FF6B35;
    border-color: #FF6B35;
}

.hot-btn:hover {
    background-color: #FF6B35;
    color: #FFFFFF;
}

.agent-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.agent-name {
    font-weight: 700;
    color: #FFFFFF;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agent-title {
    color: #00D0FF;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agent-status {
    color: #DADADA;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
}

@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }

    .content-layout {
        flex-direction: column;
        gap: 20px;
    }

    .left-panel {
        max-width: none;
    }

    .containers-table {
        font-size: 12px;
    }

    .containers-table th,
    .containers-table td {
        padding: 10px 5px;
    }

    .timeline-track {
        padding: 15px 0;
        overflow-x: auto;
    }
    
    .timeline-milestone {
        min-width: 100px;
        flex-shrink: 0;
    }
    
    .milestone-title {
        font-size: 12px;
    }
    
    .milestone-location {
        font-size: 11px;
    }
    
    .milestone-date {
        font-size: 11px;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .agent-card {
        padding: 12px 15px;
    }

    .agent-avatar {
        width: 35px;
        height: 35px;
        margin-right: 12px;
    }

    .agent-header {
        gap: 8px;
        margin-bottom: 6px;
    }

    .agent-name {
        font-size: 13px;
    }

    .agent-title {
        font-size: 10px;
    }

    .agent-status {
        font-size: 11px;
    }

    .agent-buttons {
        gap: 6px;
        margin-top: 8px;
    }

    .agent-btn {
        padding: 6px 8px;
        font-size: 9px;
    }

    .details-row {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    .detail-item {
        padding-right: 0;
        padding-bottom: 15px;
        border-bottom: 1px solid #333;
    }

    .detail-item:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

    .detail-icon {
        width: 28px;
        height: 28px;
        margin-right: 10px;
    }

    .detail-icon i {
        font-size: 12px;
    }

    .detail-label {
        font-size: 10px;
    }

    .detail-value {
        font-size: 12px;
    }
}

/* Live Track Page Styles */
.back-button-container {
    margin-bottom: 20px;
}

.back-btn {
    background-color: #0a2a4a;
    color: #00D0FF;
    border: 1px solid #00D0FF;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    font-family: 'Rajdhani', sans-serif;
}

.back-btn:hover {
    background-color: #00D0FF;
    color: #041633;
}

.back-btn i {
    font-size: 14px;
}

.live-track-section {
    background-color: #0a2a4a;
    border: 1px solid #00D0FF;
    margin-top: 20px;
}

.live-track-header {
    background-color: #00D0FF;
    color: #041633;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-track-header i {
    font-size: 18px;
}

.map-container {
    position: relative;
    height: 500px;
    background-color: #041633;
}

#map {
    width: 100%;
    height: 100%;
}

.map-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(10, 42, 74, 0.95);
    border: 1px solid #00D0FF;
    padding: 15px;
    z-index: 1000;
    min-width: 200px;
}

.map-info {
    margin-bottom: 15px;
}

.map-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.info-label {
    color: #B0B0B0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
}

.map-legend {
    padding: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
}

.legend-dot.arrived {
    background-color: #FFD740;
}

.legend-dot.transit {
    background-color: #00D1B2;
}

.legend-dot.terminal {
    background-color: #0588CE;
}

.legend-text {
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.container-marker {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    cursor: pointer;
}

.container-marker.arrived {
    background-color: #FFD740;
}

.container-marker.transit {
    background-color: #00D1B2;
}

.container-marker.terminal {
    background-color: #0588CE;
}

.marker-pulse {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(0, 208, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.popup-content {
    color: #041633;
    font-family: 'Rajdhani', sans-serif;
}

.popup-content h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-content p {
    margin: 4px 0;
    font-size: 12px;
    font-weight: 500;
}

/* Mobile responsive for Live Track */
@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }
    
    .map-controls {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 15px;
        min-width: auto;
    }
    
    .back-btn {
        padding: 10px 16px;
        font-size: 11px;
    }
}

/* Full width utility class */
.full-width {
    width: 100% !important;
} 