/* Frontend Styles */
.ds-delivery-system,
.ds-order-tracker {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ds-container {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ds-step {
    display: none;
}

.ds-step.active {
    display: block;
}

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

.ds-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.ds-input:focus {
    outline: none;
    border-color: #0073aa;
}

.ds-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.ds-btn-primary {
    background-color: #0073aa;
    color: white;
}

.ds-btn-primary:hover {
    background-color: #006799;
    transform: translateY(-1px);
}

.ds-btn-success {
    background-color: #46b450;
    color: white;
}

.ds-btn-success:hover {
    background-color: #3fa34d;
    transform: translateY(-1px);
}

.ds-btn-secondary {
    background-color: #f1f1f1;
    color: #333;
}

.ds-btn-secondary:hover {
    background-color: #e5e5e5;
}

.ds-btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.ds-stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ds-store-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.ds-store-card:hover {
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ds-store-card h4 {
    margin-top: 0;
    color: #0073aa;
}

.ds-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ds-product-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.ds-product-card:hover {
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ds-order-summary {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.ds-order-summary h4 {
    margin-top: 0;
    color: #0073aa;
}

.ds-order-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ds-order-summary li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.ds-order-summary li:last-child {
    border-bottom: none;
    font-weight: bold;
}

.ds-checkout-form {
    max-width: 500px;
    margin: 0 auto;
}

.ds-confirmation {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ds-confirmation h4 {
    color: #46b450;
    margin-bottom: 20px;
}

.ds-status-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    position: relative;
}

.ds-status-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.ds-status-step {
    text-align: center;
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 10px;
}

.ds-status-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 20px;
    transition: all 0.3s ease;
}

.ds-status-step.completed .ds-status-icon {
    background: #46b450;
    color: white;
}

.ds-status-step.active .ds-status-icon {
    background: #0073aa;
    color: white;
}

.ds-status-text {
    font-size: 12px;
    color: #666;
}

.ds-status-display {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.ds-driver-info {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.ds-suggestions {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.ds-suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
}

.ds-suggestion-item:hover {
    background-color: #f8f9fa;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .ds-stores-grid,
    .ds-products-grid {
        grid-template-columns: 1fr;
    }
    
    .ds-status-timeline {
        flex-direction: column;
        gap: 20px;
    }
    
    .ds-status-timeline::before {
        display: none;
    }
    
    .ds-container {
        padding: 20px;
    }
}

/* Loading States */
.ds-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: ds-spin 1s linear infinite;
}

@keyframes ds-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.ds-error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 12px;
    margin: 10px 0;
}

/* Success States */
.ds-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 12px;
    margin: 10px 0;
}

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

.ds-step.active {
    animation: ds-fadeIn 0.5s ease-out;
}