:root {
    --primary-blue: #3871e0;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --text: #ffffff;
    --secondary-text: #a0a0a0;
    --border: #333333;
}

body {
    color: var(--text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 40px;
    height: 40px;
}

.cart-icon {
    color: white;
    font-size: 24px;
}

h1, h2 {
    margin: 30px 0 20px;
    text-align: center;
}

.tracking-container {
    max-width: 800px;
    margin: 40px auto;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 12px 15px;
    background-color: #2d2d2d;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s;
    display: inline-block;
}

.btn:hover {
    background-color: #2c5cc5;
}

.result-container {
    margin-top: 30px;
    display: none;
}

.order-details {
    background-color: #252525;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
}

.order-details p {
    margin-bottom: 10px;
}

/* Order items container */
#order-item {
    display: flex;
    flex-direction: column;
}

/* Updated order item styling */
.order-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.order-item:last-of-type {
    border-bottom: 1px solid var(--border);
    margin-bottom: 15px;
    padding-bottom: 20px;
}

.order-item-image {
    flex: 0 0 80px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-item-image img {
    max-width: 100%;
    max-height: 80px;
    border-radius: 4px;
    object-fit: contain;
}

.order-item-details {
    flex: 1;
}

.order-item-details h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
}

.order-item-details p {
    margin: 5px 0;
    font-size: 14px;
}

/* Item options styling */
.item-options {
    margin-top: 12px;
    margin-bottom: 5px;
}

.item-options ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.item-options li {
    padding: 4px 0;
    color: var(--secondary-text);
    font-size: 14px;
    line-height: 1.4;
}

/* Order summary styling - now below items */
.order-summary {
    width: 100%;
    margin-top: 5px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.order-summary h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--secondary-text);
}

.summary-row.total {
    font-weight: bold;
    font-size: 16px;
    color: var(--text);
    border-top: 1px solid var(--border);
    padding-top: 8px;
    margin-top: 8px;
}

/* Add new styles for order total */
.order-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    text-align: right;
    font-weight: bold;
    font-size: 16px;
}

.order-status {
    margin-top: 30px;
}

.status-steps {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    position: relative;
}

.status-line {
    position: absolute;
    top: 15px;
    left: 60px;
    right: 60px;
    height: 4px;
    background-color: var(--border);
    z-index: 1;
}

.status-line-progress {
    height: 100%;
    background-color: var(--primary-blue);
    width: 0;
    transition: width 0.5s;
}

.status-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
}

.step-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.active .step-icon {
    background-color: var(--primary-blue);
}

.completed .step-icon {
    background-color: #2ecc71;
}

.step-label {
    text-align: center;
    font-size: 14px;
    color: var(--secondary-text);
}

.active .step-label {
    color: var(--text);
    font-weight: 500;
}

/* Tracking number styling */
.tracking-number-container {
    margin-top: 30px;
    text-align: center;
    background-color: #252525;
    border-radius: 6px;
    padding: 20px;
}

.tracking-number {
    font-family: monospace;
    background-color: #2d2d2d;
    padding: 10px 16px;
    border-radius: 4px;
    border: 1px solid var(--border);
    display: inline-block;
    margin: 15px 0;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

.shipping-updates {
    background-color: #252525;
    border-radius: 6px;
    padding: 20px;
    margin-top: 30px;
}

.shipping-updates h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Update item styling */
.update-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.update-item:last-child {
    border-bottom: none;
}

.update-date {
    font-size: 12px;
    color: var(--secondary-text);
    margin-bottom: 5px;
}

.update-status {
    font-weight: 500;
    margin-bottom: 3px;
}

.update-location {
    font-size: 14px;
    color: var(--secondary-text);
}

/* Add styling for no updates fallback */
.no-updates {
    padding: 15px 0;
    color: var(--secondary-text);
    text-align: center;
    font-style: italic;
}

.error-message {
    color: #e74c3c;
    margin-top: 10px;
    display: none;
}

/* Text color class */
.text_secret_solver_blue {
    color: var(--primary-blue);
    font-weight: bold;
}

/* Loading styles for button */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .tracking-container {
        padding: 20px;
    }
    
    .status-steps {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .status-step {
        flex-direction: row;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .step-icon {
        margin-bottom: 0;
        margin-right: 15px;
    }
    
    .status-line {
        top: 0;
        bottom: 0;
        left: 17px;
        right: auto;
        width: 4px;
        height: calc(100% - 40px);
    }
    
    .status-line-progress {
        width: 4px;
        height: 0;
    }
    
    /* Mobile-specific order item adjustments */
    .order-item {
        flex-direction: column;
        padding-bottom: 20px;
    }
    
    .order-item-image {
        margin-right: 0;
        margin-bottom: 15px;
        flex: 0 0 auto;
        align-items: flex-start;
    }
    
    .order-item-image img {
        max-height: 120px;
    }
    
    /* Mobile tracking number */
    .tracking-number {
        word-break: break-all;
        max-width: 100%;
    }
    
    /* Mobile order summary improvements */
    .order-summary {
        padding: 15px 10px 5px;
        margin-top: 15px;
    }
    
    .order-summary h4 {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .summary-row {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .summary-row.total {
        font-size: 15px;
    }
    
    .item-options li {
        font-size: 13px;
        padding: 3px 0;
    }
    
    /* Improve spacing on mobile */
    .order-details, 
    .shipping-updates {
        padding: 15px;
    }
    
    .order-details h3,
    .shipping-updates h3,
    .order-status h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
}