/**
 * Admin Dashboard CSS
 * 
 * @package LivraisonAPI
 */

/* ===== DASHBOARD WRAP ===== */
.sendi-api-admin-wrap {
    margin: 20px 20px 0 0;
}

.sendi-api-admin-wrap h1 {
    margin-bottom: 20px;
}

/* ===== STATS CARDS ===== */
.sendi-api-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0 30px;
}

.sendi-api-stat {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 20px 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.sendi-api-stat:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sendi-api-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 4px;
}

.sendi-api-stat-label {
    display: block;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* ===== CARDS ===== */
.sendi-api-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sendi-api-card h2 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.sendi-api-card .form-table {
    margin-top: 0;
}

.sendi-api-card .form-table th {
    width: 180px;
    padding: 12px 10px 12px 0;
    font-weight: 600;
    color: #334155;
}

.sendi-api-card .form-table td {
    padding: 12px 10px;
    color: #1e293b;
}

.sendi-api-card .form-table td span[style*="color: #dc3232"] {
    font-weight: 500;
}

/* ===== STATUS BADGES ===== */
.sendi-api-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #fff;
}

.sendi-api-status-sent {
    background: #f59e0b;
}

.sendi-api-status-assigned {
    background: #3b82f6;
}

.sendi-api-status-in_progress {
    background: #8b5cf6;
}

.sendi-api-status-delivered {
    background: #22c55e;
}

.sendi-api-status-failed {
    background: #ef4444;
}

.sendi-api-status-cancelled {
    background: #6b7280;
}

.sendi-api-status-created {
    background: #94a3b8;
}

/* ===== NOTICES ===== */
.sendi-api-admin-wrap .notice {
    margin: 20px 0 30px;
}

.sendi-api-admin-wrap .notice .button {
    margin-top: 8px;
}

/* ===== TABLE STYLES ===== */
.sendi-api-card .wp-list-table {
    border: none;
    margin-bottom: 16px;
}

.sendi-api-card .wp-list-table th {
    font-weight: 600;
    color: #334155;
    padding: 12px 10px;
}

.sendi-api-card .wp-list-table td {
    padding: 10px 10px;
    vertical-align: middle;
}

.sendi-api-card .wp-list-table code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #1e293b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 782px) {
    .sendi-api-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .sendi-api-stat {
        padding: 16px;
    }
    
    .sendi-api-stat-number {
        font-size: 24px;
    }
    
    .sendi-api-card {
        padding: 16px;
    }
    
    .sendi-api-card .form-table th {
        width: 100%;
        display: block;
        padding-bottom: 4px;
    }
    
    .sendi-api-card .form-table td {
        display: block;
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    .sendi-api-stats {
        grid-template-columns: 1fr;
    }
}