/*
Theme Name: MG Dashboard
Theme URI: https://muziekgieterij.nl
Description: Child theme voor Muziekgieterij Dashboard - gebaseerd op Twenty Twenty-Five
Author: Muziekgieterij
Author URI: https://muziekgieterij.nl
Template: twentytwentyfive
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mg-dashboard
*/

/* Import parent theme styles */
@import url('../twentytwentyfive/style.css');

/* Custom dashboard styles */
.mg-dashboard-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 2rem;
}

.mg-dashboard-header {
	margin-bottom: 2rem;
}

.mg-dashboard-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.mg-stat-tile {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 1.5rem;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	transition: transform 0.2s, box-shadow 0.2s;
}

.mg-stat-tile:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.mg-stat-tile h3 {
	margin: 0 0 0.5rem 0;
	font-size: 0.875rem;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mg-stat-tile .value {
	font-size: 2rem;
	font-weight: 700;
	color: #333;
	margin: 0;
}

.mg-stat-tile .tooltip {
	position: relative;
	display: inline-block;
	margin-left: 0.5rem;
	cursor: help;
}

.mg-stat-tile .tooltip:hover::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	background: #333;
	color: #fff;
	padding: 0.5rem;
	border-radius: 4px;
	font-size: 0.75rem;
	white-space: nowrap;
	z-index: 1000;
	margin-bottom: 0.5rem;
}

.mg-dashboard-charts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.mg-chart-container {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 1.5rem;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mg-chart-container h3 {
	margin: 0 0 1rem 0;
	font-size: 1.25rem;
	color: #333;
}

.mg-dashboard-table {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 1.5rem;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	overflow-x: auto;
}

.mg-dashboard-table table {
	width: 100%;
	border-collapse: collapse;
}

.mg-dashboard-table th,
.mg-dashboard-table td {
	padding: 0.75rem;
	text-align: left;
	border-bottom: 1px solid #e0e0e0;
}

.mg-dashboard-table th {
	background: #f5f5f5;
	font-weight: 600;
	color: #333;
}

.mg-dashboard-table input[type="number"] {
	width: 100px;
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.mg-dashboard-table .positive {
	color: #28a745;
	font-weight: 600;
}

.mg-dashboard-table .negative {
	color: #dc3545;
	font-weight: 600;
}

.mg-dashboard-actions {
	margin-bottom: 2rem;
	display: flex;
	gap: 1rem;
	align-items: center;
}

.mg-btn {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 4px;
	background: #0073aa;
	color: #fff;
	cursor: pointer;
	font-size: 1rem;
	transition: background 0.2s;
}

.mg-btn:hover {
	background: #005a87;
}

.mg-btn-secondary {
	background: #666;
}

.mg-btn-secondary:hover {
	background: #555;
}

.mg-budget-selector {
	padding: 0.75rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
}

.mg-budget-list {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid #e0e0e0;
}

.mg-budget-item {
	padding: 0.75rem;
	background: #f9f9f9;
	border-radius: 4px;
	margin-bottom: 0.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.mg-loading {
	text-align: center;
	padding: 2rem;
	color: #666;
}

.mg-error {
	background: #fee;
	border: 1px solid #fcc;
	border-radius: 4px;
	padding: 1rem;
	color: #c33;
	margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
	.mg-dashboard-container {
		padding: 1rem;
	}
	
	.mg-dashboard-stats {
		grid-template-columns: 1fr;
	}
	
	.mg-dashboard-charts {
		grid-template-columns: 1fr;
	}
	
	.mg-dashboard-table {
		overflow-x: scroll;
	}
}
