  /**
 * BC Order Status Frontend Styles
 * 
 * @package BC_Order_Status
 * @since 1.0.0
 */

/* Container */
.bc-order-status-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

/* Title and Instructions */
.bc-order-title {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.5em;
    font-weight: 600;
}

.bc-order-instructions {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Form Styles */
.bc-order-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.bc-form-group {
    margin-bottom: 15px;
}

.bc-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.bc-form-input-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.bc-po-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.bc-po-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.bc-search-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bc-search-btn:hover:not(:disabled) {
    background: #005a87;
}

.bc-search-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Loading Spinner */
.bc-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: bc-spin 1s linear infinite;
}

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

/* Examples */
.bc-form-examples {
    margin-top: 10px;
}

.bc-examples-text {
    color: #666;
    font-size: 14px;
}

.bc-example-po {
    color: #0073aa;
    cursor: pointer;
    text-decoration: underline;
    margin: 0 3px;
}

.bc-example-po:hover {
    color: #005a87;
}

/* Results Container */
.bc-results-container {
    margin-top: 20px;
}

.bc-order-results {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.bc-results-header {
    background: #f1f1f1;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

.bc-results-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
}

/* Results Sections */
.bc-results-section {
    border-bottom: 1px solid #eee;
}

.bc-results-section:last-of-type {
    border-bottom: none;
}

.bc-section-title {
    background: #f8f8f8;
    padding: 12px 20px;
    margin: 0;
    font-size: 1.1em;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
}

.bc-count {
    background: #666;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: normal;
    margin-left: auto;
}

/* Status Icons */
.bc-status-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.bc-status-order {
    background: #ffb900;
}

.bc-status-shipped {
    background: #107c10;
}

.bc-status-invoiced {
    background: #0078d4;
}

/* Results Table */
.bc-results-table {
    padding: 0;
}

.bc-result-row {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.bc-result-row:last-child {
    border-bottom: none;
}

.bc-result-main {
    margin-bottom: 8px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bc-result-detail {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.bc-result-detail:last-child {
    margin-bottom: 0;
}

/* Status Badges */
.bc-status-badge {
    background: #f0f0f0;
    color: #666;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bc-status-order {
    background: #fff4ce;
    color: #b7860b;
}

.bc-status-shipped {
    background: #d4edda;
    color: #155724;
}

.bc-status-invoiced {
    background: #cce5ff;
    color: #004085;
}

/* Footer */
.bc-results-footer {
    padding: 15px 20px;
    background: #f8f8f8;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
    text-align: center;
}

.bc-results-footer p {
    margin: 2px 0;
}

/* Error States */
.bc-order-status-error,
.bc-error,
.bc-no-results {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #c62828;
    margin: 15px 0;
}

.bc-no-results {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
    text-align: center;
    font-style: italic;
}

/* Code styling for tracking numbers */
code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bc-order-status-container {
        padding: 15px;
    }
    
    .bc-form-input-group {
        flex-direction: column;
    }
    
    .bc-search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .bc-result-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .bc-section-title {
        font-size: 1em;
        padding: 10px 15px;
    }
    
    .bc-result-row {
        padding: 12px 15px;
    }
    
    .bc-results-header {
        padding: 12px 15px;
    }
    
    .bc-results-footer {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .bc-order-title {
        font-size: 1.3em;
    }
    
    .bc-po-input,
    .bc-search-btn {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .bc-order-form {
        padding: 15px;
    }
}