/* Development Milestones Widget Styles */

:root {
	--dm-primary-color: #2196F3;
	--dm-accent-color: #4CAF50;
	--dm-border-color: #e0e0e0;
	--dm-bg-light: #f9f9f9;
	--dm-text-primary: #333;
	--dm-text-secondary: #666;
}

.dm-widget {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	color: var(--dm-text-primary);
}

/* Title and Description */
.dm-widget-title {
	font-size: 28px;
	font-weight: 600;
	margin: 0 0 10px 0;
	color: var(--dm-primary-color);
}

.dm-widget-description {
	font-size: 14px;
	color: var(--dm-text-secondary);
	margin: 0 0 20px 0;
	line-height: 1.6;
}

/* View Tabs */
.dm-view-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	border-bottom: 2px solid var(--dm-border-color);
}

.dm-tab-btn {
	padding: 10px 20px;
	background: none;
	border: none;
	font-size: 14px;
	font-weight: 500;
	color: var(--dm-text-secondary);
	cursor: pointer;
	border-bottom: 3px solid transparent;
	transition: all 0.3s ease;
	position: relative;
	bottom: -2px;
}

.dm-tab-btn:hover {
	color: var(--dm-primary-color);
}

.dm-tab-btn.active {
	color: var(--dm-primary-color);
	border-bottom-color: var(--dm-primary-color);
}

/* Controls */
.dm-controls {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.dm-search-input,
.dm-filter-select {
	padding: 10px 15px;
	border: 1px solid var(--dm-border-color);
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.3s ease;
}

.dm-search-input {
	flex: 1;
	min-width: 200px;
}

.dm-search-input:focus,
.dm-filter-select:focus {
	outline: none;
	border-color: var(--dm-primary-color);
	box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.dm-filter-select {
	min-width: 150px;
}

/* View Modes */
.dm-view-mode {
	display: none;
}

.dm-view-mode.active {
	display: block;
}

/* Age View */
.dm-age-card {
	margin-bottom: 30px;
	padding: 20px;
	background: var(--dm-bg-light);
	border-radius: 8px;
	border-left: 4px solid var(--dm-primary-color);
}

.dm-age-header {
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid var(--dm-border-color);
}

.dm-age-header h3 {
	margin: 0 0 5px 0;
	font-size: 20px;
	font-weight: 600;
	color: var(--dm-primary-color);
}

.dm-age-range {
	font-size: 13px;
	color: var(--dm-text-secondary);
}

/* Abilities Grid */
.dm-abilities-grid,
.dm-ages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 15px;
}

/* Milestone Cards */
.dm-milestone-card {
	background: white;
	border: 1px solid var(--dm-border-color);
	border-radius: 6px;
	padding: 15px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dm-milestone-card:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	border-color: var(--dm-primary-color);
}

.dm-card-header {
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--dm-border-color);
}

.dm-card-header h4 {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--dm-primary-color);
}

.dm-card-body {
	margin-bottom: 12px;
}

.dm-milestone-description {
	margin: 0 0 8px 0;
	font-size: 13px;
	color: var(--dm-text-secondary);
	line-height: 1.5;
}

.dm-milestone-text {
	margin: 0;
	font-size: 13px;
	color: var(--dm-text-primary);
	line-height: 1.5;
}

/* Expand Button */
.dm-expand-btn {
	width: 100%;
	padding: 8px 12px;
	background: var(--dm-primary-color);
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
}

.dm-expand-btn:hover {
	background: var(--dm-accent-color);
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.dm-expand-btn.active {
	background: var(--dm-accent-color);
}

/* Details */
.dm-details {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--dm-border-color);
}

.dm-details-content {
	animation: slideDown 0.3s ease;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.dm-tips {
	margin: 0;
	font-size: 13px;
	color: var(--dm-text-primary);
	line-height: 1.6;
}

.dm-tips strong {
	color: var(--dm-primary-color);
}

/* Ability View */
.dm-ability-section {
	margin-bottom: 30px;
}

.dm-ability-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--dm-primary-color);
	margin: 0 0 15px 0;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--dm-primary-color);
}

/* Empty Message */
.dm-empty-message {
	padding: 40px 20px;
	text-align: center;
	color: #999;
	font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
	.dm-widget-title {
		font-size: 22px;
	}

	.dm-controls {
		flex-direction: column;
	}

	.dm-search-input,
	.dm-filter-select {
		width: 100%;
	}

	.dm-abilities-grid,
	.dm-ages-grid {
		grid-template-columns: 1fr;
	}

	.dm-view-tabs {
		flex-wrap: wrap;
	}

	.dm-tab-btn {
		padding: 8px 15px;
		font-size: 13px;
	}
}

/* Print Styles */
@media print {
	.dm-view-tabs,
	.dm-controls,
	.dm-expand-btn {
		display: none;
	}

	.dm-details {
		display: block !important;
	}

	.dm-milestone-card {
		page-break-inside: avoid;
		box-shadow: none;
		border: 1px solid #ccc;
	}
}
