/**
 * Admin Dashboard CSS
 * Styles specific to the admin dashboard page
 *
 * @package Martial_Arts_Club_Manager
 * @version 1.0.174
 */

/* ==========================================================================
   Dashboard Statistics Cards
   ========================================================================== */

.kcm-dashboard-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin: 30px 0;
}

.kcm-stat-card {
	padding: 25px;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	border-radius: 8px;
	color: #fff;
}

.kcm-stat-card h3 {
	margin: 0 0 5px 0;
	color: rgba(255,255,255,0.9);
	font-size: 14px;
	font-weight: normal;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.kcm-stat-card p {
	margin: 0;
	font-size: 36px;
	font-weight: bold;
}

/* ==========================================================================
   Dashboard Layout
   ========================================================================== */

.kcm-dashboard-content {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 20px;
	margin: 20px 0;
}

.kcm-dashboard-section {
	background: #fff;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	border-radius: 8px;
}

.kcm-dashboard-section h2 {
	margin: 0 0 15px 0;
	font-size: 18px;
	border-bottom: 2px solid #D1D5DB;
	padding-bottom: 10px;
	color: #111827;
}

/* Recent Members Section */
.kcm-dashboard-section .widefat {
	margin-bottom: 0;
}

/* ==========================================================================
   Quick Actions Section
   ========================================================================== */

.kcm-quick-link {
	display: flex;
	align-items: center;
	padding: 12px;
	border-radius: 6px;
	text-decoration: none;
	color: #fff;
	transition: transform 0.2s, box-shadow 0.2s;
}

.kcm-quick-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.kcm-quick-link .dashicons {
	font-size: 20px;
	margin-right: 10px;
}

/* ==========================================================================
   Dashboard Widgets (Three Columns)
   ========================================================================== */

.kcm-dashboard-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

/* ==========================================================================
   Welcome Section
   ========================================================================== */

.kcm-dashboard-welcome {
	background: #1C1C1E;
	padding: 30px;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	border-radius: 8px;
	margin: 20px 0;
	color: #fff;
}

.kcm-dashboard-welcome h2 {
	color: #fff;
	margin-top: 0;
}

.kcm-dashboard-welcome p {
	font-size: 16px;
	line-height: 1.6;
}

/* Welcome Steps Grid */
.kcm-dashboard-welcome > div {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
	margin: 20px 0;
}

.kcm-dashboard-welcome > div > div {
	background: rgba(255,255,255,0.2);
	padding: 15px;
	border-radius: 6px;
}

.kcm-dashboard-welcome h3 {
	color: #fff;
	margin: 0 0 8px 0;
	font-size: 16px;
}

/* ==========================================================================
   Charts Section
   ========================================================================== */

.kcm-dashboard-charts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.kcm-chart-card {
	background: #fff;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	border-radius: 8px;
}

.kcm-chart-card h3 {
	margin: 0 0 15px 0;
	font-size: 16px;
	color: #111827;
	display: flex;
	align-items: center;
	gap: 8px;
}

.kcm-chart-container {
	position: relative;
	height: 250px;
}

/* ==========================================================================
   Modal Styles (Dashboard-specific)
   ========================================================================== */

.kcm-modal {
	display: none;
	position: fixed;
	z-index: 999999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.6);
	padding: 40px 20px;
	box-sizing: border-box;
}

.kcm-modal-content {
	background-color: #fff;
	padding: 0;
	border-radius: 8px;
	width: 100%;
	max-width: 600px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.kcm-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 25px;
	border-bottom: 1px solid #D1D5DB;
	background: #F4F4F2;
	border-radius: 8px 8px 0 0;
}

.kcm-modal-header h3 {
	margin: 0;
	font-size: 20px;
	color: #111827;
}

.kcm-modal-close {
	font-size: 32px;
	font-weight: bold;
	color: #6B7280;
	background: none;
	border: none;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s ease;
}

.kcm-modal-close:hover {
	color: #111827;
}

.kcm-modal-body {
	padding: 25px;
}

.kcm-modal-footer {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
	padding-top: 20px;
	border-top: 1px solid #F4F4F2;
}

/* ==========================================================================
   Form Styles (Dashboard Modal Forms)
   ========================================================================== */

.kcm-form-row {
	margin-bottom: 20px;
}

.kcm-form-row label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #111827;
	font-size: 14px;
}

.kcm-form-row .required {
	color: #d63638;
}

.kcm-form-row input[type="text"],
.kcm-form-row input[type="email"],
.kcm-form-row input[type="url"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #D1D5DB;
	border-radius: 4px;
	font-size: 14px;
	transition: border-color 0.3s ease;
}

.kcm-form-row input:focus,
.kcm-form-row textarea:focus {
	outline: none;
	border-color: #B11226;
	box-shadow: 0 0 0 1px #B11226;
}

.kcm-form-row textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #D1D5DB;
	border-radius: 4px;
	font-size: 14px;
}

.kcm-form-row .description {
	margin-top: 5px;
	font-size: 12px;
	color: #6B7280;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1024px) {
	.kcm-dashboard-content {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 782px) {
	.kcm-dashboard-stats {
		grid-template-columns: 1fr;
		gap: 15px;
		margin: 20px 0;
	}

	.kcm-stat-card {
		padding: 20px;
	}

	.kcm-stat-card p {
		font-size: 28px;
	}

	.kcm-dashboard-charts {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.kcm-chart-container {
		height: 200px;
	}

	.kcm-dashboard-welcome {
		padding: 20px;
	}

	.kcm-modal-content {
		max-width: 100%;
	}

	.kcm-modal-header,
	.kcm-modal-body {
		padding: 15px;
	}
}

@media (max-width: 480px) {
	.kcm-dashboard-stats {
		margin: 15px 0;
	}

	.kcm-stat-card {
		padding: 15px;
	}

	.kcm-stat-card h3 {
		font-size: 12px;
	}

	.kcm-stat-card p {
		font-size: 24px;
	}

	.kcm-dashboard-section {
		padding: 15px;
	}

	.kcm-dashboard-welcome {
		padding: 15px;
	}

	.kcm-dashboard-welcome p {
		font-size: 14px;
	}
}
