/**
 * Admin styles for AI Content Classifier
 */

/* Main layout */
.aicg-generator-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

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

.aicg-sidebar {
    width: 300px;
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .aicg-generator-wrapper {
        flex-direction: column;
    }
    
    .aicg-sidebar {
        width: 100%;
    }
}

/* Postbox styling */
.postbox {
    margin-bottom: 20px;
}

.postbox-header {
    padding: 10px 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #ccc;
}

.postbox-header h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

/* Form styling */
#aicg-generate-form textarea {
    width: 100%;
    resize: vertical;
}

#aicg-generate-form select {
    width: 100%;
    max-width: 300px;
}

/* Results area */
#result-content {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

#result-content h1,
#result-content h2,
#result-content h3 {
    margin-top: 0;
}

.aicg-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Loading state */
.aicg-loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    visibility: hidden;
}

.spinner.is-active {
    visibility: visible;
}

/* SEO results */
#seo-results table {
    margin-top: 0;
}

#seo-results th {
    width: 150px;
}

/* Templates page */
.aicg-templates-list {
    margin-top: 20px;
}

.template-item {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.template-item h3 {
    margin-top: 0;
}

.template-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Settings page */
.aicg-settings-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Notices */
.aicg-notice {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
}

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

.aicg-notice-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

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

/* Quick tips */
.aicg-sidebar .inside ul {
    margin-left: 20px;
}

.aicg-sidebar .inside h4 {
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Usage stats */
.aicg-sidebar .inside p {
    margin: 5px 0;
}

/* Responsive tables */
@media (max-width: 768px) {
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
    }
    
    .form-table th {
        padding-bottom: 5px;
    }
    
    .form-table td {
        padding-top: 0;
    }
}