/* --- Base et Typographie --- */
body { 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    background-color: #f4f7f9; 
    margin: 0;
    padding: 40px 20px; 
    color: #2d3436; 
    line-height: 1.6;
}

.container { 
    max-width: 850px; 
    margin: 0 auto; 
    background: #ffffff; 
    padding: 40px; 
    border-radius: 16px; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); 
}

h2 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.8rem;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 15px;
}

/* --- Barre de Statut API --- */
.api-status { 
    display: flex; 
    gap: 25px; 
    margin-bottom: 30px; 
    padding: 15px 20px; 
    background: #f8fafd; 
    border: 1px solid #e1e8ef; 
    border-radius: 10px; 
    font-size: 0.95rem;
    font-weight: 600;
}

.status-item {
    display: flex;
    align-items: center;
}

.dot { 
    height: 12px; 
    width: 12px; 
    border-radius: 50%; 
    display: inline-block; 
    margin-right: 10px; 
    position: relative;
}

/* Effet de pulsation pour le "Online" */
.online { 
    background-color: #00b894; 
    box-shadow: 0 0 0 rgba(0, 184, 148, 0.4);
    animation: pulse-green 2s infinite;
}

.offline { 
    background-color: #d63031; 
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 184, 148, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 184, 148, 0); }
}

/* --- Formulaire --- */
form {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #f1f3f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
}

input[type="date"] { 
    padding: 10px 15px; 
    border-radius: 6px; 
    border: 1px solid #ced4da; 
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

input[type="date"]:focus {
    border-color: #007bff;
}

button { 
    padding: 10px 25px; 
    background: #007bff; 
    color: white; 
    border: none; 
    border-radius: 6px; 
    cursor: pointer; 
    font-weight: bold;
    transition: background 0.2s, transform 0.1s;
}

button:hover { 
    background: #0056b3; 
}

button:active {
    transform: scale(0.98);
}

/* --- Cartes de Commandes --- */
.order-card { 
    border: 1px solid #e9ecef; 
    padding: 20px; 
    margin-bottom: 15px; 
    border-radius: 12px; 
    border-left: 6px solid #2c3e50; 
    background: #fff; 
    transition: all 0.2s ease-in-out;
}

.order-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left-color: #3498db;
    transform: translateX(5px);
}

.order-card strong {
    font-size: 1.1rem;
    color: #2c3e50;
}

.order-card small {
    display: block;
    margin-top: 8px;
    color: #636e72;
    background: #f1f3f5;
    padding: 5px 10px;
    border-radius: 4px;
}

/* --- Bouton Shippingbo --- */
.btn-sbo { 
    background: #2d3436; 
    color: white; 
    padding: 10px 20px; 
    text-decoration: none; 
    border-radius: 6px; 
    display: inline-block; 
    margin-top: 15px; 
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-sbo:hover { 
    background: #0984e3; 
    box-shadow: 0 4px 8px rgba(9, 132, 227, 0.3);
}

/* --- Messages d'état --- */
.no-order {
    text-align: center;
    padding: 40px;
    color: #b2bec3;
}
/* --- Badges de Statut --- */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Couleurs des statuts WooCommerce */
.status-processing { background-color: #e3f2fd; color: #1976d2; border: 1px solid #bbdefb; } /* Bleu */
.status-completed { background-color: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }  /* Vert */
.status-on-hold { background-color: #fff3e0; color: #ef6c00; border: 1px solid #ffe0b2; }    /* Orange */
.status-cancelled { background-color: #ffeae9; color: #c62828; border: 1px solid #ffcdd2; }  /* Rouge */

.sbo-warning {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #d35400;
    font-weight: 600;
    background: #fff5eb;
    padding: 8px;
    border-radius: 6px;
    display: inline-block;
}

.order-body p {
    margin: 5px 0;
}