/**
 * @package    Ai_Try_N_Buy
 * @subpackage Ai_Try_N_Buy/admin/assets/css
 * @author     Edu Brazeal <contact@edubrazeal.com>
 *
 * All styles for the admin area of the plugin should be defined here.
 */

/*
 * TABLE OF CONTENTS
 *
 * 1.0 - General Helper Classes
 * 2.0 - Product Meta Box Styles
 * 2.1 - Asset Uploader
 * 2.2 - Asset Preview
 * 2.3 - Category Checklist
 * 3.0 - Settings Page Styles
 * 4.0 - Analytics Dashboard Styles
 * 5.0 - Admin Dashboard Widget Styles
 */

/* ==========================================================================
   1.0 - General Helper Classes
   ========================================================================== */
.aitnb-hidden {
	display: none;
}

/* ==========================================================================
   2.0 - Product Meta Box Styles
   ========================================================================== */

/* 2.1 - Asset Uploader
   -------------------------------------------------------------------------- */
.aitnb-asset-uploader .button {
	margin-right: 5px;
}

/* 2.2 - Asset Preview
   -------------------------------------------------------------------------- */
.aitnb-asset-preview {
	width: 150px;
	height: 150px;
	border: 1px dashed #ccc;
	background-color: #f7f7f7;
	margin-bottom: 10px;
	padding: 5px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
}

.aitnb-asset-preview img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	display: block;
}

/* 2.3 - Category Checklist
   -------------------------------------------------------------------------- */
.aitnb-category-checklist {
	max-height: 200px;
	overflow-y: auto;
	border: 1px solid #ddd;
	padding: 10px;
	background: #fff;
}

.aitnb-category-checklist .aitnb-checklist-label {
	display: block;
	margin-bottom: 5px;
}


/* ==========================================================================
   3.0 - Settings Page Styles
   ========================================================================== */
.aitnb-api-test-result {
	margin-left: 10px;
	vertical-align: middle;
}
.aitnb-api-test-result.success {
	color: #227122;
	font-weight: bold;
}
.aitnb-api-test-result.error {
	color: #d63638;
	font-weight: bold;
}

.aitnb-settings-section-header {
	padding-left: 0;
}

.form-table .spinner {
	float: none;
	vertical-align: middle;
}

/* ==========================================================================
   4.0 - Analytics Dashboard Styles
   ========================================================================== */
.aitnb-analytics-dashboard .aitnb-dashboard-widgets {
	display: none;
}
.aitnb-analytics-dashboard .aitnb-chart-container {
	position: relative;
	height: 350px;
	width: 100%;
}
.aitnb-analytics-dashboard .aitnb-stats-summary {
	margin-top: 20px;
	text-align: center;
}
.aitnb-analytics-dashboard .aitnb-stats-summary p {
	margin: 5px 0;
	font-size: 14px;
}
.aitnb-analytics-dashboard .aitnb-columns-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 20px;
}
.aitnb-analytics-dashboard .aitnb-top-tried-products li,
.aitnb-analytics-dashboard .aitnb-top-purchased-products li {
	padding: 5px 0;
	border-bottom: 1px solid #eee;
}
.aitnb-analytics-dashboard .aitnb-top-tried-products li:last-child,
.aitnb-analytics-dashboard .aitnb-top-purchased-products li:last-child {
	border-bottom: none;
}
.aitnb-analytics-dashboard .aitnb-list-placeholder {
	color: #666;
	font-style: italic;
}
.aitnb-analytics-notice {
	padding: 20px;
	text-align: center;
}
.aitnb-analytics-notice-list {
	list-style: none;
	padding: 0;
}

/* ==========================================================================
   5.0 - Admin Dashboard Widget Styles
   ========================================================================== */
.aitnb-widget {
	padding: 10px 0;
}
.aitnb-widget-status-success {
	color: #46b450;
	font-weight: bold;
}
.aitnb-widget-status-error {
	color: #dc3232;
	font-weight: bold;
}
.aitnb-widget-status-unknown {
	color: #f0b849;
}
.aitnb-widget-issues-list {
	margin: 10px 0;
	padding-left: 20px;
}
.aitnb-widget-issue-item {
	color: #dc3232;
}