/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Poppins", sans-serif;
    background: linear-gradient(135deg, #e8fdf5 0%, #f0fef8 100%);
    color: #2d3436;
    min-height: 100vh;
}

/* Navbar Styling */
#nav {
    height: 80px;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0 auto;
    padding: 0;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
}

#nav li.name {
    padding-right: 300px;
    font-weight: 700;
    font-size: 28px;
    color: #27ae60;
}

#nav a {
    text-decoration: none;
    font-size: 15px;
    color: #2d3436;
    transition: color 0.3s ease;
    font-weight: 500;
}

#nav a:hover {
    color: #27ae60;
}

/* Container Styling */
.container {
    max-width: 900px;
    margin: 130px auto 50px auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
    animation: slideDown 0.6s ease-out;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #1e824c;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.hero-content h1 i {
    font-size: 50px;
    color: #27ae60;
}

.hero-content p {
    font-size: 18px;
    color: #555;
    font-weight: 500;
}

/* Search Section */
.search-section {
    margin-bottom: 50px;
    animation: slideUp 0.6s ease-out 0.1s both;
}

.search-box {
    display: flex;
    justify-content: center;
}

.input-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(39, 174, 95, 0.15);
    padding: 0 20px;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    box-shadow: 0 12px 40px rgba(39, 174, 95, 0.25);
    transform: translateY(-2px);
}

.input-wrapper i {
    color: #27ae60;
    font-size: 20px;
    margin-right: 12px;
}

.input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 0;
    font-size: 16px;
    color: #2d3436;
    background: transparent;
    font-weight: 500;
}

.input-wrapper input::placeholder {
    color: #999;
}

.btn-search {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
    margin-left: 10px;
}

.btn-search:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(39, 174, 95, 0.3);
}

.btn-search:active {
    transform: scale(0.98);
}

/* Results Section */
.results-section {
    animation: fadeIn 0.6s ease-out;
}

/* Order Card */
.order-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

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

.tracking-id-box {
    flex: 1;
}

.tracking-id-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.tracking-id-value {
    font-size: 28px;
    font-weight: 800;
    color: #27ae60;
    font-family: "Courier New", monospace;
    letter-spacing: 1px;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

/* Order Details Grid */
.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid #27ae60;
}

.info-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    color: #1e824c;
    font-weight: 600;
    word-break: break-word;
}

/* Progress Bar */
.progress-section {
    margin-bottom: 40px;
}

.progress-label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 15px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(39, 174, 95, 0.3);
}

/* Timeline/Checkpoints */
.timeline-section {
    margin-top: 40px;
}

.timeline-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-title i {
    color: #27ae60;
    font-size: 20px;
}

.checkpoints {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.checkpoints::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #27ae60, #ccc);
}

.checkpoint {
    position: relative;
    margin-bottom: 30px;
    padding-left: 80px;
}

.checkpoint-icon {
    position: absolute;
    left: 0;
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.checkpoint-icon i {
    color: #27ae60;
    font-size: 24px;
}

.checkpoint-content {
    background: #f9f9f9;
    padding: 16px 18px;
    border-radius: 12px;
    border-left: 3px solid #27ae60;
}

.checkpoint-time {
    font-size: 13px;
    font-weight: 700;
    color: #27ae60;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.checkpoint-status {
    font-size: 15px;
    font-weight: 600;
    color: #1e824c;
    margin-bottom: 5px;
}

.checkpoint-location {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkpoint-location i {
    color: #27ae60;
}

/* Error Message */
.error-message {
    background: #ffeaea;
    border: 2px solid #ff6b6b;
    color: #c92a2a;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    animation: shake 0.5s ease;
}

.error-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin-top: 120px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .order-info-grid {
        grid-template-columns: 1fr;
    }

    .order-card {
        padding: 20px;
    }

    .tracking-id-value {
        font-size: 20px;
    }

    .checkpoints::before {
        left: 20px;
    }

    .checkpoint-icon {
        width: 45px;
        height: 45px;
    }

    .checkpoint {
        padding-left: 65px;
    }

    #nav li.name {
        padding-right: 50px;
        font-size: 20px;
    }

    #nav ul {
        gap: 15px;
    }

    #nav a {
        font-size: 13px;
    }
}