/**
 * BlogForge AI Modern Admin Styles
 * Enhanced with Two-Column Form Layout
 */

/* Modern Dashboard Styles */
.blogforge-ai-admin {
    max-width: 1200px;
    margin: 20px;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
}

/* Modern Header */
.blogforge-ai-header {
    margin-bottom: 20px;
    padding: 20px 0;
    text-align: center;
    background: #26BA8A;
    color: white;
    position: relative;
    overflow: hidden;
}

.blogforge-ai-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.blogforge-ai-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.blogforge-ai-header h1 .dashicons {
    font-size: 32px;
    opacity: 0.9;
    line-height: 1;
    vertical-align: middle;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blogforge-ai-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.blogforge-kofi-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #FF5E5B;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(255, 94, 91, 0.3);
}

.blogforge-kofi-btn:hover {
    background: #e54542;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(255, 94, 91, 0.45);
}

@media (max-width: 600px) {
    .blogforge-kofi-btn {
        position: static;
        margin-top: 12px;
    }
}

/* Modern Card Enhancements */
.blogforge-ai-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.blogforge-ai-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- Enhanced Card Header UI/UX --- */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #fdfdff 0%, #f8fafc 100%);
    border-bottom: 1px solid #eef2f7;
    border-radius: 16px 16px 0 0;
}

.card-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    letter-spacing: -0.01em;
    padding: 0;
}

.card-header h3 .dashicons {
    color: #26BA8A;
    background-color: rgba(38, 186, 138, 0.1);
    border-radius: 8px;
    font-size: 18px;
    padding: 7px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all-link {
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    background-color: #f1f5f9;
    color: #10b981;
    text-decoration: none;
}

/* Modern Stats Grid */
.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.providers-row {
    margin-bottom: 24px;
}

.providers-row .blogforge-ai-card {
    width: 100%;
}

/* Simple Stats Layout - Fixed Alignment */
.simple-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px;
    margin: 0;
}

.simple-stat {
    text-align: center;
    padding: 16px 12px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.2s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.simple-stat:hover {
    background: #f1f5f9;
    transform: scale(1.02);
}

.simple-stat .stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
    line-height: 1;
}

.simple-stat .stat-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.stat-item:hover {
    background: #e9ecef;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-icon.success {
    background: #d4edda;
    color: #155724;
}

.stat-icon.pending {
    background: #fff3cd;
    color: #856404;
}

.stat-icon.error {
    background: #f8d7da;
    color: #721c24;
}

.stat-icon.tokens {
    background: #d1ecf1;
    color: #0c5460;
}

.stat-icon.cost {
    background: #d4edda;
    color: #155724;
}

.stat-icon.monthly {
    background: #e2e3e5;
    color: #383d41;
}

.stat-icon.inactive {
    background: #f8f9fa;
    color: #6c757d;
}

.stat-content {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #23282d;
    margin-bottom: 2px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

/* Modern Card Actions - Fixed Button Colors */
.card-actions {
    padding: 0 16px 16px;
}

.card-actions .button {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    justify-content: center;
}

.card-actions .button.button-primary {
    transition: all 0.2s ease;
}

.card-actions .button.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 15px -3px rgba(16, 185, 129, 0.3);
}

.card-actions .button:not(.button-primary):hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transition: none;
    color: white !important;
}

.card-actions .button.button-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Provider List */
.provider-list {
    padding: 20px;
}

.provider-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.provider-item:last-child {
    margin-bottom: 0;
}

.provider-item.enabled {
    border-color: #28a745;
    background: #f8fff9;
}

.provider-item.disabled {
    opacity: 0.6;
}

.provider-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
}

.provider-info {
    flex: 1;
}

.provider-name {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.provider-priority {
    font-size: 12px;
    color: #666;
}

.provider-status .blogforge-ai-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.blogforge-ai-status.active {
    background: #d4edda;
    color: #155724;
}

.blogforge-ai-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Modern Empty State - Fixed Icon and Text Alignment */
.empty-state {
    text-align: center;
    padding: 30px 24px;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.empty-icon {
    margin-bottom: 12px;
    display: block;
    width: 48px;
    height: 48px;
    margin-left: auto;
    margin-right: auto;
}

.empty-icon .dashicons {
    font-size: 48px;
    color: #d1d5db;
    opacity: 0.5;
    line-height: 48px;
    width: 48px;
    height: 48px;
    text-align: center;
}

.empty-state h4 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-weight: 600;
    font-size: 14px;
}

.empty-state p {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.empty-state small {
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.3;
    margin: 0;
}

/* Fix for empty activity state */
.empty-activity {
    text-align: center;
    padding: 30px 24px;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-activity .dashicons {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 12px;
    opacity: 0.5;
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
}

.empty-activity p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* Section Headers */
.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
}

.section-description {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Modern Action Grid - Fixed Icons */
.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px;
}

.action-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 180px;
}

.action-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.action-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 6px 12px -3px rgba(16, 185, 129, 0.4);
    flex-shrink: 0;
    position: relative;
}

.action-icon .dashicons {
    font-size: 24px;
    color: white;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-content {
    padding: 12px 16px;
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.action-content h3 {
    margin: 0 0 6px 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.action-content p {
    margin: 0 0 10px 0;
    color: #6b7280;
    line-height: 1.4;
    font-size: 13px;
}

.action-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
    justify-content: center;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 10px;
    color: #666;
    font-weight: 500;
}

.action-footer {
    padding: 16px 20px 20px;
    margin-top: auto;
    text-align: center;
}

.action-footer .button {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: none;
}

.action-footer .button:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 15px -3px rgba(16, 185, 129, 0.3);
}

/* Two Column Layout */
.blogforge-ai-two-column {
    display: flex;
    gap: 32px;
    margin-top: 24px;
    align-items: flex-start;
}

.blogforge-ai-main-content {
    flex: 2;
}

/* Quick Actions card styling - now matches AI Providers */
.blogforge-ai-main-content .blogforge-ai-card {
    margin-bottom: 0;
}

.blogforge-ai-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Sidebar */
.sidebar-card {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-card .card-header {
    padding: 15px 20px;
}

.sidebar-card .card-header h3 {
    font-size: 14px;
    font-weight: 600;
}

.view-all-link {
    font-size: 12px;
    color: #0073aa;
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* System Status */
.system-health {
    display: flex;
    align-items: center;
    gap: 6px;
}

.health-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.health-indicator.good {
    background: #28a745;
}

.health-indicator.warning {
    background: #ffc107;
}

.health-indicator.error {
    background: #dc3545;
}

.health-text {
    font-size: 12px;
    font-weight: 500;
}

.status-list {
    padding: 20px;
}

.status-list .status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.status-list .status-item:last-child {
    border-bottom: none;
}

.status-list .status-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
}

.status-list .status-content {
    flex: 1;
}

.status-list .status-label {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.status-list .status-value {
    display: block;
    font-size: 14px;
    color: #23282d;
    font-weight: 600;
}

/* Removed duplicate - consolidated below */

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.indicator.good {
    background: #28a745;
}

.indicator.warning {
    background: #ffc107;
}

.indicator.error {
    background: #dc3545;
}

/* Activity List */
.activity-list {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
}

.activity-content {
    flex: 1;
}

.activity-text {
    display: block;
    font-size: 13px;
    color: #23282d;
    margin-bottom: 2px;
}

.activity-time {
    display: block;
    font-size: 11px;
    color: #999;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.success {
    background: #28a745;
}

.status-dot.info {
    background: #17a2b8;
}

.status-dot.warning {
    background: #ffc107;
}

.status-dot.error {
    background: #dc3545;
}

/* Help Section */
.help-section {
    margin-top: 30px;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.help-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.help-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #0073aa;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #0073aa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.help-content {
    flex: 1;
}

.help-content h4 {
    margin: 0 0 10px 0;
    color: #23282d;
    font-size: 16px;
}

.help-content p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.5;
}

.help-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #0073aa;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.help-link:hover {
    text-decoration: underline;
}

/* Enhanced Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .blogforge-ai-admin {
        max-width: 100%;
        margin: 16px;
        padding: 16px;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .blogforge-ai-admin {
        margin: 12px;
        padding: 12px;
    }

    .blogforge-ai-two-column {
        flex-direction: column;
        gap: 24px;
    }

    .stats-row {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }

    .blogforge-ai-header {
        padding: 32px 20px;
        margin-bottom: 32px;
    }

    .blogforge-ai-header h1 {
        font-size: 28px;
    }

    .getting-started-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .action-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
    .blogforge-ai-admin {
        padding: 8px;
        margin: 8px;
        background: #f8fafc;
    }

    .blogforge-ai-header {
        margin-bottom: 24px;
        padding: 24px 16px;
        border-radius: 12px;
    }

    .blogforge-ai-header h1 {
        font-size: 24px;
        gap: 8px;
    }

    .blogforge-ai-header p {
        font-size: 14px;
    }

    .blogforge-ai-two-column {
        flex-direction: column;
        gap: 20px;
    }

    .blogforge-ai-main-content,
    .blogforge-ai-sidebar {
        width: 100%;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }

    .simple-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .simple-stat {
        text-align: center;
        padding: 16px;
        background: #f8fafc;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
        transition: all 0.2s ease;
    }

    .simple-stat:hover {
        background: #f1f5f9;
        transform: translateY(-1px);
    }

    .stat-number {
        font-size: 24px;
        font-weight: 700;
        color: #1f2937;
        display: block;
        margin-bottom: 4px;
    }

    .stat-label {
        font-size: 13px;
        color: #6b7280;
        font-weight: 500;
    }

    .getting-started-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .action-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blogforge-ai-card {
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .blogforge-ai-card h3 {
        padding: 20px 20px 0;
        font-size: 18px;
    }

    .card-actions {
        padding: 16px 20px 20px;
    }

    .card-actions .button {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    .card-actions .button:hover {
        transform: translateY(-1px);
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .blogforge-ai-admin {
        padding: 4px;
        margin: 4px;
    }

    .blogforge-ai-header {
        padding: 20px 12px;
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .blogforge-ai-header h1 {
        font-size: 20px;
        flex-direction: column;
        gap: 6px;
    }

    .blogforge-ai-header h1 .dashicons {
        font-size: 24px;
    }

    .blogforge-ai-header p {
        font-size: 13px;
        margin-top: 8px;
    }

    .stats-row {
        gap: 12px;
        margin-bottom: 20px;
    }

    .simple-stats {
        padding: 12px;
        gap: 8px;
    }

    .simple-stat {
        padding: 12px;
        border-radius: 6px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 12px;
    }

    .blogforge-ai-card {
        margin-bottom: 16px;
        border-radius: 8px;
    }

    .blogforge-ai-card h3 {
        padding: 16px 16px 0;
        font-size: 16px;
    }

    .card-actions {
        padding: 12px 16px 16px;
    }

    .card-actions .button {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 6px;
    }

    .getting-started-item {
        padding: 16px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .step-content h4 {
        font-size: 16px;
    }

    .step-content p {
        font-size: 13px;
    }

    .action-item {
        padding: 16px;
    }

    .action-content h3 {
        font-size: 16px;
    }

    .action-content p {
        font-size: 13px;
    }

    .provider-list {
        padding: 12px;
    }

    .provider-item {
        padding: 12px;
        margin-bottom: 8px;
    }

    .sidebar-card {
        margin-bottom: 16px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .blogforge-ai-admin {
        padding: 2px;
        margin: 2px;
    }

    .blogforge-ai-header {
        padding: 16px 8px;
    }

    .blogforge-ai-header h1 {
        font-size: 18px;
    }

    .blogforge-ai-header h1 .dashicons {
        font-size: 20px;
    }

    .simple-stat {
        padding: 8px;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-label {
        font-size: 11px;
    }

    .blogforge-ai-card h3 {
        font-size: 15px;
        padding: 12px 12px 0;
    }

    .card-actions {
        padding: 8px 12px 12px;
    }
}

/* Getting Started Guide */
.getting-started-list {
    padding: 24px;
}

.getting-started-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.getting-started-item:last-child {
    border-bottom: none;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 8px -2px rgba(16, 185, 129, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin: 0 0 6px 0;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.step-content p {
    margin: 0 0 8px 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

.step-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #10b981;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.step-link:hover {
    color: #059669;
}

.step-link .dashicons {
    font-size: 12px;
}

/* G
etting Started Row */
.getting-started-row {
    margin-bottom: 24px;
}

.getting-started-row .blogforge-ai-card {
    width: 100%;
}

.getting-started-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px;
}

.getting-started-grid .getting-started-item {
    border-bottom: none;
    padding: 0;
}

/* Update button colors to green gradient */
.card-actions .button.button-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.action-footer .button.button-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.empty-state .button.button-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.empty-state .button.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px -2px rgba(16, 185, 129, 0.3);
}

/* Responsive for Getting Started Grid */
@media (max-width: 768px) {
    .getting-started-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Moder
n Form Styling for Sub-menus */
.card-content {
    padding: 24px;
}

.blogforge-ai-form-row {
    margin-bottom: 20px;
}

.blogforge-ai-form-row label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
    font-size: 14px;
}

.blogforge-ai-form-row input[type="text"],
.blogforge-ai-form-row input[type="password"],
.blogforge-ai-form-row input[type="number"],
.blogforge-ai-form-row input[type="email"],
.blogforge-ai-form-row input[type="url"],
.blogforge-ai-form-row select,
.blogforge-ai-form-row textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

.blogforge-ai-form-row input:focus,
.blogforge-ai-form-row select:focus,
.blogforge-ai-form-row textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.blogforge-ai-form-row textarea {
    min-height: 100px;
    resize: vertical;
}

.blogforge-ai-form-row .description {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.4;
}

.blogforge-ai-form-row .button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.blogforge-ai-form-row .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px -2px rgba(16, 185, 129, 0.3);
    color: white;
}

.blogforge-ai-form-row .button:not(.button-primary) {
    background: #f3f4f6;
    color: #374151;
}

.blogforge-ai-form-row .button:not(.button-primary):hover {
    background: #e5e7eb;
    color: #374151;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* Form Validation Styles */
.blogforge-ai-form-row input.error,
.blogforge-ai-form-row select.error,
.blogforge-ai-form-row textarea.error {
    border-color: #dc3232;
    box-shadow: 0 0 0 3px rgba(220, 50, 50, 0.1);
}

.validation-error {
    color: #dc3232;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.validation-error::before {
    content: "⚠";
    font-size: 14px;
}

/* Feed Management Styles */
.feed-actions-menu {
    position: relative;
}

.feed-menu-toggle {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-menu-toggle:hover {
    background: #f3f4f6;
    color: #374151;
}

.feed-actions-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    z-index: 1000;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.feed-actions-dropdown.show {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.feed-actions-dropdown button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.feed-actions-dropdown button:last-child {
    border-bottom: none;
}

.feed-actions-dropdown button:hover {
    background: #f9fafb;
    color: #111827;
}

.feed-actions-dropdown button.delete-feed-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}

.feed-actions-dropdown button .dashicons {
    margin-right: 10px;
    font-size: 16px;
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Button-specific styles */
.feed-actions-dropdown button:first-child {
    border-radius: 8px 8px 0 0;
}

.feed-actions-dropdown button:last-child {
    border-radius: 0 0 8px 8px;
}

.process-feed-btn {
    color: #059669 !important;
}

.process-feed-btn:hover {
    background: #ecfdf5 !important;
}

.test-feed-btn {
    color: #0891b2 !important;
}

.test-feed-btn:hover {
    background: #ecfeff !important;
}

/* Enhanced Feed Source Cards */
.feed-sources-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.feed-source-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    position: relative;
    /* Removed overflow: hidden so dropdowns can break out of container */
}

.feed-source-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px 12px 0 0;
}

.feed-source-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.feed-info {
    flex: 1;
    min-width: 0;
}

.feed-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.feed-title strong {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.feed-url {
    margin-bottom: 0;
}

.feed-url a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.feed-url a:hover {
    color: #10b981;
}

.feed-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.feed-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feed-stat .stat-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feed-stat .stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

/* Enhanced Status Indicators */
.blogforge-ai-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blogforge-ai-status.active {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.blogforge-ai-status.inactive {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.blogforge-ai-status.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.blogforge-ai-status.processing {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Enhanced Add Feed Card */
.add-feed-card {
    border: 2px dashed #d1d5db;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    transition: all 0.3s ease;
}

.add-feed-card:hover {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(16, 185, 129, 0.2);
}

.modern-header {
    background: transparent;
    border-bottom: 1px solid #e5e7eb;
    padding: 24px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px -2px rgba(16, 185, 129, 0.3);
}

.header-icon .dashicons {
    font-size: 20px;
    color: white;
}

.header-text h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.header-text p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.feed-limit-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.limit-icon {
    font-size: 14px;
    color: #10b981;
}

.limit-text {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

/* Enhanced Add Feed Section */
.add-feed-section {
    padding: 0;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .dashicons {
    position: absolute;
    left: 18px;
    color: #10b981;
    font-size: 18px;
    z-index: 2;
}

.feed-url-input {
    width: 100%;
    padding: 18px 18px 18px 54px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    background: white !important;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.feed-url-input:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    outline: none !important;
}

.feed-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.feed-help {
    margin-top: 20px;
    padding: 16px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.help-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.help-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.help-icon .dashicons {
    font-size: 16px;
    color: #2563eb;
}

.help-text {
    flex: 1;
    line-height: 1.5;
}

.help-text strong {
    color: #374151;
    font-weight: 600;
    margin-right: 8px;
}

.help-text span {
    color: #6b7280;
    font-size: 14px;
}

.feed-input-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .dashicons {
    position: absolute;
    left: 16px;
    color: #6b7280;
    font-size: 18px;
    z-index: 2;
}

.feed-url-input {
    width: 100%;
    padding: 16px 16px 16px 50px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    background: white !important;
}

.feed-url-input:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
    outline: none !important;
}

.feed-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.feed-actions .blogforge-ai-btn {
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.feed-actions .blogforge-ai-btn.secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.feed-actions .blogforge-ai-btn.secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.feed-actions .blogforge-ai-btn.primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.feed-actions .blogforge-ai-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 15px -3px rgba(16, 185, 129, 0.4);
}

/* Enhanced Feed Limit Indicator */
.feed-limit-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f3f4f6;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
}

.limit-text {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

/* Enhanced Status Overview Card */
.status-overview-card {
    margin-bottom: 32px;
    border: none;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-left: 4px solid #10b981;
}

.status-overview-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
}

.status-indicator {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-indicator.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 15px -3px rgba(16, 185, 129, 0.4);
}

.status-indicator.inactive {
    background: #fef2f2;
    color: #dc2626;
    border: 2px solid #fecaca;
}

.status-indicator .dashicons {
    font-size: 24px;
}

.status-info {
    flex: 1;
}

.status-info h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.status-info p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.status-stats {
    display: flex;
    gap: 24px;
}

.status-stats .stat-item {
    text-align: center;
    padding: 12px 16px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    min-width: 80px;
}

.status-stats .stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
    line-height: 1;
    margin-bottom: 4px;
}

.status-stats .stat-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Rotating animation for loading states */
@keyframes rotating {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.rotating {
    animation: rotating 1s linear infinite;
}

/* Enhanced Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

.empty-state .empty-icon {
    margin-bottom: 16px;
}

.empty-state .empty-icon .dashicons {
    font-size: 64px;
    color: #d1d5db;
    opacity: 0.7;
}

.empty-state h4 {
    margin: 0 0 8px 0;
    color: #374151;
    font-weight: 600;
    font-size: 18px;
}

.empty-state p {
    margin: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.5;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state small {
    color: #9ca3af;
    font-size: 12px;
    font-style: italic;
}

/* Modern Tabs Styling */
.blogforge-ai-tabs {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.blogforge-ai-tab-nav {
    display: flex;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #f3f4f6;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.blogforge-ai-tab-nav::-webkit-scrollbar {
    display: none;
}

.blogforge-ai-tab-nav button {
    flex: 1;
    min-width: 120px;
    padding: 16px 20px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.blogforge-ai-tab-nav button:hover {
    color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.blogforge-ai-tab-nav button.active {
    color: #10b981 !important;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.05) !important;
}

.blogforge-ai-tab-nav button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.blogforge-ai-tab-container {
    padding: 24px 32px 16px;
}

.blogforge-ai-tab-content {
    display: none;
}

.blogforge-ai-tab-content.active {
    display: block !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blogforge-ai-tab-content h2 {
    margin: 0 0 24px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.blogforge-ai-tab-content h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 2px;
}

/* Settings Sections */
.blogforge-ai-settings-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #f1f5f9;
}

.blogforge-ai-settings-section h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blogforge-ai-settings-section h3::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 2px;
}

/* API Key Input Styling */
.blogforge-ai-api-key {
    position: relative;
    display: flex;
    align-items: center;
}

.blogforge-ai-api-key input {
    padding-right: 50px;
}

.blogforge-ai-api-key .toggle-visibility {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.blogforge-ai-api-key .toggle-visibility:hover {
    color: #10b981;
}

/* Checkbox Styling */
.blogforge-ai-form-row input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    accent-color: #10b981;
}

.blogforge-ai-form-row label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
}

/* Notice Styling */
.blogforge-ai-notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideInDown 0.3s ease-out;
}

.blogforge-ai-notice .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.blogforge-ai-notice.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.blogforge-ai-notice.success .dashicons {
    color: #10b981;
}

.blogforge-ai-notice.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.blogforge-ai-notice.error .dashicons {
    color: #ef4444;
}

/* Form Messages Container */
.blogforge-ai-form-messages {
    margin-top: 20px;
    min-height: 20px;
}

.blogforge-ai-form-messages .blogforge-ai-notice {
    margin-bottom: 0;
}

/* BlogForge AI Button Styles */
.blogforge-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    justify-content: center;
}

.blogforge-ai-btn.primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.blogforge-ai-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 15px -3px rgba(16, 185, 129, 0.4);
    color: white;
}

.blogforge-ai-btn.secondary {
    background: #f8fafc;
    color: #374151;
    border: 1px solid #d1d5db;
}

.blogforge-ai-btn.secondary:hover {
    background: #f1f5f9;
    border-color: #10b981;
    color: #10b981;
}

.blogforge-ai-btn.danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.blogforge-ai-btn.danger:hover {
    background: #fecaca;
    border-color: #f87171;
}

.blogforge-ai-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.blogforge-ai-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Animation for notices */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hidden utility */
.bf-hidden {
    display: none !important;
}

/* API Test Results */
.api-test-results {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.api-test-results h4 {
    margin: 0 0 16px 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.test-result {
    margin: 12px 0;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #e5e7eb;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.test-result.success {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.test-result.error {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.test-result strong {
    color: #1f2937;
}

/* Loading states */
.blogforge-ai-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.blogforge-ai-loading {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Progress bar */
.blogforge-ai-progress {
    width: 100%;
    height: 4px;
    background: #f3f4f6;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.blogforge-ai-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Responsive Design for Forms */
@media (max-width: 768px) {
    .blogforge-ai-tab-nav {
        flex-direction: column;
    }

    .blogforge-ai-tab-nav button {
        text-align: left;
        border-bottom: 1px solid #f3f4f6;
    }

    .blogforge-ai-tab-nav button:last-child {
        border-bottom: none;
    }

    .blogforge-ai-tab-container {
        padding: 20px;
    }

    .blogforge-ai-settings-section {
        padding: 16px;
    }

    .api-test-results {
        padding: 16px;
    }
}

/* Moder
n System Logs Styling */

/* Log Controls Card */
.log-controls-card {
    margin-bottom: 24px;
}

.log-controls-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.log-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
}

/* Removed duplicate 8px status indicator - using consolidated version */

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.log-controls-content {
    padding: 20px 24px;
}

.controls-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin-bottom: 0;
    align-items: end;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group.search-group {
    min-width: 200px;
}

.control-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.control-label .dashicons {
    font-size: 14px;
    color: #10b981;
}

.modern-select,
.modern-input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
}

.modern-select:focus,
.modern-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.inline-form {
    display: inline;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 24px;
}

.action-buttons .inline-form {
    margin-left: auto;
}

.modern-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.modern-button .dashicons {
    font-size: 16px;
}

.modern-button.refresh-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.modern-button.refresh-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px -2px rgba(16, 185, 129, 0.3);
}

.modern-button.download-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.modern-button.download-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.modern-button.danger-btn {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.modern-button.danger-btn:hover {
    background: #fecaca;
    border-color: #f87171;
}

.modern-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Log Viewer Card */
.log-viewer-card {
    margin-bottom: 24px;
}

.log-viewer-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.log-count {
    display: flex;
    align-items: center;
    gap: 6px;
}

.count-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.count-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* Modern Log Entries */
.blogforge-ai-log-viewer {
    max-height: 600px;
    overflow-y: auto;
    padding: 8px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.modern-log-entry {
    background: white;
    border: 1px solid #eef2f7;
    border-left-width: 4px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.modern-log-entry:last-child {
    margin-bottom: 0;
}

.modern-log-entry:hover {
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.modern-log-entry.expanded .log-entry-header {
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
}

.modern-log-entry.expanded {
    border-color: #10b981;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.1);
}

.log-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.log-level-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 4px;
}

.log-level-indicator .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.log-timestamp {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.log-timestamp .dashicons {
    font-size: 14px;
}

.log-actions {
    display: flex;
    align-items: center;
}

.log-expand-btn {
    background: none;
    border: none;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

.log-expand-btn:hover {
    background: #f3f4f6;
    color: #10b981;
}

.log-expand-btn .dashicons {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.log-entry-content {
    display: none;
    padding: 20px;
    background: #fdfdff;
    border-top: 1px solid #e2e8f0;
}

.log-message {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    word-break: break-all;
    white-space: pre-wrap;
}

/* Log Level Colors */
.log-level-error .log-level-indicator {
    background: #fee2e2;
    color: #991b1b;
}

.log-level-error {
    border-left-color: #ef4444;
}

.log-level-warning .log-level-indicator {
    background: #fef3c7;
    color: #92400e;
}

.log-level-warning {
    border-left-color: #f59e0b;
}

.log-level-info .log-level-indicator {
    background: #dbeafe;
    color: #1e40af;
}

.log-level-info {
    border-left-color: #3b82f6;
}

.log-level-debug .log-level-indicator {
    background: #d1fae5;
    color: #065f46;
}

.log-level-debug {
    border-left-color: #10b981;
}

/* Empty State */
.empty-logs-state {
    text-align: center;
    padding: 80px 24px;
    color: #6b7280;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
    margin: 8px;
}

.empty-logs-state .empty-icon {
    margin-bottom: 16px;
}

.empty-logs-state .empty-icon .dashicons {
    font-size: 56px;
    color: #d1d5db;
    opacity: 0.5;
}

.empty-logs-state h4 {
    margin: 0 0 8px 0;
    color: #374151;
    font-size: 20px;
    font-weight: 600;
}

.empty-logs-state p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* Sidebar Modern Stats */
.modern-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.stat-card:hover {
    background: white;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #6b7280;
    flex-shrink: 0;
}

.stat-icon .dashicons {
    font-size: 20px;
}

.stat-icon.error {
    background: #fee2e2;
    color: #dc2626;
}

.stat-icon.warning {
    background: #fef3c7;
    color: #d97706;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: #1f2937;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* Modern Level Guide */
.modern-level-guide {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modern-level-guide .level-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #e5e7eb;
    transition: all 0.2s ease;
}

.modern-level-guide .level-item:hover {
    background: #f1f5f9;
}

.modern-level-guide .level-item.error {
    border-left-color: #dc2626;
}

.modern-level-guide .level-item.warning {
    border-left-color: #d97706;
}

.modern-level-guide .level-item.info {
    border-left-color: #0891b2;
}

.modern-level-guide .level-item.debug {
    border-left-color: #059669;
}

.level-indicator {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #6b7280;
    flex-shrink: 0;
}

.level-indicator .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
}

.level-item.error .level-indicator {
    background: #fee2e2;
    color: #dc2626;
}

.level-item.warning .level-indicator {
    background: #fef3c7;
    color: #d97706;
}

.level-item.info .level-indicator {
    background: #cffafe;
    color: #0891b2;
}

.level-item.debug .level-indicator {
    background: #d1fae5;
    color: #059669;
}

.level-content {
    flex: 1;
    min-width: 0;
}

.level-content strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.level-content p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* Troubleshooting Guide */
.troubleshooting-guide {
    padding: 20px;
}

.troubleshooting-guide .issue-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.troubleshooting-guide .issue-item:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.issue-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    flex-shrink: 0;
}

.issue-icon .dashicons {
    font-size: 18px;
}

.issue-content {
    flex: 1;
    min-width: 0;
}

.issue-content strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.3;
}

.issue-content p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* Export Options */
.export-options {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.export-options .modern-button {
    width: 100%;
    justify-content: center;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.export-options .modern-button:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

/* Animations */
.rotating {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .controls-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .modern-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .log-controls-content {
        padding: 16px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .modern-button {
        width: 100%;
        justify-content: center;
    }

    .log-entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .log-timestamp {
        font-size: 11px;
    }

    .modern-stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .blogforge-ai-log-viewer {
        padding: 12px;
        max-height: 400px;
    }

    .modern-log-entry {
        margin-bottom: 6px;
    }

    .log-entry-header {
        padding: 10px 12px;
    }

    .log-entry-content {
        padding: 12px;
    }

    .log-message {
        font-size: 12px;
    }
}

/*
 Additional Tab Fixes */
.blogforge-ai-tab-nav button:focus {
    outline: 2px solid #10b981;
    outline-offset: -2px;
}

/* Ensure tab content is visible when active */
.blogforge-ai-tab-content.active * {
    visibility: visible;
}

/* Force display for active tabs */
.blogforge-ai-tabs .blogforge-ai-tab-content.active {
    display: block !important;
    visibility: visible !important;
}

/* Debug styles for tab functionality */
.blogforge-ai-tab-content {
    min-height: 200px;
    position: relative;
}

.blogforge-ai-tab-content.active {
    border-left: 3px solid #10b981;
    padding-left: 29px;
}

/* Ensure form elements are visible in active tabs */
.blogforge-ai-tab-content.active input,
.blogforge-ai-tab-content.active select,
.blogforge-ai-tab-content.active textarea,
.blogforge-ai-tab-content.active button {
    visibility: visible !important;
    display: initial !important;
}

/* Tab button active state enhancement */
.blogforge-ai-tab-nav button.active {
    position: relative;
    z-index: 1;
}

.blogforge-ai-tab-nav button.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 185, 129, 0.1);
    z-index: -1;
}

/*
 Modern BlogForge AI Button Styles */
.blogforge-ai-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 20px 0 16px 24px;
    border-top: 1px solid #f0f0f0;
    margin-top: 24px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.blogforge-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.blogforge-ai-btn .dashicons {
    font-size: 16px;
    line-height: 1;
}

.blogforge-ai-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Primary Button - Green Gradient */
.blogforge-ai-btn.primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.blogforge-ai-btn.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(16, 185, 129, 0.4);
}

.blogforge-ai-btn.primary:active {
    transform: translateY(0);
}

/* Secondary Button - Light with Border */
.blogforge-ai-btn.secondary {
    background: white;
    color: #374151;
    border: 2px solid #d1d5db;
}

.blogforge-ai-btn.secondary:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #10b981;
    color: #10b981;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px -2px rgba(16, 185, 129, 0.2);
}

/* Danger Button - Red Gradient */
.blogforge-ai-btn.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

.blogforge-ai-btn.danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(239, 68, 68, 0.4);
}

/* Button Loading State */
.blogforge-ai-btn .rotating {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Button Ripple Effect */
.blogforge-ai-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.blogforge-ai-btn:active::before {
    width: 300px;
    height: 300px;
}

/* Success State */
.blogforge-ai-btn.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.blogforge-ai-btn.success .dashicons {
    color: #d1fae5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blogforge-ai-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .blogforge-ai-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .blogforge-ai-btn {
        padding: 14px 20px;
        font-size: 16px;
        min-height: 48px;
    }

    .blogforge-ai-btn .dashicons {
        font-size: 18px;
    }
}

/* Form Row Improvements */
.blogforge-ai-form-row {
    margin-bottom: 18px;
}

.blogforge-ai-form-row:last-child {
    margin-bottom: 0;
}

/* Enhanced Form Styling */
.blogforge-ai-form {
    position: relative;
}

.blogforge-ai-form::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #10b981 50%, transparent 100%);
}

/* Set
tings Tab Descriptions and Guides */
.tab-description {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    color: #0c4a6e;
    font-size: 14px;
    line-height: 1.5;
}

.tab-description p {
    margin: 0;
}

.section-description {
    background: #fefce8;
    border-left: 4px solid #eab308;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 0 6px 6px 0;
}

.section-description p {
    margin: 0;
    color: #713f12;
    font-size: 13px;
    line-height: 1.4;
}

.provider-description {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 16px;
}

.provider-description p {
    margin: 0 0 10px 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.4;
}

.provider-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.feature-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Enhanced descriptions */
.blogforge-ai-form-row .description {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    line-height: 1.5;
}

.blogforge-ai-form-row .description strong {
    color: #374151;
    font-weight: 600;
}

.blogforge-ai-form-row .description br+strong {
    color: #10b981;
}

/* Links in descriptions */
.description a,
.section-description a,
.tab-description a {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
}

.description a:hover,
.section-description a:hover,
.tab-description a:hover {
    color: #059669;
    text-decoration: underline;
}

/* Warning text styling */
.description strong:contains("Warning"),
.description strong:contains("Security Note") {
    color: #dc2626 !important;
}

/* Pro tip styling */
.description strong:contains("Pro Tip"),
.description strong:contains("SEO Tip"),
.description strong:contains("Best Practice") {
    color: #7c3aed !important;
}

/* Recommended text styling */
.description strong:contains("Recommended") {
    color: #059669 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .tab-description,
    .section-description,
    .provider-description {
        padding: 12px;
        margin-bottom: 16px;
    }

    .provider-features {
        gap: 4px;
    }

    .feature-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .tab-description {
        font-size: 13px;
    }

    .section-description {
        padding: 10px 12px;
    }

    .provider-features {
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-badge {
        display: inline-block;
        margin-bottom: 2px;
    }
}

/* Auto Posting Page Modern Styles */

/* Status Overview Card - Modern Style */
.status-overview-card {
    margin-bottom: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #1f2937;
    border: 2px solid #e5e7eb;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.status-overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.01) 100%);
    pointer-events: none;
}



.status-overview-card:active {
    transform: translateY(-2px) scale(1.01);
    transition: all 0.2s ease;
}

.status-overview-content {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    position: relative;
    z-index: 1;
}

.status-indicator {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Modern App-Style Status Indicators */
.status-overview-card .status-indicator.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    animation: pulse-green-modern 3s infinite;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.status-overview-card .status-indicator.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 17px;
    pointer-events: none;
}

.status-overview-card .status-indicator.inactive {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(107, 114, 128, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.status-overview-card .status-indicator.inactive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 17px;
    pointer-events: none;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 8px 16px -4px rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow: 0 12px 24px -4px rgba(16, 185, 129, 0.6);
    }

    100% {
        box-shadow: 0 8px 16px -4px rgba(16, 185, 129, 0.4);
    }
}

/* Removed duplicate - consolidated below */

/* Removed unused .status-content styles - HTML uses .status-info instead */

.status-overview-card .status-stats {
    display: flex;
    gap: 32px;
    margin-left: auto;
}

.status-overview-card .stat-item {
    text-align: center;
    padding: 16px 20px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    transition: all 0.3s ease;
    min-width: 80px;
}



.status-overview-card .stat-number {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: #1f2937;
    line-height: 1;
}

.status-overview-card .stat-label {
    display: block;
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-top: 6px;
}

/* Master Control Card */
.master-control-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.power-toggle {
    display: flex;
    align-items: center;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 36px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    transition: all 0.3s ease;
    border-radius: 36px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked+.toggle-slider {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 20px rgba(16, 185, 129, 0.3);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(28px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.control-description {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.control-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.control-icon .dashicons {
    font-size: 24px;
}

.control-text h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.control-text p {
    margin: 0 0 12px 0;
    color: #6b7280;
    line-height: 1.5;
}

.feature-highlights {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.highlight-badge {
    background: #f0fdf4;
    color: #166534;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border: 1px solid #bbf7d0;
}

/* Configuration Cards */
.config-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.active {
    background: #10b981;
}

.status-dot.inactive {
    background: #ef4444;
}

.status-text {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.config-section {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.config-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #10b981;
}

.config-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.config-section:hover::before {
    transform: scaleX(1);
}

.blogforge-ai-settings-section {
    padding: 20px;
    border: 1px solid #f1f5f9;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.section-header .dashicons {
    color: #10b981;
    font-size: 18px;
}

.section-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.required {
    color: #ef4444;
    font-weight: 700;
}

.keyword-input-container {
    position: relative;
}

.keyword-input-container textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    resize: vertical;
}

.keyword-input-container textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Removed duplicate - using enhanced version below */

/* Removed orphaned count style - consolidated below */

/* Variety Grid */
.variety-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.variety-section h4 {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

.tone-selection,
.format-selection {
    display: grid;
    gap: 8px;
}

.tone-option,
.format-option {
    cursor: pointer;
    display: block;
}

.tone-option input,
.format-option input {
    display: none;
}

.tone-card,
.format-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 2px solid #f1f5f9;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tone-option input:checked+.tone-card,
.format-option input:checked+.format-card {
    border-color: #10b981;
    background: #f0fdf4;
}

.tone-card:hover,
.format-card:hover {
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.tone-card .dashicons,
.format-card .dashicons {
    font-size: 20px;
    color: #6b7280;
    flex-shrink: 0;
}

.tone-option input:checked+.tone-card .dashicons,
.format-option input:checked+.format-card .dashicons {
    color: #10b981;
}

.tone-info,
.format-info {
    flex: 1;
}

.tone-info strong,
.format-info strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.tone-info small,
.format-info small {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.3;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.time-slots input[type="time"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
}

.time-slots input[type="time"]:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Sidebar Enhancements */
.status-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    margin-bottom: 24px;
}

.recent-posts {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

.post-item {
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.post-item:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.post-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #1f2937;
    line-height: 1.3;
}

.post-item small {
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {

    .config-grid,
    .variety-grid {
        grid-template-columns: 1fr;
    }


    .status-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }

    .control-description {
        flex-direction: column;
        text-align: center;
    }

    .master-control-card .card-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .config-section {
        padding: 16px;
    }
}

/* Auto Posting Sidebar Enhancements */
.status-list {
    padding: 20px;
}

.status-list .status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.status-list .status-item:last-child {
    border-bottom: none;
}

.status-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.status-value {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
}

/* Tips List */
.tips-list {
    padding: 20px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-item .dashicons {
    color: #10b981;
    font-size: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}

.tip-item span:last-child {
    color: #374151;
}

/* Status Info - Modern Style */
.status-overview-card .status-info {
    flex: 1;
    min-width: 0;
}

.status-overview-card .status-info h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
    text-shadow: none;
    letter-spacing: -0.025em;
}

.status-overview-card .status-info p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    font-size: 14px;
    line-height: 1.4;
}

/* Form Field Spacing and Styles */
.blogforge-ai-form-row {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
}

.blogforge-ai-form-row:last-child {
    border-bottom: none;
    margin-bottom: 20px;
}

.blogforge-ai-form-row label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.blogforge-ai-form-row input,
.blogforge-ai-form-row textarea,
.blogforge-ai-form-row select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.blogforge-ai-form-row input:focus,
.blogforge-ai-form-row textarea:focus,
.blogforge-ai-form-row select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.blogforge-ai-form-row .description {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

/* Config Grid Spacing */
.config-grid {
    display: grid;
    gap: 30px;
}

.config-section {
    margin-bottom: 30px;
}

.config-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.section-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.section-header .dashicons {
    color: #10b981;
    font-size: 18px;
}

/* Variety Grid Spacing */
.variety-grid {
    display: grid;
    gap: 30px;
}

.variety-section {
    margin-bottom: 30px;
}

.variety-section:last-child {
    margin-bottom: 0;
}

.variety-section h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

/* Tone and Format Selection Spacing */
.tone-selection,
.format-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.tone-option,
.format-option {
    margin-bottom: 0;
}

/* Time Slots Spacing */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}

.time-slots input {
    margin-bottom: 0;
}

/* Card Content Spacing */
.card-content {
    padding: 24px;
}

.card-content>*:last-child {
    margin-bottom: 0;
}

/* Form Actions Spacing */
.blogforge-ai-form-actions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Button Styles */
.blogforge-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blogforge-ai-btn.primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.blogforge-ai-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.blogforge-ai-btn.secondary {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.blogforge-ai-btn.secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Responsive Form Spacing */
@media (max-width: 768px) {
    .blogforge-ai-form-row {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .config-grid,
    .variety-grid {
        gap: 24px;
    }

    .tone-selection,
    .format-selection {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .time-slots {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .blogforge-ai-form-actions {
        margin-top: 30px;
        padding-top: 24px;
        flex-direction: column;
    }

    .blogforge-ai-btn {
        width: 100%;
        justify-content: center;
    }
}

/* En
hanced Card Spacing for Form Sections */
.blogforge-ai-form .blogforge-ai-card {
    margin-bottom: 50px;
}

.blogforge-ai-form .blogforge-ai-card:last-child {
    margin-bottom: 30px;
}


/* Status Indicator Icons - Consolidated */
.status-indicator .dashicons {
    font-size: 32px;
    color: inherit;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Removed duplicate status-stats - using version above with 24px gap */

.stat-item {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: black;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Major Section Cards Enhanced Spacing */
.blogforge-ai-card:has(.card-header h3:contains("Master Control")),
.blogforge-ai-card:has(.card-header h3:contains("Content Configuration")),
.blogforge-ai-card:has(.card-header h3:contains("Content Variety")),
.blogforge-ai-card:has(.card-header h3:contains("Content Settings")),
.blogforge-ai-card:has(.card-header h3:contains("Publishing Schedule")),
.blogforge-ai-card:has(.card-header h3:contains("Post Organization")) {
    margin-bottom: 50px;
    position: relative;
}

/* Card separators removed — using margin-bottom spacing instead */

/* Enhanced spacing for two-column layout */
.blogforge-ai-two-column {
    margin-top: 40px;
}

/* Responsive spacing adjustments */
@media (max-width: 768px) {
    .blogforge-ai-form .blogforge-ai-card {
        margin-bottom: 40px;
    }
}


/* Enhanced Form Elements for Auto Posting */
.keyword-input-container {
    position: relative;
    margin-bottom: 45px;
}

.keyword-input-container textarea {
    width: 100%;
    min-height: 140px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    resize: vertical;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.keyword-input-container textarea:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
    outline: none;
    background: #ffffff;
    transform: translateY(-1px);
}



/* Feed Sources Grid */
.feed-sources-grid {
    display: grid;
    gap: 20px;
}

.feed-source-card {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.feed-source-card:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.feed-info {
    flex: 1;
}

.feed-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.feed-title strong {
    font-size: 16px;
    color: #1f2937;
}

.feed-url {
    margin-bottom: 0;
}

.feed-url a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
}

.feed-url a:hover {
    color: #10b981;
    text-decoration: underline;
}

.feed-actions-menu {
    position: relative;
}

.feed-menu-toggle {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

.feed-menu-toggle:hover {
    background: #e5e7eb;
    color: #374151;
}



.feed-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feed-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feed-stat .stat-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.feed-stat .stat-value {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    gap: 40px;
}

.settings-section {
    margin-bottom: 0;
}

/* Checkbox Styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkmark {
    display: none;
}

/* Bulk Actions */
.bulk-actions {
    display: flex;
    gap: 8px;
}

.blogforge-ai-btn.small {
    padding: 8px 16px;
    font-size: 13px;
}

/* Post Items in Sidebar */
.post-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.post-item:last-child {
    border-bottom: none;
}

.post-item strong {
    font-size: 14px;
    color: #1f2937;
    line-height: 1.3;
}

.post-item small {
    font-size: 12px;
    color: #6b7280;
}

/* Tips List */
.tips-list {
    padding: 20px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 13px;
    line-height: 1.4;
}

.tip-item .dashicons {
    color: #10b981;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.tip-item span:last-child {
    color: #374151;
}

/* Responsive Design for Feed Generator */
@media (max-width: 768px) {
    .feed-input-container {
        gap: 12px;
    }

    .feed-actions {
        flex-direction: column;
    }

    .feed-header {
        flex-direction: column;
        gap: 12px;
    }

    .feed-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .settings-grid {
        gap: 30px;
    }

    .feed-actions-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .feed-url-input {
        font-size: 14px;
        height: 44px;
        padding-left: 44px !important;
    }

    .input-with-icon .dashicons {
        left: 12px;
        font-size: 16px;
    }

    .feed-source-card {
        padding: 16px;
    }

    .feed-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Button Loading States */
.blogforge-ai-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.blogforge-ai-btn:disabled:hover {
    transform: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Feed Test Results */
.feed-test-results {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.feed-test-results h4 {
    margin: 0 0 16px 0;
    color: #1f2937;
    font-size: 16px;
}

.test-result {
    margin: 12px 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.test-result.success {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.test-result.error {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

/* Modal Styles */
.feed-preview-modal,
.test-results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.feed-preview-content,
.test-results-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.feed-preview-content h3,
.test-results-content h3 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 20px;
    font-weight: 600;
}

.close-preview,
.close-results {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-preview:hover,
.close-results:hover {
    background: #f3f4f6;
    color: #374151;
}

.preview-items .preview-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
}

.preview-items .preview-item:last-child {
    border-bottom: none;
}

.preview-items h4 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.preview-items p {
    margin: 0 0 8px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

.preview-items small {
    color: #9ca3af;
    font-size: 12px;
}

/* Notification Enhancements */
.blogforge-ai-notice {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 9999;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    max-width: 400px;
    font-size: 14px;
    font-weight: 500;
    animation: notificationSlideIn 0.3s ease-out;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.blogforge-ai-notice.success {
    background: rgba(16, 185, 129, 0.95);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.blogforge-ai-notice.error {
    background: rgba(239, 68, 68, 0.95);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.blogforge-ai-notice.info {
    background: rgba(59, 130, 246, 0.95);
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Responsive Modal Adjustments */
@media (max-width: 768px) {

    .feed-preview-content,
    .test-results-content {
        margin: 20px;
        padding: 24px;
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 40px);
    }

    .blogforge-ai-notice {
        top: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}

/* Loading Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.blogforge-ai-btn .dashicons-update {
    animation: spin 1s linear infinite;
}

/* ==
======================================
   Two-Column Form Layout Styles
   ======================================== */

/* Main form grid container */
.blogforge-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
}

/* Individual form columns */
.blogforge-form-column-1,
.blogforge-form-column-2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Full width sections (like Image Generation Settings) */
.blogforge-form-full-width {
    grid-column: 1 / -1;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

/* Enhanced form row styles for two-column layout */
.blogforge-form-grid .blogforge-ai-form-row {
    margin-bottom: 0;
    /* Remove default margin since we use gap */
    display: flex;
    flex-direction: column;
}

.blogforge-form-grid .blogforge-ai-form-row label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blogforge-form-grid .blogforge-ai-form-row input[type="text"],
.blogforge-form-grid .blogforge-ai-form-row input[type="number"],
.blogforge-form-grid .blogforge-ai-form-row select,
.blogforge-form-grid .blogforge-ai-form-row textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.blogforge-form-grid .blogforge-ai-form-row input[type="text"]:focus,
.blogforge-form-grid .blogforge-ai-form-row input[type="number"]:focus,
.blogforge-form-grid .blogforge-ai-form-row select:focus,
.blogforge-form-grid .blogforge-ai-form-row textarea:focus {
    outline: none;
    border-color: #26BA8A;
    box-shadow: 0 0 0 3px rgba(38, 186, 138, 0.1);
}

/* Textarea specific styling */
.blogforge-form-grid .blogforge-ai-form-row textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.5;
}

/* Number input specific styling */
.blogforge-form-grid .blogforge-ai-form-row input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.blogforge-form-grid .blogforge-ai-form-row input[type="number"]::-webkit-outer-spin-button,
.blogforge-form-grid .blogforge-ai-form-row input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Description text styling */
.blogforge-form-grid .blogforge-ai-form-row .description {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    line-height: 1.4;
    font-style: italic;
}

/* Required field indicator */
.blogforge-form-grid .blogforge-ai-form-row label::after {
    content: '';
}

.blogforge-form-grid .blogforge-ai-form-row label[for="title"]::after,
.blogforge-form-grid .blogforge-ai-form-row label[for="primary_keyword"]::after {
    content: ' *';
    color: #ef4444;
    font-weight: bold;
}

/* FAQ Count field special styling */
.blogforge-form-grid .blogforge-ai-form-row input[name="faq_count"] {
    max-width: 120px;
}

/* Enhanced hover effects */
.blogforge-form-grid .blogforge-ai-form-row input[type="text"]:hover,
.blogforge-form-grid .blogforge-ai-form-row input[type="number"]:hover,
.blogforge-form-grid .blogforge-ai-form-row select:hover,
.blogforge-form-grid .blogforge-ai-form-row textarea:hover {
    border-color: #cbd5e1;
}

/* Form validation styles */
.blogforge-form-grid .blogforge-ai-form-row input:invalid {
    border-color: #ef4444;
}

.blogforge-form-grid .blogforge-ai-form-row input:valid {
    border-color: #10b981;
}

/* ========================================
   Responsive Design for Mobile Devices
   ======================================== */

/* Tablet breakpoint */
@media (max-width: 1024px) {
    .blogforge-form-grid {
        gap: 25px;
    }

    .blogforge-ai-admin {
        margin: 15px;
        padding: 15px;
    }
}

/* Mobile breakpoint - Stack to single column */
@media (max-width: 768px) {
    .blogforge-form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blogforge-form-full-width {
        grid-column: 1;
        margin-top: 15px;
        padding-top: 15px;
    }

    .blogforge-ai-admin {
        margin: 10px;
        padding: 10px;
    }

    .blogforge-ai-header h1 {
        font-size: 24px;
    }

    .blogforge-form-grid .blogforge-ai-form-row textarea {
        min-height: 80px;
    }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
    .blogforge-form-grid {
        gap: 15px;
    }

    .blogforge-form-grid .blogforge-ai-form-row input[type="text"],
    .blogforge-form-grid .blogforge-ai-form-row input[type="number"],
    .blogforge-form-grid .blogforge-ai-form-row select,
    .blogforge-form-grid .blogforge-ai-form-row textarea {
        padding: 10px 12px;
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    .blogforge-ai-header {
        padding: 20px 0;
    }

    .blogforge-ai-header h1 {
        font-size: 20px;
    }
}

/* ========================================
   Form Section Enhancements
   ======================================== */

/* Image Generation Settings section styling */
.blogforge-ai-form-section.blogforge-form-full-width {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.blogforge-ai-form-section.blogforge-form-full-width h3 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blogforge-ai-form-section.blogforge-form-full-width h3 .dashicons {
    color: #26BA8A;
}

/* ========================================
   Form Accessibility Enhancements
   ======================================== */

/* Focus indicators for keyboard navigation */
.blogforge-form-grid .blogforge-ai-form-row input:focus-visible,
.blogforge-form-grid .blogforge-ai-form-row select:focus-visible,
.blogforge-form-grid .blogforge-ai-form-row textarea:focus-visible {
    outline: 2px solid #26BA8A;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {

    .blogforge-form-grid .blogforge-ai-form-row input[type="text"],
    .blogforge-form-grid .blogforge-ai-form-row input[type="number"],
    .blogforge-form-grid .blogforge-ai-form-row select,
    .blogforge-form-grid .blogforge-ai-form-row textarea {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .blogforge-form-grid .blogforge-ai-form-row input[type="text"],
    .blogforge-form-grid .blogforge-ai-form-row input[type="number"],
    .blogforge-form-grid .blogforge-ai-form-row select,
    .blogforge-form-grid .blogforge-ai-form-row textarea {
        transition: none;
    }
}

/* ========================================
   Form Loading States
   ======================================== */

.blogforge-form-grid.loading {
    opacity: 0.7;
    pointer-events: none;
}

.blogforge-form-grid.loading .blogforge-ai-form-row input,
.blogforge-form-grid.loading .blogforge-ai-form-row select,
.blogforge-form-grid.loading .blogforge-ai-form-row textarea {
    background-color: #f3f4f6;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .blogforge-form-grid {
        display: block;
    }

    .blogforge-form-column-1,
    .blogforge-form-column-2 {
        break-inside: avoid;
        margin-bottom: 20px;
    }

    .blogforge-ai-form-row {
        break-inside: avoid;
        margin-bottom: 15px;
    }
}

/*
 ========================================
   Help Tooltips and User Interface Enhancements
   ======================================== */

/* Help tooltip styling */
.blogforge-help-tooltip {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #26BA8A;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 11px;
    line-height: 16px;
    cursor: help;
    margin-left: 5px;
    position: relative;
}

.blogforge-help-tooltip:hover {
    background: #1e8a66;
}

/* Tooltip content */
.blogforge-help-tooltip::after {
    content: attr(title);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    max-width: 250px;
    white-space: normal;
    width: max-content;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.blogforge-help-tooltip::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.blogforge-help-tooltip:hover::after,
.blogforge-help-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Enhanced form section headers */
.blogforge-ai-form-section h3 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.blogforge-ai-form-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #26BA8A;
    border-radius: 2px;
}

/* Enhanced success/error notifications */
.blogforge-notification {
    border-left: 4px solid #26BA8A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0 6px 6px 0;
}

.blogforge-notification.notice-error {
    border-left-color: #dc3545;
}

.blogforge-notification p {
    margin: 0.5em 0;
    line-height: 1.5;
}

/* Enhanced button styling */
.manual-generator-form .button-primary {
    background: linear-gradient(135deg, #26BA8A 0%, #1e8a66 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    text-shadow: none;
    box-shadow: 0 2px 4px rgba(38, 186, 138, 0.3);
    transition: all 0.3s ease;
}

.manual-generator-form .button-primary:hover {
    background: linear-gradient(135deg, #1e8a66 0%, #26BA8A 100%);
    box-shadow: 0 4px 8px rgba(38, 186, 138, 0.4);
    transform: translateY(-1px);
}

.manual-generator-form .button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(38, 186, 138, 0.3);
}

.manual-generator-form .button-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form progress indicator */
.generation-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.generation-progress .dashicons {
    font-size: 16px;
}

.progress-text {
    font-weight: normal;
}

/* Enhanced card styling */
.blogforge-ai-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.blogforge-ai-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.blogforge-ai-card .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
}

.blogforge-ai-card .card-content {
    padding: 25px;
}

/* Removed duplicate 8px status indicators - using consolidated version */

/* Enhanced mobile responsiveness */
@media (max-width: 480px) {
    .blogforge-help-tooltip::after {
        max-width: 200px;
        font-size: 11px;
    }

    .blogforge-ai-card .card-header,
    .blogforge-ai-card .card-content {
        padding: 15px;
    }

    .manual-generator-form .button-primary {
        width: 100%;
        padding: 14px 20px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .blogforge-help-tooltip::after {
        background: #1f2937;
        color: #f9fafb;
    }

    .blogforge-help-tooltip::before {
        border-top-color: #1f2937;
    }
}

/* Print styles */
@media print {

    .blogforge-help-tooltip,
    .generation-progress,
    .blogforge-notification {
        display: none !important;
    }
}

/*
 ========================================
   Generation Message Area Styles
   ======================================== */

/* Message area container */
.generation-message-area {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

/* Individual message styling */
.generation-message {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.3s ease-out;
    position: relative;
}

.generation-message-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #10b981;
    color: #065f46;
}

.generation-message-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #ef4444;
    color: #991b1b;
}

/* Message icon */
.generation-message-icon {
    margin-right: 12px;
    margin-top: 2px;
}

.generation-message-success .generation-message-icon .dashicons {
    color: #10b981;
    font-size: 20px;
}

.generation-message-error .generation-message-icon .dashicons {
    color: #ef4444;
    font-size: 20px;
}

/* Message content */
.generation-message-content {
    flex: 1;
    line-height: 1.5;
}

.generation-message-text {
    font-size: 14px;
    font-weight: 500;
}

.generation-message-text strong {
    font-weight: 600;
}

/* Generation details */
.generation-details {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.9;
    font-weight: normal;
}

/* Generation actions */
.generation-actions {
    margin-top: 12px;
}

.generation-actions .button {
    font-size: 13px;
    padding: 6px 12px;
    height: auto;
    line-height: 1.4;
}

.generation-actions .button-primary {
    background: #10b981;
    border-color: #10b981;
    text-shadow: none;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.generation-actions .button-primary:hover {
    background: #059669;
    border-color: #059669;
}

/* Dismiss button */
.generation-message-dismiss {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    align-self: flex-start;
}

.generation-message-dismiss:hover {
    background: rgba(0, 0, 0, 0.1);
}

.generation-message-dismiss .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.generation-message-success .generation-message-dismiss .dashicons {
    color: #065f46;
}

.generation-message-error .generation-message-dismiss .dashicons {
    color: #991b1b;
}

/* Animation */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .generation-message {
        padding: 12px 16px;
    }

    .generation-message-icon {
        margin-right: 8px;
    }

    .generation-message-text {
        font-size: 13px;
    }

    .generation-details {
        font-size: 12px;
    }

    .generation-actions .button {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .generation-message-success {
        background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
        color: #a7f3d0;
    }

    .generation-message-error {
        background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
        color: #fecaca;
    }
}

/* Print styles */
@media print {
    .generation-message-area {
        display: none !important;
    }
}

/* Enh
anced API Usage Card Styles */
.api-usage-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.api-usage-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.api-usage-card .card-header h3 {
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.usage-period {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.usage-overview {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.usage-stat {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.usage-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.usage-stat.primary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.usage-stat .stat-icon {
    margin-bottom: 10px;
}

.usage-stat .stat-icon .dashicons {
    font-size: 24px;
    opacity: 0.8;
}

.usage-stat .stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 5px;
}

.usage-stat .stat-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 5px;
}

.usage-stat .stat-description {
    display: block;
    font-size: 12px;
    opacity: 0.7;
    line-height: 1.4;
}

.usage-insights {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.insight-item:last-child {
    margin-bottom: 0;
}

.insight-item.warning {
    background: rgba(255, 193, 7, 0.2);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.insight-item.success {
    background: rgba(40, 167, 69, 0.2);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.insight-icon .dashicons {
    font-size: 18px;
    margin-top: 2px;
}

.insight-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.usage-tips {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.usage-tips h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.tips-list {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.tips-list li {
    position: relative;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

.tips-list li::before {
    content: '→';
    position: absolute;
    left: -15px;
    color: #ffd700;
    font-weight: bold;
}

.api-usage-card .card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.api-usage-card .card-actions .button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.api-usage-card .card-actions .button-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.api-usage-card .card-actions .button-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.api-usage-card .card-actions .button:not(.button-primary) {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.api-usage-card .card-actions .button:not(.button-primary):hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Responsive Design for API Usage */
@media (max-width: 768px) {
    .usage-overview {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .usage-stat .stat-number {
        font-size: 24px;
    }

    .api-usage-card .card-actions {
        flex-direction: column;
    }

    .api-usage-card .card-actions .button {
        justify-content: center;
    }
}

/* Enhanc
ed Content Configuration Section Headers */
.config-section .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.config-section .section-header .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
    color: #10b981;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.config-section .section-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.025em;
}

.config-section .section-header .required {
    color: #ef4444;
    font-weight: 600;
    margin-left: 4px;
}

/* Enhanced Keyword Counter - Positioned Outside Textarea */
.keyword-counter {
    position: absolute;
    bottom: -35px;
    right: 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    z-index: 10;
}

.keyword-counter .count {
    font-weight: 800;
}

/* Enhanced Description Styling */
.config-section .description {
    margin-top: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    border-left: 4px solid #10b981;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.config-section .description strong {
    color: #059669;
    font-weight: 700;
}

/* Config Grid Enhancement */
.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 8px;
}

/* Config Status Indicator */
.config-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.config-status .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.config-status .status-dot.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    animation: pulse-dot 2s infinite;
}

.config-status .status-dot.inactive {
    background: #d1d5db;
}

.config-status .status-text {
    color: #6b7280;
}

.config-status .status-dot.active+.status-text {
    color: #059669;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow: 0 0 16px rgba(16, 185, 129, 0.6);
    }

    100% {
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    }
}

/* Responsive Config Grid */
@media (max-width: 1024px) {
    .config-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .config-section {
        padding: 24px;
    }

    .config-section .section-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
}

@media (max-width: 768px) {
    .config-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .config-section .section-header h4 {
        font-size: 16px;
    }

    .config-section .section-header .dashicons {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }

    .keyword-input-container textarea {
        min-height: 120px;
        padding: 16px;
    }

    .keyword-counter {
        bottom: -30px;
        right: 0;
        padding: 4px 10px;
        font-size: 11px;
    }
}

/* E
nhanced Variety Section Styling */
.variety-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 8px;
}

.variety-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.variety-section:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.variety-section h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.variety-section h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 2px;
}

/* Enhanced Selection Cards */
.tone-selection,
.format-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.tone-option,
.format-option {
    cursor: pointer;
    transition: all 0.3s ease;
}

.tone-card,
.format-card {
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tone-card::before,
.format-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tone-option input:checked+.tone-card,
.format-option input:checked+.format-card {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

.tone-option input:checked+.tone-card::before,
.format-option input:checked+.format-card::before {
    transform: scaleX(1);
}

.tone-card:hover,
.format-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tone-card .dashicons,
.format-card .dashicons {
    font-size: 24px;
    color: #10b981;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tone-info,
.format-info {
    flex: 1;
}

.tone-info strong,
.format-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.tone-info small,
.format-info small {
    display: block;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* Responsive Variety Grid */
@media (max-width: 1024px) {
    .variety-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .variety-section {
        padding: 20px;
    }
}

@media (max-width: 768px) {

    .tone-selection,
    .format-selection {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tone-card,
    .format-card {
        padding: 16px;
    }

    .tone-card .dashicons,
    .format-card .dashicons {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
}

@keyframes pulse-white {
    0% {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 8px 24px rgba(0, 0, 0, 0.15);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.2), 0 12px 32px rgba(0, 0, 0, 0.2);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 8px 24px rgba(0, 0, 0, 0.15);
        transform: scale(1);
    }
}

/* Statu
s Overview Card Responsive Optimizations */
@media (max-width: 1024px) {
    .status-overview-card .status-stats {
        gap: 24px;
    }

    .status-overview-card .stat-item {
        padding: 12px 16px;
        min-width: 70px;
    }

    .status-overview-card .stat-number {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .status-overview-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 28px 24px;
    }

    .status-overview-card .status-indicator {
        margin: 0 auto;
    }

    .status-overview-card .status-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
        margin-left: 0;
    }

    .status-overview-card .stat-item {
        min-width: 60px;
        padding: 10px 14px;
    }

    .status-overview-card .stat-number {
        font-size: 20px;
    }

    .status-overview-card .stat-label {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .status-overview-content {
        padding: 24px 20px;
    }

    .status-overview-card .status-indicator {
        width: 60px;
        height: 60px;
    }

    .status-overview-card .status-indicator .dashicons {
        font-size: 24px;
    }

    .status-overview-card .status-info h3 {
        font-size: 20px;
    }

    .status-overview-card .status-info p {
        font-size: 14px;
    }
}

@keyframes pulse-green-light {
    0% {
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2), 0 8px 24px rgba(16, 185, 129, 0.15);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.15), 0 12px 32px rgba(16, 185, 129, 0.2);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2), 0 8px 24px rgba(16, 185, 129, 0.15);
        transform: scale(1);
    }
}

/* St
atus Overview Card Responsive Optimizations */
@media (max-width: 1024px) {
    .status-overview-card .status-stats {
        gap: 24px;
    }

    .status-overview-card.active .stat-item,
    .status-overview-card.inactive .stat-item {
        padding: 12px 16px;
        min-width: 70px;
    }

    .status-overview-card.active .stat-number,
    .status-overview-card.inactive .stat-number {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .status-overview-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 28px 24px;
    }

    .status-overview-card .status-indicator {
        margin: 0 auto;
    }

    .status-overview-card .status-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
        margin-left: 0;
    }

    .status-overview-card.active .stat-item,
    .status-overview-card.inactive .stat-item {
        min-width: 60px;
        padding: 10px 14px;
    }

    .status-overview-card.active .stat-number,
    .status-overview-card.inactive .stat-number {
        font-size: 20px;
    }

    .status-overview-card.active .stat-label,
    .status-overview-card.inactive .stat-label {
        font-size: 10px;
    }
}

/* Removed duplicate 480px media query - consolidated above */
/* Sta
tus Overview Card Icon Fixes */
.status-overview-card .status-indicator .dashicons {
    font-size: 32px;
    color: inherit;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Ensure icons are visible in both states */
.status-overview-card.active .status-indicator.active .dashicons {
    color: white;
}

.status-overview-card.active .status-indicator.inactive .dashicons {
    color: rgba(255, 255, 255, 0.7);
}

.status-overview-card.inactive .status-indicator.active .dashicons {
    color: white;
}

.status-overview-card.inactive .status-indicator.inactive .dashicons {
    color: #6b7280;
}

/* M
odern App-Style Icon for Status Indicators */
.status-indicator.modern-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.status-indicator.modern-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
}

.status-indicator.modern-icon .dashicons {
    color: white;
    font-size: 28px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



/* Different states for modern icon */
.status-indicator.modern-icon.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    animation: pulse-modern 3s infinite;
}

.status-indicator.modern-icon.inactive {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 8px 24px rgba(107, 114, 128, 0.3);
}

.status-indicator.modern-icon.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.status-indicator.modern-icon.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

/* Animation for modern icon */
@keyframes pulse-modern {
    0% {
        box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
        transform: scale(1);
    }
}

/* Responsive sizing for modern icon */
@media (max-width: 768px) {
    .status-indicator.modern-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .status-indicator.modern-icon::before {
        border-radius: 16px;
    }

    .status-indicator.modern-icon .dashicons {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .status-indicator.modern-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .status-indicator.modern-icon::before {
        border-radius: 14px;
    }

    .status-indicator.modern-icon .dashicons {
        font-size: 20px;
    }
}

/* Ico
n Utility Classes - App Style Icons */
.status-indicator.icon-edit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.status-indicator.icon-edit .dashicons::before {
    content: "\f464";
    /* dashicons-edit */
}

.status-indicator.icon-clock {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.status-indicator.icon-clock .dashicons::before {
    content: "\f469";
    /* dashicons-clock */
}

.status-indicator.icon-rss {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.status-indicator.icon-rss .dashicons::before {
    content: "\f303";
    /* dashicons-rss */
}

.status-indicator.icon-yes {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.status-indicator.icon-yes .dashicons::before {
    content: "\f147";
    /* dashicons-yes */
}

.status-indicator.icon-no {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.status-indicator.icon-no .dashicons::before {
    content: "\f158";
    /* dashicons-no */
}

.status-indicator.icon-dismiss {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 8px 24px rgba(107, 114, 128, 0.3);
}

.status-indicator.icon-dismiss .dashicons::before {
    content: "\f153";
    /* dashicons-dismiss */
}

/* Special styling for status overview cards */
.status-overview-card .status-indicator.modern-icon {
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.status-overview-card.active .status-indicator.modern-icon {
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.status-overview-card.active .status-indicator.modern-icon .dashicons {
    color: white;
}

.status-overview-card.inactive .status-indicator.modern-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 3px solid rgba(16, 185, 129, 0.2);
}

.status-overview-card.inactive .status-indicator.modern-icon .dashicons {
    color: white;
}

@keyframes pulse-green-modern {
    0% {
        box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
        transform: scale(1);
    }
}

/* Status O
verview Card Icon Styling - Final */
.status-overview-card .status-indicator .dashicons {
    font-size: 32px;
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced Provider Enable Row */
.provider-enable-row {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.provider-enable-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.provider-checkbox-wrapper {
    display: flex;
    align-items: center;
}

.provider-enable-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    margin: 0;
}

.provider-enable-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
}

.provider-name {
    font-size: 16px;
    font-weight: 600;
}

/* Enhanced Auto-available badge */
.auto-available-badge {
    background: linear-gradient(135deg, #26BA8A 0%, #20a574 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(38, 186, 138, 0.2);
}

.auto-available-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Provider Status Info */
.provider-status-info {
    margin-top: 8px;
}

.status-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid;
}

.status-message.success {
    background: #f0fdf4;
    border-left-color: #26BA8A;
    color: #166534;
}

.status-message.info {
    background: #eff6ff;
    border-left-color: #3b82f6;
    color: #1e40af;
}

.provider-status-badge .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

.provider-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.detail-label {
    color: #64748b;
    font-weight: 500;
}

.detail-value {
    font-weight: 600;
}

.detail-value.yes {
    color: #26BA8A;
}

.detail-value.no {
    color: #ef4444;
}

.detail-value.reason {
    color: #64748b;
    font-style: italic;
}

/* Rotating animation for loading states */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.rotating {
    animation: rotate 1s linear infinite;
}

/* Feed Actions Dropdown Styles */
.feed-actions-menu {
    position: relative;
    display: inline-block;
}

.feed-menu-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: #6b7280;
}

.feed-menu-toggle:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Duplicate removed - keeping only the first clean version */

/* Processing button specific styles */
.process-feed-btn {
    color: #059669 !important;
}

.process-feed-btn:hover {
    background: #ecfdf5 !important;
}

/* Test button specific styles */
.test-feed-btn {
    color: #0891b2 !important;
}

.test-feed-btn:hover {
    background: #ecfeff !important;
}

/* Rotating animation for loading states */
@keyframes rotating {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.rotating {
    animation: rotating 1s linear infinite;
}

/* Enhanced notice styles for feeds */
.blogforge-ai-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-weight: 500;
}

.blogforge-ai-notice.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.blogforge-ai-notice.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.blogforge-ai-notice.warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fed7aa;
}

.blogforge-ai-notice .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Feed source card enhancements */
.feed-source-card {
    transition: all 0.2s ease;
}

.feed-source-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Improved button states */
.blogforge-ai-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.blogforge-ai-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Mobile responsive dropdown */
@media (max-width: 768px) {
    .feed-actions-dropdown {
        right: -10px;
        min-width: 140px;
    }

    .feed-actions-dropdown button {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Add
 Feed Section Visual Separation */
.add-feed-card {
    border-left: 4px solid #26BA8A !important;
    background: linear-gradient(135deg, #f8fffe 0%, #f0fdf9 100%) !important;
}

.add-feed-card .card-header {
    background: rgba(38, 186, 138, 0.05) !important;
    border-bottom: 1px solid rgba(38, 186, 138, 0.1) !important;
}

.add-feed-card .header-icon {
    background: #26BA8A !important;
    color: white !important;
    border-radius: 8px;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Feed Settings Section Visual Separation */
.blogforge-ai-card:not(.add-feed-card):not(.status-overview-card) {
    border-left: 4px solid #6366f1 !important;
}

/* Form Actions Styling */
.blogforge-ai-form-actions {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-top: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.blogforge-ai-form-actions .blogforge-ai-btn {
    margin: 0;
}

/* Input field focus states */
#feed_url:focus {
    border-color: #26BA8A !important;
    box-shadow: 0 0 0 3px rgba(38, 186, 138, 0.1) !important;
}

/* Success state for feed input after adding */
#feed_url.success {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
}

/* Card Expand/Collapse Button */
.card-toggle-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.card-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #374151;
}

.card-toggle-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

/* Rotates the arrow icon when the button has the .collapsed class */
.card-toggle-btn.collapsed .dashicons {
    transform: rotate(180deg);
}

/* ====================================================
   DIAGNOSTICS PAGE STYLES
   ==================================================== */

/* Health Checks List */
.diag-checks-list {
    padding: 8px 0;
}

.diag-check-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.diag-check-item:last-child {
    border-bottom: none;
}

.diag-check-item:hover {
    background: #f8fafc;
}

.diag-check-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diag-check-icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.diag-check-info {
    flex: 1;
    min-width: 0;
}

.diag-check-label {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 2px;
}

.diag-check-message {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    word-break: break-word;
}

.diag-check-badge {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.diag-badge-success {
    background: #d1fae5;
    color: #065f46;
}

.diag-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.diag-badge-error {
    background: #fee2e2;
    color: #991b1b;
}

.diag-badge-active {
    background: #d1fae5;
    color: #065f46;
}

.diag-badge-configured {
    background: #e0e7ff;
    color: #3730a3;
}

.diag-badge-incomplete {
    background: #fef3c7;
    color: #92400e;
}

.diag-badge-inactive {
    background: #f3f4f6;
    color: #6b7280;
}

/* Provider Grid */
.diag-providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 20px 24px;
}

.diag-provider-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.diag-provider-card:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.diag-prov-active {
    border-color: #10b981;
    background: #f0fdf4;
}

.diag-prov-error {
    border-color: #ef4444;
    background: #fef2f2;
}

.diag-prov-configured {
    border-color: #6366f1;
    background: #eef2ff;
}

.diag-prov-incomplete {
    border-color: #f59e0b;
    background: #fffbeb;
}

.diag-prov-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.diag-prov-name {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.diag-prov-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
}

.diag-prov-status-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.diag-prov-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.diag-prov-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.diag-prov-detail:last-child {
    border-bottom: none;
}

.diag-detail-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.diag-detail-value {
    font-size: 13px;
    font-weight: 600;
}

.diag-val-yes {
    color: #059669;
}

.diag-val-no {
    color: #dc2626;
}

.diag-prov-reason {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    border-left: 3px solid #d1d5db;
}

.diag-prov-active .diag-prov-reason {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.diag-prov-error .diag-prov-reason {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

/* Diagnostics Actions */
.diag-actions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
}

.diag-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: left;
}

.diag-action-btn:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    text-decoration: none;
}

.diag-action-btn:hover .dashicons {
    color: white;
}

.diag-action-btn .dashicons {
    color: #26BA8A;
    font-size: 18px;
    width: 18px;
    height: 18px;
    transition: color 0.2s ease;
}

/* Status Overview specific to diagnostics */
.status-indicator.error {
    background: #fee2e2;
}

.status-indicator.error .dashicons {
    color: #ef4444;
}

.status-indicator.warning {
    background: #fef3c7;
}

.status-indicator.warning .dashicons {
    color: #f59e0b;
}

/* Responsive for diagnostics */
@media (max-width: 782px) {
    .diag-providers-grid {
        grid-template-columns: 1fr;
    }

    .diag-check-item {
        padding: 12px 16px;
    }

    .diag-prov-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ====================================================
   LIVE PULSE DOT (Logs page)
   ==================================================== */
.live-pulse-dot {
    position: relative;
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: livePulse 2s infinite;
}

.live-pulse-dot::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.3);
    animation: livePulseRing 2s infinite;
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes livePulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.log-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.log-status .status-text {
    font-size: 12px;
    font-weight: 600;
    color: #059669;
    letter-spacing: 0.02em;
}

/* Log entry clickable header */
.log-entry-header {
    cursor: pointer;
    user-select: none;
}

.log-entry-header:hover {
    background: #f8fafc !important;
}

.modern-log-entry.expanded .log-expand-btn .dashicons {
    transform: rotate(180deg);
}

.log-expand-btn .dashicons {
    transition: transform 0.25s ease;
}