* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: open sans, arial;
}

/* ----------header--------- */
header{
    padding: 0px 50px;
    margin-top: 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    width: 100%;
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.cart-container{
    position: relative;
    display: inline-block;
}

.cart-icon{
    font-size: 30px;
    cursor: pointer;
}

.cart-count2 {
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: red;
    color: white;
}

.mangiona-logo{
  width: 50px;
  height: 50px;
}

.mangiona-logo img{
    width: 100%;
    height: 100%;
    margin-left: 20px;
}

.mangiona-nav-links ul{
    list-style: none;
    display: flex;
    gap: 5px;
}

.mangiona-nav-links li{
    display: inline-block;
    padding: 10px 15px;
}

.mangiona-nav-links a{
    text-decoration: none;
    color: black;
    background-color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: 0.3s;
    white-space: nowrap;
}

.mangiona-nav-links a.active{
    background-color: #f02b01;
    color: #fff;
}

.mangiona-order{
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: center;
}

.order-btn{
    background-color: #f02b01;
    color: #fff;
    padding: 7px 12px;
    border-radius: 8px;
    border: none;
    width: auto;
    height: auto;
    font-size: 12px;
}

.order-btn:hover{
    background-color: #df330c;
}
.order-btn:active{
    background-color: #772311;
}

.nav-username {
    display: flex !important;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.nav-username span {
    font-size: 14px;
    color: black;
}

.logout-btn {
    padding: 8px 14px !important;
    font-size: 12px;
    font-weight: 500;
}

.tracking-map{
    margin-top: 40px;
    margin-bottom: 40px;
}

.tracking-map h3{
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

#map{
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Track Container */
.track-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 50px;
}

/* Track Header */
.track-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.track-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.order-id {
    text-align: right;
}

.order-id p {
    margin: 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.order-id .id-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-top: 5px;
}

.order-id .id-value span {
    color: #f02b01;
}

/* Timeline Section */
.timeline-section {
    margin-bottom: 40px;
    background: #fafafa;
    padding: 30px;
    border-radius: 12px;
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.timeline-item {
    flex: 1;
    position: relative;
    z-index: 1;
    text-align: center;
}

.timeline-marker {
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    border: 3px solid #fff;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-marker.completed {
    background: #f02b01;
    border-color: #fff;
    color: white;
}

.timeline-marker.pending {
    background: #f02b01;
    border-color: #fff;
    animation: pulse 2s infinite;
}

.timeline-pulse {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.timeline-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.timeline-content p {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.timeline-content span {
    font-size: 12px;
    color: #999;
    display: block;
}

/* Order Summary */
.order-summary {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    margin-top: 40px;
}

.order-summary h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f02b01;
    display: inline-block;
}

.summary-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.summary-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #f02b01;
}

.summary-item label {
    display: block;
    font-size: 12px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.summary-item p {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .track-container {
        padding: 20px 20px;
    }

    .track-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .order-id {
        text-align: left;
    }

    .track-header h2 {
        font-size: 24px;
    }

    .timeline {
        flex-direction: column;
        gap: 30px;
    }

    .timeline::before {
        left: 20px;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
    }

    .timeline-item {
        text-align: left;
        padding-left: 50px;
    }

    .timeline-marker {
        position: absolute;
        left: 0;
        margin: 0;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
    }

    .summary-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    #map {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .track-container {
        padding: 15px 15px;
    }

    .track-header h2 {
        font-size: 20px;
    }

    .order-id p {
        font-size: 12px;
    }

    .order-id .id-value {
        font-size: 16px;
    }

    .timeline-section {
        padding: 20px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-marker {
        width: 35px;
        height: 35px;
    }

    .order-summary {
        padding: 20px;
    }

    #map {
        height: 250px;
    }
}