* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	color: #e0e0e0;
	min-height: 100vh;
	padding: 20px;
}

.container {
	max-width: 1600px;
	margin: 0 auto;
}

header {
	text-align: center;
	margin-bottom: 30px;
	padding: 20px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 10px;
}

h1 {
	color: #ffa500;
	font-size: 2.5em;
	margin-bottom: 10px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
	color: #b0b0b0;
	font-size: 1.1em;
	margin-bottom: 20px;
}

/* Toggle Switch */
.art-toggle-container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	margin-top: 20px;
}

.art-toggle-label {
	color: #e0e0e0;
	font-size: 1em;
	font-weight: 500;
}

.art-toggle-label.active {
	color: #ffa500;
	font-weight: bold;
}

.toggle-switch {
	position: relative;
	width: 60px;
	height: 30px;
	background: #2a2a3e;
	border-radius: 15px;
	cursor: pointer;
	transition: background 0.3s ease;
	border: 2px solid #ffa500;
}

.toggle-switch:hover {
	background: #3a3a4e;
}

.toggle-slider {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	background: #ffa500;
	border-radius: 50%;
	transition: transform 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch.right .toggle-slider {
	transform: translateX(30px);
}

/* Tabs */
.tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	flex-wrap: wrap;
	justify-content: center;
}

.tab {
	padding: 10px;
	background: #2a2a3e;
	border: none;
	color: #e0e0e0;
	cursor: pointer;
	border-radius: 8px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.tab:hover {
	background: #3a3a4e;
	transform: translateY(-2px);
}

.tab.active {
	background: #ffa500;
	color: #1a1a2e;
	font-weight: bold;
}

.tab.active .players-img {
	border-color: #1a1a2e;
}

/* Table container with animation */
.table-container {
	overflow-x: auto;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 10px;
	padding: 20px;
	position: relative;
}

.table-wrapper tbody {
	position: relative;
	animation: slideInRight 0.4s ease-out;
}

.table-wrapper tbody.slide-out {
	animation: slideOutLeft 0.4s ease-out;
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(100px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideOutLeft {
	from {
		opacity: 1;
		transform: translateX(0);
	}

	to {
		opacity: 0;
		transform: translateX(-100px);
	}
}

/* Table styles */
table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 2px;
}

th,
td {
	padding: 10px;
	text-align: center;
	background: #2a2a3e;
}

th {
	background: #3a3a4e;
	font-weight: bold;
	position: sticky;
	z-index: 10;
}

th:first-child {
	position: sticky;
	left: 0;
	z-index: 20;
}

td:first-child {
	position: sticky;
	left: 0;
	background: #2a2a3e;
	z-index: 5;
}

thead th {
	top: 0;
}

/* Image styles */
.characters-img,
.campaigns-img,
.players-img {
	width: 60px;
	height: 60px;
	object-fit: contain;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.2s ease;
	background: #1a1a2e;
	border: 2px solid #ffa500;
}

.characters-img:hover,
.campaigns-img:hover,
.players-img:hover {
	transform: scale(1.1);
	border-color: #ffcc00;
}

/* Gantt chart cells */
.gantt-cell {
	position: relative;
	min-height: 60px;
}

.gantt-bar {
	background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
	height: 30px;
	border-radius: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9em;
	font-weight: bold;
	color: #1a1a2e;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	cursor: help;
	transition: all 0.2s ease;
}

.gantt-bar:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 8px rgba(255, 165, 0, 0.5);
}

.gantt-bar.dm {
	background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
	color: white;
}

/* Modal */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.modal-content {
	background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 100%);
	margin: 5% auto;
	padding: 30px;
	border: 2px solid #ffa500;
	border-radius: 15px;
	width: 90%;
	max-width: 600px;
	position: relative;
	animation: slideDown 0.3s ease;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.close {
	color: #ffa500;
	float: right;
	font-size: 35px;
	font-weight: bold;
	cursor: pointer;
	line-height: 1;
}

.close:hover {
	color: #ffcc00;
}

.modal h2 {
	color: #ffa500;
	margin-bottom: 20px;
	font-size: 2em;
}

.modal-image {
	height: 150px;
	width: unset;
	object-fit: contain;
	border-radius: 10px;
	margin: 0 auto 20px;
	display: block;
	background: #1a1a2e;
	border: 3px solid #ffa500;
}

.modal-info {
	background: rgba(255, 255, 255, 0.05);
	padding: 15px;
	border-radius: 8px;
	margin-bottom: 15px;
}

.modal-info h3 {
	color: #ffa500;
	margin-bottom: 10px;
	font-size: 1.2em;
}

.modal-info p {
	margin: 5px 0;
	line-height: 1.6;
}

.info-label {
	color: #ffa500;
	font-weight: bold;
	display: inline-block;
	min-width: 120px;
}

/* Legend */
.legend {
	display: flex;
	gap: 20px;
	justify-content: center;
	margin-top: 20px;
	padding: 15px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 8px;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 10px;
}

.legend-box {
	width: 30px;
	height: 20px;
	border-radius: 4px;
}

.legend-box.players {
	background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
}

.legend-box.dm {
	background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* Loading state */
.loading {
	text-align: center;
	padding: 50px;
	font-size: 1.5em;
	color: #ffa500;
}

/* Responsive */
@media (max-width: 768px) {
	h1 {
		font-size: 1.8em;
	}

	.tab {
		padding: 8px;
	}

	.characters-img,
	.campaigns-img,
	.players-img {
		width: 50px;
		height: 50px;
	}
}