/* Blogibot AI Dashboard Styles - Unique class names (blog82ai-) */

/* Reset and Base Styles */

/* Dashboard Header Styles */
.blog82ai-dashboard-actions {
    display: flex;
    gap: 10px;
}

/* Unified page header for AI Blog subtabs (match Site Content Analyzer) */
.blog82ai-generate-new-blog .page-header,
.blog82ai-scheduled-blogs .page-header,
.blog82ai-blog-history .page-header,
.blog82ai-site-content-analyzer .page-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 15px;
}

.blog82ai-generate-new-blog .page-header h2,
.blog82ai-scheduled-blogs .page-header h2,
.blog82ai-blog-history .page-header h2,
.blog82ai-site-content-analyzer .page-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #23282d;
}

.blog82ai-generate-new-blog .page-header p,
.blog82ai-scheduled-blogs .page-header p,
.blog82ai-blog-history .page-header p,
.blog82ai-site-content-analyzer .page-header p {
    margin: 5px 0 0;
    color: #666;
    font-size: 14px;
}

.blog82ai-dashboard-actions .button {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

/* Updated styles for .blog82ai-nav-tab */
/* Removed incorrect block display override to restore inline-block nav tabs */
/* Wrapper for main nav tabs */
.blog82ai-nav-tab-wrapper {
    border-bottom: 1px solid #ccd0d4;
    margin: 0 0 20px;
    padding: 0;
}
/* Navigation actions under main tabs */
.blog82ai-nav-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}
/* Style for nav-action buttons */
.blog82ai-nav-actions .button {
    margin: 0;
}
/* Tab content hidden by default, fade in when active */
.blog82ai-nav-tab-content, .blog82ai-tab-content {
    display: none;
    animation: blog82ai-fadeIn 0.3s ease-in;
}
.blog82ai-nav-tab-content.blog82ai-active, .blog82ai-tab-content.blog82ai-active {
    display: block;
}

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

/* Main nav tabs */
.blog82ai-nav-tab {
    background: #f1f1f1;
    border: 1px solid #ccd0d4;
    border-bottom: none;
    color: #0073aa;
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    margin: 0 8px -1px 0;
    padding: 10px 18px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 3px 3px 0 0;
    min-width: 100px;
}
.blog82ai-nav-tab:hover:not(.blog82ai-nav-tab-active) {
    background: #fff;
    color: #0073aa;
}
.blog82ai-nav-tab.blog82ai-nav-tab-active {
    background: #fff;
    border-bottom: 1px solid #fff;
    color: #000;
}

/* Disabled nav tabs */
.blog82ai-nav-tab.blog82ai-nav-tab-disabled {
    background: #f9f9f9;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
    border-color: #e5e5e5;
}

.blog82ai-nav-tab.blog82ai-nav-tab-disabled:hover {
    background: #f9f9f9;
    color: #999;
    cursor: not-allowed;
}

/* Dashboard Metrics */
.blog82ai-dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    align-items: stretch;
}
.blog82ai-metric-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.blog82ai-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #0073aa;
}
.blog82ai-metric-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    margin-bottom: 12px;
}
.blog82ai-metric-title {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.blog82ai-metric-value {
    font-size: 28px;
    font-weight: 700;
    color: #23282d;
    margin-bottom: 6px;
}
.blog82ai-metric-note {
    font-size: 12px;
    color: #46b450;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .blog82ai-dashboard-metrics {
        flex-wrap: wrap;
        gap: 16px;
    }
    .blog82ai-metric-card {
        min-width: 220px;
        flex: 1 1 220px;
    }
}

@media (max-width: 900px) {
    .blog82ai-dashboard-metrics {
        flex-direction: column;
        gap: 16px;
    }
    .blog82ai-metric-card {
        min-width: 0;
        width: 100%;
    }
}

/* Dashboard Rows */
.blog82ai-dashboard-rows {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
    padding-bottom: 20px;
    margin-bottom: 0;
}
.blog82ai-dashboard-row {
    display: flex;
    gap: 20px;
}
.blog82ai-dashboard-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.blog82ai-dashboard-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #23282d;
    margin-bottom: 12px;
}
.blog82ai-dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.blog82ai-dashboard-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    color: #23282d;
    font-weight: 500;
    margin-bottom: 18px;
    position: relative;
}
.blog82ai-dashboard-list-item:last-child {
    margin-bottom: 0;
}

/* Progress bar styles for category list */
.blog82ai-dashboard-list-item-bar-bg {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    height: 8px;
    background: #f1f3f5;
    border-radius: 6px;
    z-index: 0;
}
.blog82ai-dashboard-list-item-bar {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 8px;
    background: #0073aa;
    border-radius: 6px;
    z-index: 1;
}

@media (max-width: 900px) {
    .blog82ai-dashboard-metrics, .blog82ai-dashboard-row {
        flex-direction: column;
    }
    .blog82ai-dashboard-metrics > *, .blog82ai-dashboard-row > * {
        min-width: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 600px) {
    .blog82ai-wrap {
        margin: 10px 0 0 0;
    }
    .blog82ai-dashboard-card, .blog82ai-metric-card {
        padding: 12px;
    }
    .blog82ai-dashboard-card-title {
        font-size: 14px;
    }
    .blog82ai-metric-value {
        font-size: 20px;
    }
    .blog82ai-dashboard-list-item {
        font-size: 13px;
        margin-bottom: 12px;
    }
    .blog82ai-dashboard-list-item-bar-bg, .blog82ai-dashboard-list-item-bar {
        width: 45%;
        height: 6px;
    }
}

.blog82ai-pill {
    display: inline-block;
    background: #f5f6f8;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border-radius: 16px;
    padding: 4px 16px;
    min-width: 40px;
    text-align: center;
    margin-left: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.blog82ai-pill-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.blog82ai-pill-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.blog82ai-pill-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@media (max-width: 600px) {
    .blog82ai-pill {
        font-size: 12px;
        padding: 3px 10px;
        min-width: 28px;
    }
}

/* System Status Widget Styles */
.blog82ai-status-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 12px;
}
.blog82ai-status-item {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    min-height: 40px;
}
.blog82ai-status-item.blog82ai-status-success {
    border-left: 4px solid #46b450;
    color: #23282d;
}
.blog82ai-status-item.blog82ai-status-warning {
    border-left: 4px solid #ffb900;
    color: #b26a00;
}
.blog82ai-status-icon {
    font-size: 22px;
    margin-right: 14px;
    flex-shrink: 0;
}
.blog82ai-status-label {
    flex: 1;
    display: block;
}
.blog82ai-status-btn {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #d7263d;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 6px 18px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: background 0.2s, color 0.2s;
}
.blog82ai-status-btn:hover {
    background: #f5f6f8;
    color: #a81c2a;
}
@media (max-width: 600px) {
    .blog82ai-status-item {
        font-size: 13px;
        padding: 10px 8px;
    }
    .blog82ai-status-icon {
        font-size: 16px;
        margin-right: 8px;
    }
    .blog82ai-status-btn {
        font-size: 12px;
        padding: 4px 10px;
        right: 8px;
    }
}

/* Quick Actions Widget Styles */
.blog82ai-actions-list {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.blog82ai-action-item {
    background: #fff;
    border: 2px solid #f1f3f5;
    border-radius: 10px;
    padding: 18px 14px 12px 14px;
    min-width: 140px;
    max-width: 200px;
    flex: 1 1 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: border 0.2s, box-shadow 0.2s;
    position: relative;
}
.blog82ai-action-item-active,
.blog82ai-action-item:hover {
    border: 2px solid #0073aa;
    box-shadow: 0 2px 8px rgba(0,115,170,0.08);
}
.blog82ai-action-icon {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
    line-height: 1;
}
.blog82ai-action-title {
    font-size: 15px;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 4px;
    text-align: center;
}
.blog82ai-action-item:not(.blog82ai-action-item-active) .blog82ai-action-title {
    color: #23282d;
}
.blog82ai-action-desc {
    font-size: 12px;
    color: #666;
    text-align: center;
}
@media (max-width: 900px) {
    .blog82ai-actions-list {
        flex-direction: column;
        gap: 12px;
    }
    .blog82ai-action-item {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        padding: 12px 8px 8px 8px;
    }
    .blog82ai-action-icon {
        font-size: 20px;
        margin-bottom: 6px;
    }
    .blog82ai-action-title {
        font-size: 13px;
    }
}

/* License CTA block - elegant and prominent */
.blog82ai-license-cta-section {
    margin: 12px 0 8px 0;
}

/* Reduce bottom spacing for license management blocks so pages
   with compact content don't force a page scrollbar. */
.blog82ai-license-management {
    margin-bottom: 12px;
    padding: 20px 24px 12px 24px;
    max-width: 100%;
    box-sizing: border-box;
}
.blog82ai-form-section.blog82ai-license-active-section {
    margin-bottom: 12px;
    padding: 16px 20px 10px 20px;
    max-width: 100%;
    box-sizing: border-box;
}
.blog82ai-license-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #006ea3 0%, #004f78 100%);
    color: #fff;
    padding: 14px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.blog82ai-license-cta-content {
    display: flex;
    gap: 16px;
    align-items: center;
}
.blog82ai-license-cta-icon .dashicons {
    font-size: 34px;
    color: #fff;
}
.blog82ai-license-cta-text h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.blog82ai-license-cta-text p {
    margin: 0;
    color: rgba(255,255,255,0.92);
    font-size: 14px;
}
.blog82ai-license-cta-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.blog82ai-license-cta .button {
    border-radius: 6px;
}
.blog82ai-license-cta .button.button {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
}
.blog82ai-license-cta .button.button-primary {
    background: #fff;
    color: #005a8b;
    border: none;
}

@media (max-width: 700px) {
    .blog82ai-license-cta { flex-direction: column; align-items: flex-start; gap: 12px; }
    .blog82ai-license-cta-actions { width: 100%; justify-content: flex-start; }
}

/* Secondary subtabs */
.blog82ai-subtabs {
    margin-bottom: 20px;
}
.blog82ai-subtab {
    background: #fff;
    border: 1px solid #ccd0d4;
    color: #23282d;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    margin: 0 5px 0 0;
    padding: 8px 12px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
    border-radius: 3px;
}
.blog82ai-subtab:hover:not(.blog82ai-subtab-active) {
    background: #f1f1f1;
}
.blog82ai-subtab-active {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff !important;
}
.blog82ai-subtab-active:hover {
    color: #fff;
}
/* Subtab icons spacing */
.blog82ai-subtab .dashicons {
    margin-right: 8px;
    vertical-align: middle;
    font-size: 18px;
}
/* Placeholder styles for components under development */
.blog82ai-placeholder {
    background: #f8f9fa;
    border: 2px dashed #e1e5e9;
    border-radius: 8px;
    padding: 60px 40px;
    text-align: center;
    color: #646970;
    font-size: 16px;
    font-weight: 500;
    margin: 20px 0;
    position: relative;
}

.blog82ai-placeholder::before {
    content: "🚧";
    font-size: 32px;
    display: block;
    margin-bottom: 16px;
}

.blog82ai-placeholder::after {
    content: "This component will be available soon.";
    display: block;
    font-size: 14px;
    color: #8c8f94;
    margin-top: 8px;
}

/* Tab transition improvements */
.blog82ai-nav-tab-content {
    min-height: 0;
}

/* Responsive improvements for tabs */
@media (max-width: 768px) {
    .blog82ai-nav-tab-wrapper {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .blog82ai-subtabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .blog82ai-placeholder {
        padding: 40px 20px;
        font-size: 14px;
    }
    
    .blog82ai-placeholder::before {
        font-size: 24px;
        margin-bottom: 12px;
    }
}


