/**
 * Admin CSS styles for AI Explainer Pro
 *
 * @link       https://aiexplainerpro.com
 * @since      1.0.0
 *
 * @package    AI_Explainer_Pro
 */

/* General Admin Styles */
.ai-explainer-pro-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 4px;
}

.ai-explainer-pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 20px;
}

/* Dashboard Widgets */
.ai-explainer-pro-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 20px;
    margin-bottom: 20px;
}

.ai-explainer-pro-stat-box {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-left: 4px solid #2271b1;
    padding: 15px;
    text-align: center;
    border-radius: 4px;
}

.ai-explainer-pro-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2271b1;
    margin-bottom: 5px;
}

.ai-explainer-pro-stat-label {
    display: block;
    font-size: 14px;
    color: #646970;
}

.ai-explainer-pro-chart-container {
    height: 300px;
    margin-bottom: 20px;
}

.ai-explainer-pro-recent-detections {
    margin-top: 20px;
}

/* Data Tables */
.ai-explainer-pro-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border: 1px solid #ccd0d4;
}

.ai-explainer-pro-table th {
    background-color: #f0f0f1;
    text-align: left;
    padding: 10px;
    font-weight: 600;
    border-bottom: 1px solid #ccd0d4;
}

.ai-explainer-pro-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.ai-explainer-pro-table tr:last-child td {
    border-bottom: none;
}

/* Detection Form */
.ai-explainer-pro-form {
    margin-bottom: 20px;
}

.ai-explainer-pro-form-field {
    margin-bottom: 15px;
}

.ai-explainer-pro-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.ai-explainer-pro-form-field input[type="text"],
.ai-explainer-pro-form-field textarea,
.ai-explainer-pro-form-field select {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #8c8f94;
}

.ai-explainer-pro-form-actions {
    margin-top: 20px;
}

.ai-explainer-pro-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.ai-explainer-pro-checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-right: 15px;
    margin-bottom: 5px;
}

.ai-explainer-pro-checkbox-group input[type="checkbox"] {
    margin-right: 5px;
}

/* Modal */
.ai-explainer-pro-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.ai-explainer-pro-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.ai-explainer-pro-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.ai-explainer-pro-modal-close:hover,
.ai-explainer-pro-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Detection Results */
.ai-explainer-pro-detection-result {
    background-color: #f0f6fc;
    border: 1px solid #c5d9ed;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
}

.ai-explainer-pro-detection-summary {
    margin-bottom: 15px;
}

.ai-explainer-pro-detection-models {
    margin-top: 15px;
}

.ai-explainer-pro-model-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.ai-explainer-pro-model-name {
    width: 200px;
    font-weight: 600;
}

.ai-explainer-pro-confidence-bar {
    flex: 1;
    height: 20px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 10px;
}

.ai-explainer-pro-confidence-fill {
    height: 100%;
    background-color: #2271b1;
    border-radius: 10px;
}

.ai-explainer-pro-confidence-text {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
}

/* Settings Tabs */
.ai-explainer-pro-tabs {
    margin-bottom: 20px;
    border-bottom: 1px solid #ccd0d4;
}

.ai-explainer-pro-tab {
    display: inline-block;
    padding: 10px 15px;
    margin-right: 5px;
    margin-bottom: -1px;
    border: 1px solid transparent;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    cursor: pointer;
}

.ai-explainer-pro-tab.active {
    border-color: #ccd0d4;
    border-bottom-color: #fff;
    background-color: #fff;
    font-weight: 600;
}

.ai-explainer-pro-tab-content {
    display: none;
    padding: 20px 0;
}

.ai-explainer-pro-tab-content.active {
    display: block;
}

/* Premium Notices */
.ai-explainer-pro-upgrade-notice {
    background-color: #fff8e5;
    border-left: 4px solid #ffb900;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.ai-explainer-pro-upgrade-banner {
    background-color: #f0f6fc;
    border: 1px solid #c5d9ed;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    border-radius: 4px;
}

.ai-explainer-pro-feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 15px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.ai-explainer-pro-feature-list li {
    position: relative;
    padding-left: 24px;
    text-align: left;
}

.ai-explainer-pro-feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2271b1;
    font-weight: bold;
}

/* Loading States */
.ai-explainer-pro-loading {
    text-align: center;
    padding: 20px;
}

.ai-explainer-pro-loading .spinner {
    float: none;
    margin: 0 auto 10px;
}

/* Help Page */
.ai-explainer-pro-steps {
    margin: 20px 0;
}

.ai-explainer-pro-step {
    display: flex;
    margin-bottom: 20px;
}

.ai-explainer-pro-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #2271b1;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
}

.ai-explainer-pro-step-content {
    flex: 1;
}

.ai-explainer-pro-faq {
    margin-top: 20px;
}

.ai-explainer-pro-faq-item {
    margin-bottom: 20px;
}

.ai-explainer-pro-faq-item h3 {
    margin-bottom: 10px;
}

/* Responsive Adjustments */
@media screen and (max-width: 782px) {
    .ai-explainer-pro-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-explainer-pro-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-explainer-pro-feature-list {
        grid-template-columns: 1fr;
    }
}

/* Bias Analysis Page */
.bias-score {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
}

.bias-score.low {
    background-color: #4caf50;
}

.bias-score.medium {
    background-color: #ff9800;
}

.bias-score.high {
    background-color: #f44336;
}

/* Share Options */
.ai-explainer-pro-share-options {
    margin-top: 20px;
}

.ai-explainer-pro-share-link, 
.ai-explainer-pro-share-embed {
    margin-bottom: 15px;
}

.ai-explainer-pro-social-buttons {
    margin-top: 10px;
}

.ai-explainer-pro-social-buttons .social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    text-decoration: none;
}

.ai-explainer-pro-social-buttons .twitter {
    background-color: #1da1f2;
}

.ai-explainer-pro-social-buttons .facebook {
    background-color: #3b5998;
}

.ai-explainer-pro-social-buttons .linkedin {
    background-color: #0077b5;
}

/* No Data State */
.ai-explainer-pro-no-data {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.ai-explainer-pro-no-data p {
    margin-bottom: 15px;
}
