/**
 * AIAuto Content Writing Assistant Admin Styles
 */

/* Blog Automator Menu Styling */
#adminmenu .wp-menu-image.dashicons-admin-generic:before {
    color: #0073aa;
}

/* Settings form styling */
.form-table th {
    width: 200px;
}

.form-table h2 {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
    color: #23282d;
}

.form-table tr:first-child th {
    padding-top: 20px;
}

/* Tab navigation styling */
.nav-tab-wrapper {
    margin-bottom: 20px;
}

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

/* Progress Management specific styling */
.progress-status {
    font-weight: 600;
}

.progress-status.pending {
    color: #f56e28;
}

.progress-status.processing {
    color: #0073aa;
}

.progress-status.completed {
    color: #46b450;
}

.progress-status.generated-chapters {
    color: #0073aa;
}

.progress-status.generated-content {
    color: #46b450;
}

.progress-status.generated-metadata {
    color: #00a32a;
    font-weight: 700;
}

.progress-status.generated-images {
    color: #8c8f94;
    font-weight: 700;
}

.progress-status.completed-no-images {
    color: #646970;
    font-weight: 700;
}

.progress-status.completed {
    color: #000000;
    font-weight: 900;
}

.progress-status.failed {
    color: #dc3232;
}

/* Progress indicators */
.progress-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.progress-indicator.pending {
    background-color: #f56e28;
}

.progress-indicator.processing {
    background-color: #0073aa;
}

.progress-indicator.completed {
    background-color: #46b450;
}

.progress-indicator.generated-chapters {
    background-color: #0073aa;
}

.progress-indicator.generated-content {
    background-color: #46b450;
}

.progress-indicator.generated-metadata {
    background-color: #00a32a;
}

.progress-indicator.generated-images {
    background-color: #8c8f94;
}

.progress-indicator.completed-no-images {
    background-color: #646970;
}

.progress-indicator.completed {
    background-color: #000000;
}

.progress-indicator.failed {
    background-color: #dc3232;
}

/* Form styling for post generator */
.aiauto-form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

.aiauto-form-section h3 {
    margin-top: 0;
    color: #23282d;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.aiauto-form-row {
    margin-bottom: 15px;
}

.aiauto-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.aiauto-form-row input,
.aiauto-form-row select,
.aiauto-form-row textarea {
    width: 100%;
    max-width: 400px;
}

.aiauto-form-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Success and error notices */
.notice-success {
    border-left-color: #46b450;
}

.notice-error {
    border-left-color: #dc3232;
}

/* Custom success message styling */
.aiauto-success-message {
    margin: 20px 0;
    padding: 15px;
    background: #f0f8ff;
    border: 1px solid #0073aa;
    border-radius: 4px;
}

.aiauto-success-message p {
    margin: 5px 0;
}

.aiauto-success-message a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.aiauto-success-message a:hover {
    text-decoration: underline;
}

/* Custom notice styling */
.aiauto-notice {
    margin: 20px 0;
}

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

.tab-content h2 {
    margin-bottom: 15px;
}

.tab-content table {
    margin-top: 15px;
}

.tab-content th {
    font-weight: 600;
}

.tab-content td {
    vertical-align: top;
}

.nav-tab-wrapper {
    margin-bottom: 0;
}

/* Responsive table */
@media screen and (max-width: 782px) {
    .tab-content table {
        font-size: 12px;
    }
    
    .tab-content th,
    .tab-content td {
        padding: 8px 4px;
    }
} 

/* Database table styles */
.wp-list-table .column-id {
    width: 70px;
}

.wp-list-table .column-actions {
    width: 60px;
    text-align: center;
}

.wp-list-table .column-status {
    width: 150px;
    text-align: center;
}

.wp-list-table .column-created {
    width: 120px;
}

.wp-list-table .column-created_date {
    width: 100px;
}

.wp-list-table .column-updated_date {
    width: 100px;
}

/* Progress Management Page Column Widths */
.wp-list-table .column-topic {
    width: 50%;
}

.wp-list-table .column-chapters {
    width: 30%;
}

/* Status indicators */
.status-pending {
    color: #f56e28;
    font-weight: 600;
}

.status-processing {
    color: #0073aa;
    font-weight: 600;
}

.status-completed {
    color: #46b450;
    font-weight: 600;
}

.status-failed {
    color: #dc3232;
    font-weight: 600;
}

/* Enhanced Progress Status Colors */
.status-todo,
.status-pending {
    color: #f56e28 !important;
    font-weight: 700;
    background-color: #fff5f0;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #f56e28;
}

.status-processing {
    color: #0073aa !important;
    font-weight: 700;
    background-color: #f0f8ff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #0073aa;
}

.status-generated-chapters {
    color: #ffb900 !important;
    font-weight: 700;
    background-color: #fffbf0;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ffb900;
}

.status-generated-content {
    color: #ff8c00 !important;
    font-weight: 700;
    background-color: #fff8f0;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ff8c00;
}

.status-generated-metadata {
    color: #e91e63 !important;
    font-weight: 700;
    background-color: #fff0f5;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e91e63;
}

.status-generated-images {
    color: #9c27b0 !important;
    font-weight: 700;
    background-color: #faf0ff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #9c27b0;
}

.status-completed {
    color: #46b450 !important;
    font-weight: 700;
    background-color: #f0fff0;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #46b450;
}

.status-failed {
    color: #dc3232 !important;
    font-weight: 700;
    background-color: #fff0f0;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #dc3232;
}

/* Form styles */
.aiauto-form-group {
    margin-bottom: 20px;
}

.aiauto-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.aiauto-form-group input[type="text"],
.aiauto-form-group input[type="number"],
.aiauto-form-group select,
.aiauto-form-group textarea {
    width: 100%;
    max-width: 400px;
}

.aiauto-form-group textarea {
    min-height: 100px;
}

/* Button styles */
.aiauto-button-group {
    margin-top: 20px;
}

.aiauto-button-group .button {
    margin-right: 10px;
}

/* Notice styles */
.aiauto-notice {
    margin: 20px 0;
    padding: 15px;
    border-left: 4px solid #0073aa;
    background: #f7fcff;
}

.aiauto-notice.success {
    border-left-color: #46b450;
    background: #f7fcf7;
}

.aiauto-notice.error {
    border-left-color: #dc3232;
    background: #fef7f1;
}

.aiauto-notice.warning {
    border-left-color: #ffb900;
    background: #fffbf0;
}

/* Pagination styles */
.tablenav {
    margin: 20px 0;
    height: 30px;
}

.tablenav.bottom {
    margin-top: 20px;
}

.tablenav-pages {
    float: right;
    height: 28px;
    padding-top: 0;
    line-height: 28px;
}

.tablenav-pages .displaying-num {
    margin-right: 10px;
    font-size: 13px;
    font-style: italic;
}

.tablenav-pages .pagination-links {
    display: inline-block;
}

.tablenav-pages .pagination-links .button {
    display: inline-block;
    margin: 0 2px;
    padding: 0 10px;
    min-width: 30px;
    height: 28px;
    line-height: 26px;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    background: #fafafa;
    border: 1px solid #ccc;
    color: #555;
    cursor: pointer;
}

.tablenav-pages .pagination-links .button:hover {
    background: #f1f1f1;
    border-color: #999;
    color: #222;
}

.tablenav-pages .pagination-links .button.disabled {
    color: #a0a5aa;
    background: #f5f5f5;
    cursor: default;
    opacity: 0.5;
}

.tablenav-pages .paging-input {
    margin: 0 6px;
    font-size: 13px;
}

.tablenav-pages .current-page {
    padding: 0 5px;
    font-weight: 600;
}

.tablenav-pages .total-pages {
    padding: 0 5px;
} 