/* Roll list item styles */
.roll-list-item {
	display: flex;
	align-items: center;
	background: rgba(30,30,40,0.85);
	border-radius: 12px;
	padding: 8px 12px;
	color: #fff;
	font-family: Inter, system-ui, sans-serif;
	box-shadow: 0 4px 12px rgba(0,0,0,0.25);
	margin: 7px 0;
	border-left: 4px solid #888;
}
.roll-list-item.crit {
	border-left-color: #ffd700;
}
.roll-list-item.fail {
	border-left-color: #e53935;
}
.roll-list-item.mighty {
	border-left-color: #4caf50;
}
.roll-list-item.devastating {
	border-left-color: #e53935;
}
.roll-list-item .roll-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	margin-right: 12px;
	border: 2px solid rgba(255,255,255,0.25);
}
.roll-list-item .roll-main {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.roll-list-item .roll-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.roll-list-item .roll-player {
	font-weight: 600;
	font-size: 15px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 160px;
}
.roll-list-item .roll-total {
	font-weight: 800;
	font-size: 22px;
}
.roll-list-item .roll-total.crit {
	color: #ffd700;
}
.roll-list-item .roll-total.fail {
	color: #e53935;
}
.roll-list-item .roll-total.mighty {
	color: #4caf50;
}
.roll-list-item .roll-total.devastating {
	color: #e53935;
}
.roll-list-item .roll-details {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	opacity: 0.8;
	margin-top: 2px;
}
.roll-list-item .roll-notation {
	font-family: 'Space Mono', monospace;
}
.roll-list-item .roll-type-icon {
	margin-left: 12px;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.6);
	flex-shrink: 0;
}
/* Remove duplicate and conflicting rules, unify heroic rolls container style */
.dashboard-heroic-rolls-container {
	min-width: 280px;
	max-width: 480px;
	background: #23232b;
	border-radius: 16px;
	box-shadow: 0 0 24px 0 rgba(0,0,0,0.18), -2px 0 12px 0 rgba(0,0,0,0.12);
	padding: 20px;
	display: flex;
	flex-direction: column;
	height: 50%;
	margin: 0;
}

.dashboard-epic-fails-container {
	min-width: 280px;
	max-width: 480px;
	background: #2a1e1e;
	border-radius: 16px;
	box-shadow: 0 0 24px 0 rgba(0,0,0,0.18), -2px 0 12px 0 rgba(0,0,0,0.12);
	padding: 20px;
	display: flex;
	flex-direction: column;
	height: 40%;
	margin: 0;
	overflow: hidden;
}
.dashboard-epic-fails-header {
	margin-bottom: 12px;
}
.dashboard-epic-fails-title {
	font-family: 'Cinzel', serif;
	font-weight: 700;
	margin: 0;
	font-size: 1.2em;
	color: #e53935;
	letter-spacing: 0.02em;
}
.dashboard-epic-fails-divider {
	border: none;
	border-bottom: 2px solid #e53935;
	margin: 8px 0 0 0;
}
.epic-fails-list {
	flex: 1;
	overflow-y: hidden;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.dashboard-mighty-blows-container {
	min-width: 280px;
	max-width: 400px;
	background: #1a2e1a;
	border-radius: 16px;
	box-shadow: 0 0 24px 0 rgba(0,0,0,0.18), -2px 0 12px 0 rgba(0,0,0,0.12);
	padding: 20px;
	display: flex;
	flex-direction: column;
	height: 40%;
	margin: 0;
	overflow: hidden;
}
.dashboard-mighty-blows-header {
	margin-bottom: 12px;
}
.dashboard-mighty-blows-title {
	font-family: 'Cinzel', serif;
	font-weight: 700;
	margin: 0;
	font-size: 1.2em;
	color: #4caf50;
	letter-spacing: 0.02em;
}
.dashboard-mighty-blows-divider {
	border: none;
	border-bottom: 2px solid #4caf50;
	margin: 8px 0 0 0;
}
.mighty-blows-list {
	flex: 1;
	overflow-y: hidden;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.dashboard-devastating-blows-container {
	min-width: 280px;
	max-width: 400px;
	background: #2e1a1a;
	border-radius: 16px;
	box-shadow: 0 0 24px 0 rgba(0,0,0,0.18), -2px 0 12px 0 rgba(0,0,0,0.12);
	padding: 20px;
	display: flex;
	flex-direction: column;
	height: 40%;
	margin: 0;
	overflow: hidden;
}
.dashboard-devastating-blows-header {
	margin-bottom: 12px;
}
.dashboard-devastating-blows-title {
	font-family: 'Cinzel', serif;
	font-weight: 700;
	margin: 0;
	font-size: 1.2em;
	color: #e53935;
	letter-spacing: 0.02em;
}
.dashboard-devastating-blows-divider {
	border: none;
	border-bottom: 2px solid #e53935;
	margin: 8px 0 0 0;
}
.devastating-blows-list {
	flex: 1;
	overflow-y: hidden;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.dashboard-roll-legend-container {
	min-width: 280px;
	max-width: 400px;
	background: #1a1e2e;
	border-radius: 16px;
	box-shadow: 0 0 24px 0 rgba(0,0,0,0.18), -2px 0 12px 0 rgba(0,0,0,0.12);
	padding: 20px;
	display: flex;
	flex-direction: column;
	height: 15%;
	margin: 0;
	overflow: hidden;
}
.dashboard-roll-legend-header {
	margin-bottom: 12px;
}
.dashboard-roll-legend-title {
	font-family: 'Cinzel', serif;
	font-weight: 700;
	margin: 0;
	font-size: 1.2em;
	color: #90a4ae;
	letter-spacing: 0.02em;
}
.dashboard-roll-legend-divider {
	border: none;
	border-bottom: 2px solid #90a4ae;
	margin: 8px 0 0 0;
}
.roll-legend-list {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	overflow-y: auto;
}
.legend-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}
.legend-item {
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
}
.legend-icon {
	width: 28px;
	font-size: 23px;
	color: rgba(255, 255, 255, 0.6);
	margin-right: 12px;
	text-align: center;
	flex-shrink: 0;
}
.legend-label {
	font-size: 23px;
	color: rgba(255, 255, 255, 0.8);
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.dashboard-heroic-rolls-header {
	margin-bottom: 12px;
}
.dashboard-heroic-rolls-title {
	font-family: 'Cinzel', serif;
	font-weight: 700;
	margin: 0;
	font-size: 1.2em;
	color: #ffd700;
	letter-spacing: 0.02em;
}
.dashboard-heroic-rolls-divider {
	border: none;
	border-bottom: 2px solid #ffd700;
	margin: 8px 0 0 0;
}
.heroic-rolls-list {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.dashboard-footer #wsStatus,
footer #wsStatus {
	margin-left: auto;
	margin-right: 3em;
	display: flex;
	align-items: center;
	color: #fff;
	font-weight: 500;
	font-size: 1em;
	white-space: nowrap;
}
 .dashboard-header {
	 position: absolute;
	 top: 0;
	 right: 0;
	padding: 0 32px 0 0;
	 text-align: right;
	 z-index: 2;
	 color: #ffffff;
 }
.message {
	padding: 10px;
	border-radius: 5px;
	background-color: #2a2a2a;
	word-break: break-word;
	opacity: 0;
	transform: translateY(-20px);
	animation: fadeInRoll 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes fadeInRoll {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

html, body {
	height: 100vh;
	overflow: auto;
	background-color: #121212;
	color: #ffffff;
}

/* Dashboard specific: prevent scrolling for full-screen layout */
body.dashboard-body {
	overflow: hidden;
}

h1, h2, h3 {
	color: #ffffff;
}
.container {
	max-width: 800px;
	margin: auto;
	padding: 20px;
}
.dashboard-body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 20px;
}
.messages-container {
	flex: 0 0 350px;
	background: #1e1e1e;
	border-radius: 8px 0 0 8px;
	box-shadow: 2px 0 8px rgba(0,0,0,0.15);
}
.dashboard-app {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 20px;
	padding: 20px;
	height: calc(100vh - 0px);
	overflow: hidden;
}
/* Middle column for Heroic Rolls and Epic Fails */
.dashboard-middle-column {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: calc(100vh - 100px); /* subtract footer height */
	min-width: 280px;
	max-width: 450px;
	flex: 1;
}
/* Right column for Mighty Blows */
.dashboard-right-column {
	display: flex;
	flex-direction: column;
	gap: 16px;
	height: calc(100vh - 100px); /* subtract footer height */
	min-width: 280px;
	flex: 1;
}
/* Players column for player list */
.dashboard-players-column {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: calc(100vh - 100px); /* subtract footer height */
	min-width: 250px;
	flex: 1;
	justify-content: flex-end; /* Push container to bottom */
}
.dashboard-players-list-container {
	min-width: 250px;
	max-width: 350px;
	background: #1e1e2e;
	border-radius: 16px;
	box-shadow: 0 0 24px 0 rgba(0,0,0,0.18), -2px 0 12px 0 rgba(0,0,0,0.12);
	padding: 20px;
	display: flex;
	flex-direction: column;
	height: 85%;
	margin: 0;
	overflow: hidden;
}
.dashboard-players-list-header {
	margin-bottom: 12px;
}
.dashboard-players-list-title {
	font-family: 'Cinzel', serif;
	font-weight: 700;
	margin: 0;
	font-size: 1.2em;
	color: #64b5f6;
	letter-spacing: 0.02em;
}
.dashboard-players-list-divider {
	border: none;
	border-bottom: 2px solid #64b5f6;
	margin: 8px 0 0 0;
}
.players-list {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.player-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	cursor: pointer;
	transition: all 0.2s ease;
}

.player-card:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(100, 181, 246, 0.3);
	transform: translateY(-1px);
}

.player-card .avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.player-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	text-align: left;
}

.player-name {
	font-weight: 500;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.no-players-message {
	text-align: center;
	color: #888;
	font-style: italic;
	padding: 20px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 8px;
	border: 1px dashed #444;
}
/* Legacy side column (for backward compatibility) */
.dashboard-side-column {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: calc(100vh - 100px); /* subtract footer height */
	min-width: 300px;
	flex: 1;
}
.dashboard-messages-container {
	min-width: 300px;
	max-width: 450px;
	background: #1e1e1e;
	border-radius: 16px;
	box-shadow: 0 0 24px 0 rgba(0,0,0,0.25), 2px 0 12px 0 rgba(0,0,0,0.18);
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
	height: 52%;
	min-height: 0;
	margin: 0;
}
.dashboard-heroic-rolls-container {
	min-width: 280px;
	max-width: 480px;
	background: #2a1e1e;
	border-radius: 16px;
	box-shadow: 0 0 24px 0 rgba(0,0,0,0.18), -2px 0 12px 0 rgba(0,0,0,0.12);
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	height: 40%;
	margin: 0;
	order: 0;
}
.dashboard-messages-header {
	margin-bottom: 12px;
}
.dashboard-messages-title {
	font-family: 'Cinzel', serif;
	font-weight: 700;
	margin: 0;
	font-size: 1.4em;
	color: #19ff00;
	letter-spacing: 0.02em;
}
.dashboard-campaign {
	margin-bottom: 0;
	font-size: 2em;
	font-weight: 700;
	color: #00bfff;
	letter-spacing: 0.02em;
	font-family: 'Cinzel', serif;
}
.dashboard-messages-divider {
	border: none;
	border-bottom: 2px solid #19ff00;
	margin: 8px 0 0 0;
}
.messages {
	flex: 1 1 auto;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 100%;
	min-height: 0;
}
.message {
	padding: 10px;
	border-radius: 5px;
	background-color: #2a2a2a;
	word-break: break-word;
}
.dashboard-footer {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	background: #181818;
	color: #ccc;
	padding: 12px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 1em;
	z-index: 10;
	font-family: 'Inter', Arial, sans-serif;
}

/* Footer navigation links */
.dashboard-footer a,
footer a {
	color: #fff;
	text-decoration: none;
	transition: color 0.2s ease;
	opacity: 0.8;
	margin-right: 1.5rem;
}

.dashboard-footer a:last-of-type,
footer a:last-of-type {
	margin-right: 0;
}

.dashboard-footer a:hover,
footer a:hover {
	opacity: 1;
	color: #66b3ff;
}

.dashboard-footer svg,
footer svg {
	transition: transform 0.2s ease;
}

.dashboard-footer a:hover svg,
footer a:hover svg {
	transform: scale(1.1);
}

/* Font Awesome icon hover effects for footer */
.dashboard-footer i,
footer i {
	transition: transform 0.2s ease;
}

.dashboard-footer a:hover i,
footer a:hover i {
	transform: scale(1.1);
}
.dashboard-session {
	font-size: 1.1em;
	color: #00bfff;
	margin-top: 2px;
	font-weight: 700;
	font-family: 'Cinzel', serif;
	letter-spacing: 0.02em;
}
.message:nth-child(odd) {
	background-color: #333333;
}
.button {
	background-color: #6200ea;
	color: #ffffff;
	border: none;
	border-radius: 5px;
	padding: 10px 15px;
	cursor: pointer;
	transition: background-color 0.3s;
}
.button:hover {
	background-color: #3700b3;
}

/* Animation control based on settings */
body[data-animations-enabled="false"] * {
	animation: none !important;
	transition: none !important;
}

/* Players tab styles */
.add-player-section {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.player-input-row {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
}

.player-name-input {
	flex: 1;
}

.add-enemy-section {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.enemy-input-row {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
}

.enemy-name-input {
	flex: 1;
}

/* Select dropdown styling */
select, .table-select {
	background: #2a2a3e;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	color: #ffffff;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
	font-family: 'Inter', sans-serif;
	cursor: pointer;
	outline: none;
	transition: all 0.2s ease;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 1rem;
	padding-right: 2.5rem;
}

select:hover, .table-select:hover {
	border-color: #6cf;
	background: #323251;
}

select:focus, .table-select:focus {
	border-color: #6cf;
	background: #323251;
	box-shadow: 0 0 0 2px rgba(102, 204, 255, 0.2);
}

/* Select option styling */
select option {
	background: #2a2a3e;
	color: #ffffff;
	padding: 0.5rem;
	border: none;
}

select option:hover {
	background: #323251;
}

select option:checked {
	background: #6cf;
	color: #1a1a2e;
}

/* Connection test results styling */
.connection-results {
	background: rgba(30, 30, 46, 0.6);
	border: 1px solid rgba(102, 204, 255, 0.2);
	border-radius: 8px;
	padding: 1rem;
	margin-top: 0.5rem;
}

.connection-results h4 {
	margin: 0 0 0.5rem 0;
	color: #6cf;
	font-size: 0.9rem;
	font-weight: 500;
}



.add-enemy-button-row {
	display: flex;
	justify-content: flex-start;
}

.add-enemy-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.875rem 1.25rem;
	min-width: auto;
	white-space: nowrap;
}

.enemies-list {
	min-height: 200px;
	max-height: 400px;
	overflow-y: auto;
	background: rgba(30, 20, 20, 0.6);
	border: 1px solid rgba(229, 57, 53, 0.2);
	border-radius: 8px;
	padding: 1rem;
}

.empty-enemies-message {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 180px;
	color: #666;
	text-align: center;
}

.empty-enemies-message svg {
	margin-bottom: 1rem;
	opacity: 0.5;
	color: #e53935;
}

.empty-enemies-message p {
	margin: 0.25rem 0;
	font-family: 'Inter', sans-serif;
}

.enemy-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 1rem;
	background: rgba(40, 30, 30, 0.8);
	border: 1px solid rgba(229, 57, 53, 0.2);
	border-radius: 8px;
	margin-bottom: 0.5rem;
	transition: all 0.2s ease;
}

.enemy-item:hover {
	background: rgba(45, 35, 35, 0.9);
	border-color: rgba(229, 57, 53, 0.4);
}

.enemy-item:last-child {
	margin-bottom: 0;
}

.enemy-info {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.enemy-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(229, 57, 53, 0.3);
	background: rgba(229, 57, 53, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #e53935;
	font-weight: 600;
	font-size: 14px;
}

.enemy-avatar.has-image {
	border-color: rgba(229, 57, 53, 0.5);
}

.enemy-name {
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	color: #fff;
	font-size: 1rem;
}

.remove-enemy-btn {
	background: rgba(229, 57, 53, 0.8);
	color: white;
	border: none;
	border-radius: 50%;
	padding: 0.6rem 0.4rem 0.4rem;
	cursor: pointer;
	font-size: 0.8rem;
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
}

.remove-enemy-btn:hover {
	background: rgba(229, 57, 53, 1);
	transform: translateY(-1px) scale(1.05);
}

.remove-enemy-btn svg,
.remove-enemy-btn i {
	width: 14px;
	height: 14px;
}

.image-upload-container {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.image-select-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.875rem 1rem;
	min-width: auto;
	white-space: nowrap;
	background: rgba(102, 204, 255, 0.1);
	color: #6cf;
	border: 1px solid rgba(102, 204, 255, 0.3);
}

.image-select-btn:hover {
	background: rgba(102, 204, 255, 0.2);
	border-color: rgba(102, 204, 255, 0.5);
}

.image-preview {
	position: relative;
	display: inline-block;
}

.image-preview img {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	object-fit: cover;
	border: 2px solid rgba(102, 204, 255, 0.3);
}

.remove-image-btn {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(229, 57, 53, 0.9);
	color: white;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	transition: all 0.2s ease;
}

.remove-image-btn:hover {
	background: rgba(229, 57, 53, 1);
	transform: scale(1.1);
}

.add-player-button-row {
	display: flex;
	justify-content: flex-start;
}

.add-player-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.875rem 1.25rem;
	min-width: auto;
	white-space: nowrap;
}

.player-input-group {
	display: flex;
	gap: 0.75rem;
	align-items: stretch;
}

.players-list {
	min-height: 200px;
	max-height: 600px;
	overflow-y: hidden;
	background: rgba(20, 20, 30, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	padding: 1rem;
}

.empty-players-message {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 180px;
	color: #666;
	text-align: center;
}

.empty-players-message svg {
	margin-bottom: 1rem;
	opacity: 0.5;
}

.empty-players-message p {
	margin: 0.25rem 0;
	font-family: 'Inter', sans-serif;
}

.player-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 1rem;
	background: rgba(30, 30, 40, 0.8);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	margin-bottom: 0.5rem;
	transition: all 0.2s ease;
}

.player-item:hover {
	background: rgba(35, 35, 45, 0.9);
	border-color: rgba(102, 204, 255, 0.3);
}

.player-item:last-child {
	margin-bottom: 0;
}

.player-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.2);
	background: rgba(102, 204, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6cf;
	font-weight: 600;
	font-size: 14px;
	overflow: hidden; /* Ensure images don't overflow the container */
}

.player-avatar img,
.player-avatar .player-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.player-avatar.has-image {
	border-color: rgba(102, 204, 255, 0.4);
}

.player-name {
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	color: #fff;
	font-size: 1rem;
}

.remove-player-btn {
	background: rgba(229, 57, 53, 0.8);
	color: white;
	border: none;
	border-radius: 50%;
	padding: 0.6rem 0.4rem 0.4rem;
	cursor: pointer;
	font-size: 0.8rem;
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
}

.remove-player-btn:hover {
	background: rgba(229, 57, 53, 1);
	transform: translateY(-1px) scale(1.05);
}

.remove-player-btn svg,
.remove-player-btn i {
	width: 14px;
	height: 14px;
}

/* Dice Roller Animations and Styles */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rolling {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.rolling {
    animation: rolling 1s linear infinite;
}

/* Roll result styles */
.roll-result {
    background: rgba(30,30,40,0.9);
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    border-left: 4px solid #888;
    animation: slideIn 0.3s ease-out;
}

.roll-result.critical {
    border-left-color: #ffd700;
    background: rgba(40,35,20,0.9);
}

.roll-result.failure {
    border-left-color: #e53935;
    background: rgba(40,25,25,0.9);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.result-character {
    font-weight: 600;
    font-size: 16px;
    color: #fff;
}

.result-total {
    font-weight: 800;
    font-size: 24px;
    color: #fff;
}

.result-total.critical {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.result-total.failure {
    color: #e53935;
    text-shadow: 0 0 8px rgba(229, 57, 53, 0.5);
}

.result-details {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #ccc;
}

.result-breakdown {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #aaa;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Status message styles */
.status-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-weight: 500;
    display: none;
}

.status-info {
    background: rgba(0, 123, 255, 0.2);
    color: #66b3ff;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.status-success {
    background: rgba(40, 167, 69, 0.2);
    color: #5cbf75;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-error {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b7a;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.status-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Quick preset buttons */
.quick-presets {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.preset-btn {
    background: rgba(40,40,50,0.9);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.preset-btn:hover {
    background: rgba(60,60,70,0.9);
    border-color: rgba(255,255,255,0.3);
}

.preset-btn:active {
    transform: translateY(1px);
}

/* Dice input focus styles */
.dice-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Roll button enhanced states */
.roll-btn:disabled {
    background: rgba(60,60,70,0.5);
    cursor: not-allowed;
    transform: none;
}

.roll-btn:disabled:hover {
    background: rgba(60,60,70,0.5);
}

/* Responsive improvements for mobile */
@media (max-width: 768px) {
    .roll-result {
        padding: 12px;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .result-total {
        font-size: 20px;
    }
    
    .quick-presets {
        flex-wrap: wrap;
    }
    
    .preset-btn {
        flex: 1;
        min-width: 80px;
    }
}

/* List Placeholder Styles */
.list-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    min-height: 120px;
}

.placeholder-icon {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.6;
}

.placeholder-text {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.5);
}

.placeholder-subtext {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.3;
}

/* Players List Styles */
.no-players {
    text-align: center;
    color: #aaa;
    padding: 20px;
    font-style: italic;
}

.player-item {
    background: rgba(30, 30, 40, 0.85);
    border-radius: 12px;
    padding: 12px;
    margin: 8px 0;
    border-left: 4px solid #64b5f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.player-item:hover {
    background: rgba(40, 40, 50, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-left-color: #81c784;
}

.player-item:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.player-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.player-main-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    overflow: hidden; /* Ensure images don't overflow */
}

/* Ensure images in this context are properly sized too */
.player-avatar img,
.player-avatar .player-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.player-avatar-default {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(100, 181, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64b5f6;
    border: 2px solid rgba(100, 181, 246, 0.5);
    flex-shrink: 0;
}

.player-avatar-default i {
    font-size: 14px;
}

.player-name {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.player-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.player-info-section .player-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-details {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-info-btn {
    background: rgba(100, 181, 246, 0.2);
    color: #64b5f6;
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.player-info-btn:hover {
    background: rgba(100, 181, 246, 0.3);
    border-color: rgba(100, 181, 246, 0.5);
    transform: scale(1.1);
}

/* Dashboard Player Info Modal */
.dashboard-player-info-modal {
    max-width: 500px;
    min-height: 400px;
}

.player-modal-avatar-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.player-modal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(100, 181, 246, 0.3);
}

.player-modal-avatar-default {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(100, 181, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64b5f6;
    border: 3px solid rgba(100, 181, 246, 0.5);
    margin: 0 auto;
}

.player-modal-avatar-default i {
    font-size: 32px;
}

.player-modal-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.player-modal-field {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.player-modal-field.bio-field {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.player-modal-label {
    font-weight: 600;
    color: #64b5f6;
    min-width: 60px;
    font-size: 0.9rem;
}

.player-modal-value {
    color: #fff;
    font-size: 0.9rem;
    flex: 1;
}

.player-modal-bio {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 150px;
    max-height: 250px;
    overflow-y: auto;
    word-wrap: break-word;
}

/* Player Details Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: #1e1e2e;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 500px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: relative;
}

.player-details-modal {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    margin: 0;
    color: #64b5f6;
    font-size: 1.3em;
}

.modal-close {
    background: none;
    border: none;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-body {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: #64b5f6;
    color: #1e1e2e;
}

.btn-primary:hover {
    background: #42a5f5;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Edit button for player items */
.player-edit-btn {
    background: rgba(100, 181, 246, 0.2);
    color: #64b5f6;
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.player-edit-btn:hover {
    background: rgba(100, 181, 246, 0.3);
    border-color: rgba(100, 181, 246, 0.5);
    transform: translateY(-1px);
}

.player-edit-btn i {
    font-size: 12px;
}

/* Roll Tooltip Styles */
.roll-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.roll-tooltip.show {
    opacity: 1;
}

.roll-tooltip-header {
    font-weight: 600;
    color: #6cf;
    margin-bottom: 8px;
    border-bottom: 1px solid #444;
    padding-bottom: 4px;
}

.roll-tooltip-dice {
    margin-bottom: 6px;
}

.roll-tooltip-dice-title {
    font-weight: 500;
    color: #aaa;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.roll-tooltip-dice-values {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.roll-tooltip-die {
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 20px;
    text-align: center;
}

.roll-tooltip-die.crit {
    background: #28a745;
    border-color: #34ce57;
    color: #fff;
}

.roll-tooltip-die.fail {
    background: #dc3545;
    border-color: #e74c3c;
    color: #fff;
}

.roll-tooltip-modifiers {
    margin-bottom: 6px;
    font-size: 13px;
    color: #ccc;
}

.roll-tooltip-total {
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    padding: 4px 0;
    border-top: 1px solid #444;
    margin-top: 8px;
}

.roll-tooltip-total.crit {
    color: #28a745;
}

.roll-tooltip-total.fail {
    color: #dc3545;
}

.roll-tooltip-total.mighty {
    color: #ffd700;
}

.roll-tooltip-total.devastating {
    color: #ff6b35;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Medium screens and laptops (1366px and below) */
@media screen and (max-width: 1440px) {
    /* Scale down the entire dashboard for medium screens */
    .dashboard-app {
        gap: 15px;
        padding: 15px;
        transform: scale(0.9);
        transform-origin: top left;
        width: 111.11%; /* Compensate for 0.9 scale */
        height: 111.11vh; /* Compensate for 0.9 scale */
    }
    
    /* Reduce base font size for better fit */
    .dashboard-body {
        font-size: 13px;
    }
    
    /* Smaller sidebar font sizes */
    .sidebar {
        font-size: 12px;
    }
    
    .sidebar h3 {
        font-size: 14px;
    }
    
    /* Smaller form and input text */
    input, select, button, .btn {
        font-size: 12px;
    }
    
    /* Reduce tab font sizes */
    .tab-content {
        font-size: 12px;
    }
    
    /* Smaller stats displays */
    .stats-section h3,
    .performance-stats h3 {
        font-size: 14px;
    }
    
    /* Reduce minimum widths */
    .dashboard-messages-container {
        min-width: 260px;
        max-width: 380px;
        padding: 15px;
    }
    
    .dashboard-middle-column {
        min-width: 240px;
        max-width: 380px;
    }
    
    .dashboard-right-column {
        min-width: 240px;
    }
    
    .dashboard-players-column {
        min-width: 200px;
    }
    
    .dashboard-players-list-container {
        min-width: 200px;
    }
    
    .dashboard-side-column {
        min-width: 260px;
    }
    
    /* Scale down fonts slightly */
    .dashboard-campaign {
        font-size: 1.8rem;
    }
    
    .dashboard-session {
        font-size: 0.9rem;
    }
    
    .dashboard-messages-title,
    .dashboard-heroic-rolls-title,
    .dashboard-epic-fails-title,
    .dashboard-mighty-blows-title,
    .dashboard-devastating-blows-title,
    .dashboard-players-list-title {
        font-size: 1rem;
    }
    
    /* Smaller roll items */
    .roll-list-item {
        padding: 6px 10px;
        margin: 5px 0;
    }
    
    .roll-list-item .roll-avatar {
        width: 35px;
        height: 35px;
    }
    
    .roll-list-item .roll-player {
        font-size: 13px;
        max-width: 120px;
    }
    
    .roll-list-item .roll-dice {
        font-size: 11px;
    }
    
    .roll-list-item .roll-total {
        font-size: 13px;
    }
    
    .roll-list-item .roll-type {
        font-size: 10px;
    }
    
    /* Smaller player cards */
    .player-card {
        padding: 8px;
        margin: 4px 0;
        gap: 8px; /* Consistent gap for mobile */
    }
    
    .player-card .avatar {
        width: 32px;
        height: 32px;
    }
    
    .player-name {
        font-size: 13px;
    }
    
    .player-details {
        font-size: 11px;
    }
    
    /* Public banner smaller */
    .public-banner {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    /* Footer text smaller */
    .dashboard-footer {
        font-size: 12px;
        padding: 10px 15px;
    }
    
    .public-footer-info {
        font-size: 11px;
    }
    
    /* Legend items smaller */
    .legend-label {
        font-size: 11px;
    }
    
    .legend-icon {
        font-size: 12px;
    }
}

/* Smaller laptops and large tablets (1200px and below) */
@media screen and (max-width: 1200px) {
    .dashboard-app {
        transform: scale(0.8);
        width: 125%; /* Compensate for 0.8 scale */
        height: 125vh; /* Compensate for 0.8 scale */
        gap: 12px;
        padding: 12px;
    }
    
    /* Further reduce container sizes */
    .dashboard-messages-container {
        min-width: 220px;
        max-width: 320px;
        padding: 12px;
    }
    
    .dashboard-middle-column {
        min-width: 200px;
        max-width: 320px;
    }
    
    .dashboard-right-column {
        min-width: 200px;
    }
    
    .dashboard-players-column {
        min-width: 180px;
    }
    
    .dashboard-players-list-container {
        min-width: 180px;
    }
    
    /* Smaller fonts */
    .dashboard-campaign {
        font-size: 1.8rem;
    }
    
    .dashboard-session {
        font-size: 1rem;
    }
    
    .dashboard-messages-title,
    .dashboard-heroic-rolls-title,
    .dashboard-epic-fails-title,
    .dashboard-mighty-blows-title,
    .dashboard-devastating-blows-title,
    .dashboard-players-list-title {
        font-size: 1rem;
    }
    
    .roll-list-item .roll-player {
        font-size: 13px;
        max-width: 120px;
    }
    
    .roll-list-item .roll-dice {
        font-size: 11px;
    }
    
    .roll-list-item .roll-total {
        font-size: 13px;
    }
}

/* Tablets (1024px and below) */
@media screen and (max-width: 1024px) {
    .dashboard-app {
        transform: scale(0.7);
        width: 142.86%; /* Compensate for 0.7 scale */
        height: 142.86vh; /* Compensate for 0.7 scale */
        gap: 10px;
        padding: 10px;
    }
    
    /* Stack columns vertically on tablets */
    .dashboard-app {
        flex-direction: column;
        height: auto;
        overflow-y: auto;
        transform: none;
        width: 100%;
    }
    
    /* Make columns full width when stacked */
    .dashboard-messages-container,
    .dashboard-middle-column,
    .dashboard-right-column,
    .dashboard-players-column {
        min-width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 300px;
    }
    
    .dashboard-messages-container {
        height: 400px;
    }
    
    /* Adjust header for tablets */
    .dashboard-campaign {
        font-size: 1.6rem;
    }
    
    .dashboard-session {
        font-size: 0.9rem;
    }
}

/* Mobile phones (768px and below) */
@media screen and (max-width: 768px) {
    /* Mobile portrait layout - stack columns vertically */
    .dashboard-app {
        flex-direction: column;
        padding: 8px;
        gap: 12px;
        height: auto;
        overflow: visible;
    }
    
    /* Remove transform scaling on mobile */
    .dashboard-app {
        transform: none !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Mobile-friendly header */
    .dashboard-header {
        padding: 15px;
        text-align: center;
    }
    
    .dashboard-campaign {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    
    .dashboard-session {
        font-size: 0.8rem;
        margin-top: 5px;
    }
    
    /* Mobile column layout - stack vertically */
    .dashboard-messages-container,
    .dashboard-middle-column,
    .dashboard-right-column,
    .dashboard-players-column {
        width: 100%;
        min-width: unset;
        max-width: unset;
        height: auto;
        flex: none;
        order: unset;
    }
    
    /* Specific mobile column ordering and sizing */
    .dashboard-messages-container {
        order: 1;
        max-height: 400px;
        overflow-y: auto;
    }
    
    .dashboard-middle-column {
        order: 2;
        gap: 12px;
    }
    
    .dashboard-right-column {
        order: 3;
        gap: 12px;
    }
    
    .dashboard-players-column {
        order: 4;
        justify-content: flex-start;
    }
    
    /* Mobile containers */
    .dashboard-messages-container,
    .dashboard-heroic-rolls-container,
    .dashboard-epic-fails-container,
    .dashboard-mighty-blows-container,
    .dashboard-devastating-blows-container,
    .dashboard-players-list-container {
        padding: 12px;
        border-radius: 12px;
        min-height: 200px;
        margin-bottom: 8px;
    }
    
    /* Special sizing for mobile sections */
    .dashboard-heroic-rolls-container,
    .dashboard-epic-fails-container {
        min-height: 180px;
        max-height: 250px;
        overflow-y: auto;
    }
    
    .dashboard-mighty-blows-container,
    .dashboard-devastating-blows-container {
        min-height: 160px;
        max-height: 220px;
        overflow-y: auto;
    }
    
    .dashboard-players-list-container {
        min-height: 200px;
        max-height: 300px;
        overflow-y: auto;
    }
    
    /* Mobile-friendly titles */
    .dashboard-messages-title,
    .dashboard-heroic-rolls-title,
    .dashboard-epic-fails-title,
    .dashboard-mighty-blows-title,
    .dashboard-devastating-blows-title,
    .dashboard-players-list-title {
        font-size: 1rem;
        margin-bottom: 8px;
        text-align: center;
    }
    
    /* Compact roll items for mobile */
    .roll-list-item {
        padding: 8px;
        margin: 4px 0;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .roll-list-item .roll-avatar {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    
    /* Mobile roll text sizing */
    .roll-list-item .roll-details {
        flex: 1;
        min-width: 0;
    }
    
    .roll-list-item .roll-player-name {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .roll-list-item .roll-description {
        font-size: 0.8rem;
        opacity: 0.9;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .roll-list-item .roll-result {
        font-size: 1rem;
        font-weight: 700;
        flex-shrink: 0;
    }
    
    .roll-list-item .roll-player {
        font-size: 12px;
        max-width: 100px;
    }
    
    .roll-list-item .roll-dice {
        font-size: 10px;
    }
    
    .roll-list-item .roll-total {
        font-size: 12px;
    }
    
    /* Public banner mobile adjustments */
    .public-banner {
        font-size: 0.75rem;
        padding: 6px 12px;
        margin-top: 8px;
        border-radius: 20px;
    }
    
    /* Footer adjustments for mobile */
    .dashboard-footer {
        padding: 10px 15px;
        font-size: 0.8rem;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .public-footer-info {
        font-size: 0.75rem;
        order: 1;
    }
    
    #wsStatus {
        order: 2;
        font-size: 0.7rem;
    }
    
    /* Mobile player cards */
    .player-card {
        padding: 8px;
        margin: 4px 0;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .player-card .player-avatar {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    
    /* Ensure player images fit properly in mobile */
    .player-card .player-avatar img,
    .player-card .player-avatar .player-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
    
    .player-card .player-info {
        flex: 1;
        min-width: 0;
        text-align: left;
    }
    
    .player-card .player-name {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .player-card .player-class {
        font-size: 0.75rem;
        opacity: 0.8;
    }
}

/* Extra small mobile devices (phones in portrait) */
@media screen and (max-width: 480px) {
    .dashboard-header {
        padding: 10px;
    }
    
    .dashboard-campaign {
        font-size: 1.2rem;
    }
    
    .dashboard-session {
        font-size: 0.7rem;
    }
    
    .dashboard-app {
        padding: 6px;
        gap: 8px;
    }
    
    /* Even more compact containers */
    .dashboard-messages-container,
    .dashboard-heroic-rolls-container,
    .dashboard-epic-fails-container,
    .dashboard-mighty-blows-container,
    .dashboard-devastating-blows-container,
    .dashboard-players-list-container {
        padding: 8px;
        min-height: 150px;
    }
    
    .dashboard-messages-container {
        max-height: 300px;
    }
    
    /* Smaller titles for very small screens */
    .dashboard-messages-title,
    .dashboard-heroic-rolls-title,
    .dashboard-epic-fails-title,
    .dashboard-mighty-blows-title,
    .dashboard-devastating-blows-title,
    .dashboard-players-list-title {
        font-size: 0.9rem;
    }
    
    /* More compact roll items */
    .roll-list-item {
        padding: 6px;
        margin: 2px 0;
    }
    
    .roll-list-item .roll-avatar {
        width: 28px;
        height: 28px;
    }
    
    .roll-list-item .roll-player-name {
        font-size: 0.8rem;
    }
    
    .roll-list-item .roll-description {
        font-size: 0.7rem;
    }
    
    .roll-list-item .roll-result {
        font-size: 0.9rem;
    }
}

/* Portrait orientation - Players list as transparent left overlay */
@media screen and (orientation: portrait) and (max-width: 768px) {
    .dashboard-players-column {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 200px;
        height: 100vh;
        z-index: 500;
        background: rgba(30, 30, 46, 0.15);
        backdrop-filter: blur(8px);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        order: unset !important;
        padding: 60px 8px 8px 8px; /* Top padding to avoid header */
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .dashboard-players-list-container {
        background: transparent !important;
        border: none !important;
        padding: 8px !important;
        margin: 0 !important;
        min-height: unset !important;
    }
    
    .dashboard-players-list-header {
        background: rgba(30, 30, 46, 0.8);
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 8px;
    }
    
    .dashboard-players-list-title {
        font-size: 0.9rem;
        text-align: center;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .dashboard-players-list-divider {
        display: none;
    }
    
    .player-card {
        background: rgba(30, 30, 46, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        margin-bottom: 6px;
        backdrop-filter: blur(4px);
    }
    
    .player-card:hover {
        background: rgba(30, 30, 46, 0.9) !important;
        border-color: rgba(100, 181, 246, 0.5) !important;
    }
    
    /* Adjust other content to account for overlay */
    .dashboard-messages-container,
    .dashboard-middle-column,
    .dashboard-right-column {
        margin-left: 200px;
        width: calc(100% - 200px) !important;
    }
}

/* Smaller portrait screens - narrower overlay */
@media screen and (orientation: portrait) and (max-width: 600px) {
    .dashboard-players-column {
        width: 160px !important;
    }
    
    .dashboard-messages-container,
    .dashboard-middle-column,
    .dashboard-right-column {
        margin-left: 160px !important;
        width: calc(100% - 160px) !important;
    }
    
    .player-card .player-name {
        font-size: 0.8rem;
    }
    
    .player-card .player-class {
        font-size: 0.7rem;
    }
}

/* FINAL OVERRIDE: Ensure portrait mode players are always visible */
@media screen and (orientation: portrait) {
    .dashboard-players-column {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Force portrait overlay positioning on all portrait devices */
    .dashboard-players-column {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 180px !important;
        height: 100vh !important;
        z-index: 1000 !important;
        background: transparent !important; /* Remove background */
        backdrop-filter: none !important; /* Remove blur */
        border: none !important; /* Remove border */
        padding: 60px 8px 8px 8px !important;
        overflow-y: auto !important;
        box-shadow: none !important; /* Remove shadow */
    }
    
    /* Hide the container completely - no title, no borders */
    .dashboard-players-list-container {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        min-height: unset !important;
    }
    
    /* Hide the header/title completely */
    .dashboard-players-list-header,
    .dashboard-players-list-title,
    .dashboard-players-list-divider {
        display: none !important;
    }
    
    /* Floating player cards with just essential info */
    .player-card {
        background: rgba(0, 0, 0, 0.6) !important; /* Subtle dark background */
        border: none !important;
        border-radius: 12px !important;
        margin-bottom: 8px !important;
        padding: 10px !important;
        backdrop-filter: blur(8px) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important; /* Floating shadow */
        transition: all 0.2s ease !important;
    }
    
    .player-card:hover {
        background: rgba(0, 0, 0, 0.8) !important;
        transform: translateY(-2px) !important; /* Lift on hover */
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6) !important;
    }
    
    /* Clean player info styling */
    .player-card .player-name {
        color: #ffffff !important;
        font-weight: 600 !important;
        font-size: 0.9rem !important;
        margin-bottom: 2px !important;
    }
    
    .player-card .player-class {
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 0.75rem !important;
        font-weight: 400 !important;
    }
    
    /* Avatar styling */
    .player-card .player-avatar,
    .player-card .avatar {
        width: 36px !important;
        height: 36px !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* Don't adjust main content - let players float over it */
    .dashboard-messages-container,
    .dashboard-middle-column,
    .dashboard-right-column {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* ========================================================================== 
   QR CODE WIDGET - Desktop Public Dashboard
   ========================================================================== */

.qr-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(20, 20, 30, 0.9);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-display {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .qr-widget {
        bottom: 16px;
        left: 16px;
        padding: 8px;
    }
}
