/* AI Content Autopilot Admin Styles */

.aica-wrap {
    max-width: 1200px;
}

.aica-tabs {
    margin-bottom: 20px;
}

.aica-content {
    margin-top: 20px;
}

/* Sections */
.aica-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.aica-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Status Cards */
.aica-status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.aica-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 15px 20px;
    text-align: center;
}

.aica-card h3 {
    margin: 0 0 8px;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aica-card-value {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: #1d2327;
}

/* Status Badges */
.aica-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.aica-active {
    background: #d4edda;
    color: #155724;
}

.aica-inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Log Levels */
.aica-log-level {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.aica-log-info {
    background: #d1ecf1;
    color: #0c5460;
}

.aica-log-warning {
    background: #fff3cd;
    color: #856404;
}

.aica-log-error {
    background: #f8d7da;
    color: #721c24;
}

/* Feed Form */
.aica-add-feed-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.aica-add-feed-form input {
    flex: 0 1 auto;
}

/* Messages */
.aica-message {
    margin-top: 10px;
    font-style: italic;
}

.aica-message.success {
    color: #155724;
}

.aica-message.error {
    color: #721c24;
}

/* Spinner alignment */
.spinner.is-active {
    visibility: visible;
    float: none;
    margin: 0 0 0 5px;
    vertical-align: middle;
}

/* Table tweaks */
#aica-feeds-table code {
    font-size: 12px;
    word-break: break-all;
}

#aica-log-table td {
    vertical-align: top;
}

/* Buttons in table */
.aica-delete-feed {
    color: #a00 !important;
    border-color: #a00 !important;
}

.aica-delete-feed:hover {
    color: #dc3232 !important;
    border-color: #dc3232 !important;
}

/* Inline image figures (frontend) */
.aica-inline-image {
    margin: 1.5em 0;
    text-align: center;
}

.aica-inline-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.aica-inline-image figcaption {
    font-size: 0.85em;
    color: #666;
    margin-top: 0.5em;
    font-style: italic;
}

/* Upsell sections */
.aica-upsell-section {
    border-left: 4px solid #667eea;
}

.aica-upsell-section p {
    margin: 0;
    color: #666;
}

.aica-upsell-section a {
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
}

.aica-upsell-section a:hover {
    text-decoration: underline;
}

/* Upgrade notice box */
.aica-upgrade-notice {
    background: #f0f6ff;
    border: 1px solid #c3d9f7;
    border-left: 4px solid #667eea;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 15px;
}

.aica-upgrade-notice p {
    margin: 0;
    color: #1d2327;
}

.aica-upgrade-notice a {
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
}

.aica-upgrade-notice a:hover {
    text-decoration: underline;
}

/* Feed counter */
.aica-feed-counter {
    font-size: 14px;
    font-weight: normal;
    color: #666;
    margin-left: 5px;
}

