* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.header p {
    opacity: 0.9;
    font-size: 1.1em;
}

.tracking-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
}

.btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.result-container {
    padding: 40px;
}

.order-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 5px solid #3498db;
}

.order-info h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-weight: 600;
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.info-value {
    color: #2c3e50;
    font-weight: 500;
}

.progress-tracker {
    margin: 30px 0;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e0e0e0;
    z-index: 1;
}

.progress-bar {
    position: absolute;
    top: 20px;
    left: 0;
    height: 3px;
    background: #27ae60;
    z-index: 2;
    transition: width 0.5s;
}

.step {
    text-align: center;
    position: relative;
    z-index: 3;
    flex: 1;
}

.step-icon {
    width: 40px;
    height: 40px;
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.2em;
    transition: all 0.3s;
}

.step.active .step-icon {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

.step-label {
    font-size: 0.9em;
    color: #7f8c8d;
    font-weight: 500;
}

.step.active .step-label {
    color: #27ae60;
    font-weight: 600;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.products-table th,
.products-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.products-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.status-proses {
    background: #fff3cd;
    color: #856404;
}

.status-selesai {
    background: #d1edff;
    color: #004085;
}

.status-lunas {
    background: #d4edda;
    color: #155724;
}

.status-dp {
    background: #fff3cd;
    color: #856404;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.help-text {
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
    font-size: 0.9em;
}

.back-btn {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    margin-top: 15px;
}

.back-btn:hover {
    box-shadow: 0 5px 15px rgba(149, 165, 166, 0.4);
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .tracking-form,
    .result-container {
        padding: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-steps {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .step {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .step-icon {
        margin: 0 15px 0 0;
        flex-shrink: 0;
    }
}