/* Bubblibot Admin Styles */

/* Analytics Dashboard Styling */
.bubblibot-analytics-summary .postbox-header h3 {
    margin-left: 15px !important;
    padding-left: 0 !important;
}

.postbox-header h3 {
    margin-left: 15px;
}

/* General Admin Styling */
.bubblibot-color-preview {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 10px;
}

.form-table th {
    width: 200px;
}

.form-table input[type="color"] {
    width: 60px;
    height: 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.bubblibot-settings-section {
    margin-top: 30px;
}

/* Analytics Summary Cards */
.bubblibot-analytics-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.bubblibot-analytics-summary .postbox .inside {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    padding: 20px;
}

/* Analytics Tables */
.bubblibot-analytics-table {
    margin: 20px 0;
}

.bubblibot-analytics-table table {
    width: 100%;
}

.bubblibot-analytics-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

/* Usage Pattern Chart */
.bubblibot-usage-chart {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 5px;
    margin: 20px 0;
}

.bubblibot-usage-chart .hour-bar {
    text-align: center;
}

.bubblibot-usage-chart .hour-bar .bar {
    height: 100px;
    display: flex;
    align-items: end;
}

.bubblibot-usage-chart .hour-bar .bar-fill {
    background: #0073aa;
    width: 100%;
    margin: 0 2px;
    transition: background-color 0.2s;
}

.bubblibot-usage-chart .hour-bar .bar-fill:hover {
    background: #005a87;
}

/* Topic Tags */
.bubblibot-topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bubblibot-topic-tag {
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    color: #333;
}

/* Status Indicators */
.bubblibot-status-good {
    color: #46b450;
}

.bubblibot-status-warning {
    color: #f56e28;
}

.bubblibot-status-error {
    color: #dc3232;
}

/* Free version styling */
.bubblibot-free-notice {
    background: #f0f6fc;
    border: 1px solid #0969da;
    border-radius: 6px;
    padding: 12px;
    margin: 10px 0;
}

/* API key styling */
.bubblibot-api-status {
    display: inline-block;
    font-weight: 500;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f0f0f0;
}

.bubblibot-api-status.valid {
    color: #00a32a;
    background: #e6f7e6;
}

.bubblibot-api-status.invalid {
    color: #dc3232;
    background: #fce6e6;
}

.bubblibot-api-status.empty {
    color: #ff6900;
    background: #fff3e0;
}

.bubblibot-api-status.unverified {
    color: #0073aa;
    background: #e6f3ff;
}

.bubblibot-api-status.verifying {
    color: #666;
    background: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bubblibot-analytics-summary {
        grid-template-columns: 1fr;
    }
    
    .bubblibot-usage-chart {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 480px) {
    .bubblibot-analytics-summary {
        grid-template-columns: 1fr;
    }
    
    .bubblibot-usage-chart {
        grid-template-columns: repeat(4, 1fr);
    }
} 