/* General styles */

html,
body {
	height: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

body {
	font-family: Arial, sans-serif;
	background: rgba(235, 222, 206, 0.9);
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	min-width: 100vw;
	box-sizing: border-box;
	transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
	background-color: #000000;
	color: #f4dc99;
}

body.dark-mode .container {
	background-color: #000000;
	color: #f4dc99;
	border: 1px solid #444444;
}

body.dark-mode .header h1,
body.dark-mode .header h2 {
	color: #f4dc99;
}

body.dark-mode .header p {
	color: #f4dc99;
}

body.dark-mode .rules th {
	background: #1e0606;
	color: #f4dc99;
}

body.dark-mode .rules tr:nth-child(even) {
	background: #1e0606;
}

body.dark-mode .rules tr:nth-child(odd) {
	background: #141312;
}

body.dark-mode .rules th,
body.dark-mode .rules td {
	color: #f4dc99;
}

/* Container styles */

.container {
	width: 90%;
	height: 90vh;
	margin: 20px;
	background: rgba(245, 240, 225, 1);
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
	border: 1px solid #8a6e45;
	box-sizing: border-box;
	overflow-y: auto;
	transition: background-color 0.3s, color 0.3s;
}

body.dark-mode .container {
	background: #1c1c1c;
}

/* Header styles */

.header {
	margin-bottom: 20px;
	position: relative;
}

.header h1 {
	margin: 0;
	color: #8B4513;
	font-size: 24px;
}

.header h2 {
	margin: 5px 0 0 0;
	color: #8B4513;
	font-size: 17px;
}

.header p {
	font-size: 14px;
	color: #4b3b2e;
	margin-top: 10px;
}

body.dark-mode .header h1,
body.dark-mode .header h2,
body.dark-mode .header p {
	color: #f4dc99;
}

.header-controls {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	gap: 15px;
}

.theme-toggle {
	display: flex;
	gap: 10px;
}

.theme-toggle img {
	width: 24px;
	height: 24px;
	cursor: pointer;
}

/* Language Selector Styles */
.lang-selector {
	position: relative;
	font-size: 13px;
	font-weight: bold;
	color: #e5cc8a;
	/* Expand hover area upwards and downwards slightly */
	padding-bottom: 10px;
	margin-bottom: -10px;
}

.lang-current {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	padding: 5px 12px;
	background: #111111;
	border-radius: 4px;
	user-select: none;
	transition: background 0.3s;
}

.lang-selector:hover .lang-current {
	background: #1a1a1a;
}

.globe-icon {
	font-size: 14px;
	color: #3da9fc;
}

.arrow-down {
	font-size: 9px;
	color: #e5cc8a;
	transition: transform 0.3s;
}

.lang-selector:hover .arrow-down {
	transform: rotate(180deg);
}

.lang-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	/* Removed margin-top to eliminate the hover gap */
	margin-top: 0;
	background: rgba(20, 15, 15, 0.95);
	border: 1px solid #8a6e45;
	border-radius: 4px;
	min-width: 150px;
	max-height: 300px;
	overflow-y: auto;
	z-index: 1000;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
	/* Subtle transition for appearance */
	animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.lang-selector:hover .lang-dropdown {
	display: flex;
	flex-direction: column;
}

.lang-dropdown a {
	color: #d4c090;
	text-decoration: none;
	padding: 10px 15px;
	display: flex;
	align-items: center;
	border-bottom: 1px solid #2d241d;
	transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.lang-dropdown a:last-child {
	border-bottom: none;
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
	background: rgba(138, 110, 69, 0.3);
	color: #fcebd0;
	padding-left: 20px;
	/* Slight indent on hover */
}

/* Custom Scrollbar for Dropdown */
.lang-dropdown::-webkit-scrollbar {
	width: 6px;
}

.lang-dropdown::-webkit-scrollbar-track {
	background: rgba(20, 15, 15, 0.9);
	border-radius: 0 4px 4px 0;
}

.lang-dropdown::-webkit-scrollbar-thumb {
	background: #6a5238;
	border-radius: 3px;
}

.lang-dropdown::-webkit-scrollbar-thumb:hover {
	background: #8a6e45;
}

/* Zone styles */

.zone {
	margin: 20px 0;
	background-color: rgba(245, 240, 225, 1);
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transition: background-color 0.3s, color 0.3s;
	border: 1px solid #000000;
	/* Siyah sınır eklendi */
}

body.dark-mode .zone {
	background-color: #1c1c1c;
	border: 1px solid #444444;
}

.zone h2 {
	background-color: #333;
	color: #fff;
	padding: 10px;
	border-radius: 5px;
	margin-top: 0;
	font-size: 20px;
}

body.dark-mode .zone h2 {
	background-color: #444444;
}

ul {
	list-style: none;
	padding-left: 0;
}

li {
	padding: 8px;
	margin: 5px 0;
	border-bottom: 1px solid #000000;
	/* Border rengi siyah yapıldı */
	display: flex;
	justify-content: space-between;
	align-items: center;
}

body.dark-mode li {
	border-bottom: 1px solid #555555;
}

.status {
	padding: 5px 10px;
	border-radius: 3px;
	font-weight: bold;
	font-size: 12px;
	text-align: center;
	min-width: 60px;
}

.status.active {
	background-color: #4caf50;
	color: white;
}

.status.inactive {
	background-color: #f44336;
	color: white;
}

/* Scrollbar styles */
.container::-webkit-scrollbar {
	width: 8px;
}

.container::-webkit-scrollbar-track {
	background: #f1f1f1;
}

body.dark-mode .container::-webkit-scrollbar-track {
	background: #333333;
}

.container::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 4px;
}

.container::-webkit-scrollbar-thumb:hover {
	background: #555;
}

/* Additional Styles for .rules table borders */
.rules table,
.rules th,
.rules td {
	border: 1px solid #000000;
	/* Siyah sınır eklendi */
}

body.dark-mode .rules table,
body.dark-mode .rules th,
body.dark-mode .rules td {
	border: 1px solid #444444;
}