/* ==========================================
   CDV Booking Calendar - Admin Styles
   ========================================== */

/* Wrap général */
.cdv-admin-wrap {
    margin: 20px 20px 20px 0;
}

/* Grille de statistiques */
.cdv-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0 30px 0;
}

.cdv-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.cdv-stat-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.cdv-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Box d'actions */
.cdv-actions-box {
    background: white;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cdv-actions-box h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

/* Liste des calendriers */
.cdv-calendars-list {
    background: white;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cdv-calendars-list h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
}

/* État vide */
.cdv-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.cdv-empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Input shortcode dans la liste */
.cdv-shortcode-input {
    width: 100%;
    font-family: monospace;
    font-size: 11px;
    padding: 6px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.cdv-shortcode-input:focus,
.cdv-shortcode-input:hover {
    background: #fff;
    border-color: #2271b1;
}

/* Badges */
.cdv-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.cdv-badge-primary {
    background: #2271b1;
    color: white;
}

.cdv-badge-success {
    background: #00a32a;
    color: white;
}

.cdv-badge-warning {
    background: #dba617;
    color: white;
}

.cdv-badge-danger {
    background: #d63638;
    color: white;
}

.cdv-badge-info {
    background: #72aee6;
    color: white;
}

.cdv-badge-default {
    background: #787c82;
    color: white;
}

/* Tables */
.cdv-admin-wrap .wp-list-table {
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    overflow: hidden;
}

.cdv-admin-wrap .wp-list-table th {
    background: #f6f7f7;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 782px) {
    .cdv-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cdv-stat-value {
        font-size: 32px;
    }
}

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

/* Animation pour les boutons de sync */
@keyframes cdv-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cdv-spinning {
    animation: cdv-spin 1s linear infinite;
}