/* Auto Recipe Schema - Admin Styles */

.ecfrs-wrap {
    max-width: 1000px;
}

.ecfrs-settings-form {
    background: #fff;
    padding: 15px 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin: 15px 0;
}

/* Stats */
.ecfrs-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.ecfrs-stat-box {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    padding: 15px 25px;
    text-align: center;
    min-width: 120px;
    flex: 1;
}

.ecfrs-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #1d2327;
}

.ecfrs-stat-label {
    display: block;
    font-size: 13px;
    color: #646970;
    margin-top: 4px;
}

.ecfrs-stat-success .ecfrs-stat-number { color: #00a32a; }
.ecfrs-stat-skip .ecfrs-stat-number { color: #646970; }
.ecfrs-stat-pending .ecfrs-stat-number { color: #dba617; }
.ecfrs-stat-error .ecfrs-stat-number { color: #d63638; }

/* Batch controls */
.ecfrs-batch-controls {
    margin: 15px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Progress bar */
.ecfrs-progress-bar {
    height: 24px;
    background: #f0f0f1;
    border-radius: 12px;
    overflow: hidden;
    margin: 15px 0 10px;
}

.ecfrs-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #00a32a);
    border-radius: 12px;
    transition: width 0.5s ease;
    width: 0%;
}

#ecfrs-progress-text {
    text-align: center;
    font-size: 14px;
    color: #1d2327;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Log */
.ecfrs-log {
    max-height: 400px;
    overflow-y: auto;
    background: #1d2327;
    color: #f0f0f1;
    border-radius: 6px;
    padding: 10px 15px;
    font-family: 'SF Mono', 'Consolas', 'Menlo', monospace;
    font-size: 12px;
    line-height: 1.6;
    margin-top: 10px;
}

.ecfrs-log-entry {
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ecfrs-log-time {
    color: #a7aaad;
    margin-right: 8px;
}

.ecfrs-log-success { color: #68de7c; }
.ecfrs-log-error { color: #f86368; }
.ecfrs-log-warning { color: #f0c33c; }
.ecfrs-log-skip { color: #a7aaad; }
.ecfrs-log-info { color: #72aee6; }

/* Recipe table */
#ecfrs-recipe-list {
    margin-top: 10px;
}

#ecfrs-recipe-list th,
#ecfrs-recipe-list td {
    vertical-align: middle;
}

/* ECL Promo Banner */
.ecfrs-ecl-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 50%, #f0f0ff 100%);
    border: 1px solid #b8d4e8;
    border-left: 4px solid #2271b1;
    border-radius: 6px;
    padding: 18px 20px;
    margin: 15px 0 20px;
    position: relative;
}

.ecfrs-ecl-banner-icon {
    font-size: 36px;
    flex-shrink: 0;
    line-height: 1;
}

.ecfrs-ecl-banner-content {
    flex: 1;
}

.ecfrs-ecl-banner-title {
    font-size: 15px;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 6px;
}

.ecfrs-ecl-banner-text {
    font-size: 13px;
    color: #50575e;
    line-height: 1.5;
    margin: 0 0 10px;
}

.ecfrs-ecl-banner-features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ecfrs-ecl-banner-features span {
    font-size: 12px;
    color: #2c3338;
    font-weight: 500;
    white-space: nowrap;
}

.ecfrs-ecl-banner-cta {
    flex-shrink: 0;
}

.ecfrs-ecl-btn.button.button-primary {
    background: #2271b1;
    border-color: #2271b1;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    height: auto;
    line-height: 1.4;
    border-radius: 4px;
    white-space: nowrap;
    text-decoration: none;
}

.ecfrs-ecl-btn.button.button-primary:hover {
    background: #135e96;
    border-color: #135e96;
}

.ecfrs-ecl-banner-dismiss {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #a7aaad;
    padding: 4px;
    line-height: 1;
    border-radius: 3px;
}

.ecfrs-ecl-banner-dismiss:hover {
    color: #1d2327;
    background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 782px) {
    .ecfrs-ecl-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-right: 35px;
    }
    .ecfrs-ecl-banner-features {
        flex-direction: column;
        gap: 4px;
    }
}

/* Keyword inline edit */
.ecfrs-name-cell {
    position: relative;
}

.ecfrs-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.ecfrs-keyword-badge {
    display: inline-block;
    background: #f0f0f1;
    border: 1px solid #dcdcde;
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 11px;
    color: #2271b1;
    margin-top: 4px;
}

.ecfrs-keyword-edit-btn {
    margin-top: 4px !important;
    margin-left: 6px !important;
    font-size: 12px !important;
    padding: 0 6px !important;
    min-height: 24px !important;
    line-height: 22px !important;
    vertical-align: middle;
    cursor: pointer !important;
    display: inline-block !important;
}

.ecfrs-keyword-edit {
    margin-top: 6px;
}

.ecfrs-keyword-input {
    width: 100% !important;
    margin-bottom: 6px !important;
}

.ecfrs-keyword-actions {
    display: flex;
    gap: 4px;
}
