.disaster-type-toggle {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.disaster-type-toggle label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: #f5f5f5;
	border: 2px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9rem;
}

.disaster-type-toggle input[type="checkbox"] {
	margin: 0;
}

.disaster-type-toggle input[type="checkbox"]:checked + span {
	font-weight: 600;
}

.disaster-type-toggle label.selected {
	background: #e6f2fd;
	border-color: #2a5298;
}

.disaster-color-marker {
	width: 16px;
	height: 16px;
	border-radius: 3px;
	display: inline-block;
	margin-right: 0.25rem;
	border: 1px solid rgba(0,0,0,0.1);
}

.events-table-container {
	background: white;
	padding: 1.5rem;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.events-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.events-table thead {
	background: #1e3c72;
	color: white;
}

.events-table th {
	padding: 12px 16px;
	text-align: left;
	font-weight: 600;
	font-size: 13px;
	border-bottom: 2px solid #0f2a52;
}

.events-table th.sortable {
	cursor: pointer;
	user-select: none;
	position: relative;
	padding-right: 24px;
}

.events-table th.sortable:hover {
	background: #2a5298;
}

.events-table th .sort-icon {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 10px;
	opacity: 0.7;
}

.events-table th.sort-asc .sort-icon::after {
	content: '▲';
	opacity: 1;
}

.events-table th.sort-desc .sort-icon::after {
	content: '▼';
	opacity: 1;
}

.events-table tbody tr {
	border-bottom: 1px solid #e0e0e0;
}

.events-table tbody tr:hover {
	background: #f5f5f5;
}

.events-table td {
	padding: 12px 16px;
	vertical-align: top;
}

.event-link {
	color: #2a5298;
	text-decoration: none;
	font-weight: 500;
}

.event-link:hover {
	text-decoration: underline;
}

.disaster-type-icon {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 2px;
	margin-right: 8px;
	vertical-align: middle;
}

.type-drought { background-color: #ff8000; }
.type-flood { background-color: #0066CC; }
.type-freeze { background-color: #87CEEB; }
.type-severe-storm { background-color: #1b8c22; }
.type-tropical-cyclone { background-color: #ffd500; }
.type-wildfire { background-color: #ff1e00; }
.type-winter-storm { background-color: #9370DB; }

.cost-with-ci {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ci-icon {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #e0e0e0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	font-weight: bold;
	color: #666;
	cursor: help;
}

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

/* CPI Tooltip Styling */
.cpi-label-container {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
	color: #555;
	margin-bottom: 0.5rem;
}

.info-tooltip {
	position: relative;
	display: inline-flex;
	align-items: center;
	cursor: help;
}

.info-tooltip .info-icon {
	width: 16px;
	height: 16px;
	color: #2a5298;
	transition: color 0.2s;
}

.info-tooltip:hover .info-icon {
	color: #1e3c72;
}

.info-tooltip .tooltip-text {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	width: 280px;
	background: #1e3c72;
	color: white;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 0.85rem;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	z-index: 1000;
	transition: opacity 0.2s, visibility 0.2s;
}

.info-tooltip .tooltip-text::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 8px solid transparent;
	border-top-color: #1e3c72;
}

.info-tooltip:hover .tooltip-text {
	visibility: visible;
	opacity: 1;
}

/* Toggle Switch Styling */
.toggle-switch {
	position: relative;
	display: inline-block;
	width: 120px;
	height: 40px;
	cursor: pointer;
}

.toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.toggle-slider {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	border-radius: 40px;
	transition: 0.3s;
	display: flex;
	align-items: center;
	padding: 0 8px;
}

.toggle-slider::before {
	content: "";
	position: absolute;
	height: 32px;
	width: 32px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	border-radius: 50%;
	transition: 0.3s;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
	background-color: #2a5298;
}

.toggle-switch input:checked + .toggle-slider::before {
	transform: translateX(80px);
}

.toggle-text {
	display: none;
}