/* A_AMAZON_LISTINGS — paleta y look idénticos a A_Ventas_Trafico_Amazon */

body {
    background: #f8f8f8;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 25px;
    padding: 10px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.progress {
    height: 20px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.05);
}

.progress-bar {
    background: linear-gradient(45deg, #11998e, #38ef7d);
    border-radius: 10px;
    font-size: 0.8rem;
}

.alert {
    border-radius: 10px;
    border: none;
}

.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.stats-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Badges de estado de listings */
.badge-status-active        { background: #d4edda; color: #155724; }
.badge-status-inactive      { background: #e2e3e5; color: #383d41; }
.badge-status-incomplete    { background: #fff3cd; color: #856404; }
.badge-status-buyable       { background: #d1ecf1; color: #0c5460; }
.badge-status-suppressed    { background: #f8d7da; color: #721c24; }

/* Badges de origen de campo IA */
.badge-source-catalog       { background: #cfe2ff; color: #084298; }
.badge-source-listing       { background: #d1e7dd; color: #0a3622; }
.badge-source-ai            { background: #e7d3fe; color: #4d1d95; }
.badge-source-ai-websearch  { background: #fde9c1; color: #6c3a00; }
.badge-source-manual        { background: #e2e3e5; color: #383d41; }
.badge-source-template      { background: #cff4fc; color: #055160; }
.badge-source-missing       { background: #f8d7da; color: #721c24; }

.confidence-bar {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #dc3545 0%, #ffc107 50%, #28a745 100%);
}

/* Tabla de listings principal */
.listings-table th {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 10;
}

/* Editor de campos en propuesta */
.field-editor-row {
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
}

.field-editor-row:hover {
    background: #fafbfc;
}

.field-name {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.85rem;
    color: #495057;
}

.field-required::after {
    content: ' *';
    color: #dc3545;
    font-weight: bold;
}

.web-source {
    border-left: 3px solid #fd7e14;
    padding-left: 8px;
    margin: 6px 0;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Spinners y estados de jobs */
.job-pending    { color: #6c757d; }
.job-running    { color: #0d6efd; }
.job-completed  { color: #198754; }
.job-failed     { color: #dc3545; }
