/* Main Container */
.cod-tracker-container {
    max-width: 600px;
    margin: 0 auto 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Combined Container */
.cod-combined-container {
    max-width: 600px;
    margin: 0 auto;
}

.cod-combined-container .cod-tracker-container,
.cod-combined-container .cod-board-container {
    margin: 0 auto 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.cod-combined-container .cod-board-container {
    margin-bottom: 0;
}

/* Header Styles */
.cod-tracker-header,
.cod-board-header {
    background: linear-gradient(135deg, rgb(249, 137, 19) 0%, rgb(219, 117, 0) 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.cod-tracker-header h3,
.cod-board-title {
    margin: 10px 0 0;
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
}

.cod-tracker-subtitle {
    margin: 10px 0 0;
    opacity: 0.9;
    font-size: 14px;
    color: #ffffff;
}

/* Back Home Button Styles */
.cod-back-wrapper {
    margin-bottom: 15px;
    text-align: left;
}

.cod-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cod-back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-3px);
    color: white;
}

.cod-back-icon {
    font-size: 18px;
    line-height: 1;
}

/* Form Styles */
.cod-tracker-form {
    padding: 30px;
}

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

.cod-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.cod-form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.cod-form-control:focus {
    border-color: rgb(249, 137, 19);
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 137, 19, 0.1);
}

.cod-form-hint {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

/* Button Styles */
.cod-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cod-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, rgb(249, 137, 19) 0%, rgb(219, 117, 0) 100%);
    color: white;
}

.cod-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 137, 19, 0.3);
}

.cod-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

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

/* Result Card */
.cod-tracker-result {
    padding: 0 30px 30px;
}

.cod-result-card {
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.cod-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.cod-order-number {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.cod-order-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* All Order Status Colors */
.cod-order-status.status-pending { background: #fff3cd; color: #856404; }
.cod-order-status.status-processing { background: #cce5ff; color: #004085; }
.cod-order-status.status-on-hold { background: #f8d7da; color: #721c24; }
.cod-order-status.status-completed { background: #d4edda; color: #155724; }
.cod-order-status.status-cancelled { background: #f8d7da; color: #721c24; }
.cod-order-status.status-refunded { background: #e2e3e5; color: #383d41; }
.cod-order-status.status-failed { background: #f8d7da; color: #721c24; }
.cod-order-status.status-draft { background: #e2e3e5; color: #383d41; }

.cod-result-body {
    padding: 20px;
}

.cod-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.cod-info-label {
    color: #666;
    font-size: 14px;
}

.cod-info-value {
    font-weight: 600;
    color: #333;
}

.cod-total-amount {
    color: #28a745;
    font-size: 18px;
}

.cod-result-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
}

/* Live Feed Animation Styles */
.cod-board-container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cod-live-feed {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #fff;
    padding: 15px;
}

.cod-feed-content {
    display: flex;
    flex-direction: column;
    animation: scrollUp linear infinite;
}

.cod-feed-item {
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid rgb(249, 137, 19);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.cod-feed-item:hover {
    transform: translateX(5px);
    background: #f0f0f0;
}

.cod-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cod-order-badge {
    background: rgb(249, 137, 19);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}

.cod-phone-masked {
    color: #555;
    font-weight: 500;
}

.cod-item-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cod-order-total {
    font-weight: 700;
    color: #28a745;
}

.cod-status-badge-small {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* All Status Colors for Small Badges */
.cod-status-badge-small.status-pending { background: #fff3cd; color: #856404; }
.cod-status-badge-small.status-processing { background: #cce5ff; color: #004085; }
.cod-status-badge-small.status-on-hold { background: #f8d7da; color: #721c24; }
.cod-status-badge-small.status-completed { background: #d4edda; color: #155724; }
.cod-status-badge-small.status-cancelled { background: #f8d7da; color: #721c24; }
.cod-status-badge-small.status-refunded { background: #e2e3e5; color: #383d41; }
.cod-status-badge-small.status-failed { background: #f8d7da; color: #721c24; }
.cod-status-badge-small.status-draft { background: #e2e3e5; color: #383d41; }

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Loading State */
.cod-loading {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}

/* Empty State */
.cod-empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Error/Success Messages */
.cod-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.cod-success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .cod-live-feed {
        height: 500px;
    }
    
    .cod-tracker-header,
    .cod-board-header {
        padding: 20px;
    }
    
    .cod-tracker-header h3 {
        font-size: 20px;
    }
    
    .cod-tracker-form {
        padding: 20px;
    }
    
    .cod-tracker-result {
        padding: 0 20px 20px;
    }
    
    /* Mobile single line fix */
    .cod-feed-item {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between;
        gap: 8px;
        padding: 10px 12px;
    }
    
    .cod-item-left {
        flex: 1;
        min-width: 0;
        gap: 6px;
    }
    
    .cod-order-badge {
        font-size: 10px;
        padding: 2px 6px;
        white-space: nowrap;
    }
    
    .cod-phone-masked {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .cod-item-right {
        flex: 1;
        justify-content: flex-end;
        gap: 8px;
    }
    
    .cod-order-total {
        font-size: 12px;
        white-space: nowrap;
    }
    
    .cod-status-badge-small {
        font-size: 10px;
        padding: 2px 6px;
        white-space: nowrap;
    }
    
    .cod-result-footer {
        flex-direction: column;
    }
    
    .cod-btn-sm {
        width: 100%;
    }
    
    .cod-back-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .cod-back-icon {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .cod-live-feed {
        height: 450px;
    }
    
    .cod-feed-item {
        padding: 8px 10px;
    }
    
    .cod-order-badge {
        font-size: 9px;
        padding: 2px 4px;
    }
    
    .cod-phone-masked {
        font-size: 11px;
        max-width: 80px;
    }
    
    .cod-order-total {
        font-size: 11px;
    }
    
    .cod-status-badge-small {
        font-size: 9px;
        padding: 2px 4px;
    }
}