/**
 * Admin Styles for SFR Directory Analytics
 *
 * @package SFR_Directory_Analytics
 */

/* Admin Cards */
.sfrda-card {
	background: #fff;
	padding: 20px;
	margin: 20px 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
}

.sfrda-card h2 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 2px solid #3b82f6;
}

.sfrda-card h3 {
	color: #2c3e50;
	margin-top: 20px;
}

/* Analytics Wrap */
.sfrda-analytics-wrap {
	max-width: 1400px;
}

/* Stats Grid */
.sfrda-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin: 30px 0;
}

/* Analytics Stat Card */
.sfrda-analytics-stat-card {
	padding: 30px;
	border-radius: 12px;
	color: white;
	text-align: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease;
}

.sfrda-analytics-stat-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Chart Container */
.sfrda-chart-container {
	display: flex;
	align-items: flex-end;
	justify-content: space-around;
	height: 200px;
	margin-top: 20px;
	padding: 20px;
	background: white;
	border-radius: 8px;
	overflow-x: auto;
}

/* Chart Bar */
.sfrda-chart-bar {
	text-align: center;
	flex: 1;
	min-width: 50px;
}

.sfrda-chart-bar-fill {
	border-radius: 4px 4px 0 0;
	margin: 0 10px;
	position: relative;
	min-height: 5px;
	transition: all 0.3s ease;
}

.sfrda-chart-bar-fill:hover {
	opacity: 0.8;
}

/* Refresh Button */
#sfrda-refresh-analytics {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

#sfrda-refresh-analytics .dashicons {
	transition: transform 0.3s ease;
}

#sfrda-refresh-analytics:hover .dashicons {
	transform: rotate(180deg);
}

/* Table Enhancements */
.sfrda-card .wp-list-table thead th {
	background: #f8f9fa;
	font-weight: 600;
	padding: 12px;
	border-bottom: 2px solid #e5e7eb;
}

.sfrda-card .wp-list-table tbody tr:hover {
	background: #f9fafb;
}

.sfrda-card .wp-list-table tbody td {
	padding: 12px;
	vertical-align: middle;
}

/* Info Box */
.sfrda-info-box {
	margin-top: 30px;
	padding: 20px;
	background: #fffbeb;
	border-left: 4px solid #f59e0b;
	border-radius: 4px;
}

.sfrda-info-box h3 {
	margin-top: 0;
	color: #92400e;
}

.sfrda-info-box ul {
	color: #78350f;
	line-height: 1.8;
	margin: 15px 0;
}

.sfrda-info-box p {
	color: #78350f;
	margin-bottom: 0;
}

/* Settings Page */
.form-table th {
	padding: 20px 10px 20px 0;
}

.form-table td {
	padding: 15px 10px;
}

.form-table input[type="number"],
.form-table input[type="text"] {
	padding: 8px;
}

.form-table .description {
	margin-top: 5px;
	font-style: italic;
	color: #666;
}

/* Responsive */
@media (max-width: 1200px) {
	.sfrda-chart-container {
		overflow-x: scroll;
		justify-content: flex-start;
	}
	
	.sfrda-chart-bar {
		min-width: 60px;
	}
}

@media (max-width: 768px) {
	.sfrda-card {
		padding: 15px;
	}
	
	.sfrda-analytics-stat-card {
		padding: 20px;
	}
	
	.sfrda-chart-container {
		height: 150px;
		padding: 10px;
	}
}

/* Spinning Animation */
@keyframes sfrda-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.sfrda-spinning {
	animation: sfrda-spin 1s linear infinite;
}

/* Notice Styles */
.notice.sfrda-notice {
	border-left-color: #3b82f6;
}

.notice.sfrda-notice.notice-success {
	border-left-color: #10b981;
}

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







