* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--bg-body: #f4f7f9;
	--primary: #4a90e2;
	--white: #ffffff;
}

body {
	font-family: 'Segoe UI', Tahoma, sans-serif;
	background-color: var(--bg-body);
	color: #333;
	line-height: 1.6;
}

header {
	position: sticky;
	top: 0;
	background: var(--bg-body);
	padding: 20px 20px 15px;
	z-index: 1000;
	text-align: center;
	border-bottom: 2px solid #ddd;
}

header h1 {
	font-size: 24px;
	margin-bottom: 15px;
	font-weight: 300;
}

header h1 code {
	background: #fff;
	padding: 2px 10px;
	border-radius: 5px;
	color: var(--primary);
	border: 1px solid #ccc;
	font-weight: bold;
}

.tab-container {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-bottom: 15px;
}

.tab-btn {
	padding: 10px 25px;
	border: none;
	background: #e0e0e0;
	cursor: pointer;
	border-radius: 25px;
	font-weight: bold;
	transition: 0.3s;
	color: #666;
}

.tab-btn.active {
	background: var(--primary);
	color: white;
	box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

#searchBar {
	width: 100%;
	max-width: 500px;
	padding: 12px 25px;
	border: 2px solid #ddd;
	border-radius: 30px;
	outline: none;
	display: block;
	margin: 0 auto;
	font-size: 16px;
}

.content-section {
	display: none;
	padding: 30px 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.content-section.active {
	display: block;
}

ol#colorList {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 15px;
	list-style: none;
}

#colorList li.hidden { display: none; }

#colorList a {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100px;
	text-decoration: none;
	color: #000;
	border-radius: 12px;
	font-weight: 600;
	font-size: 13px;
	border: 1px solid rgba(0,0,0,0.08);
	transition: 0.2s;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#colorList a:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.table-wrapper {
	background: white;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.ascii-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.ascii-table thead th {
	position: sticky;
	top: 0; 
	background-color: #f8f9fa;
	color: var(--primary);
	padding: 15px;
	text-align: center;
	z-index: 900;
	border-bottom: 2px solid var(--primary);
	font-weight: bold;
}

.ascii-table td {
	padding: 12px 15px;
	border-bottom: 1px solid #eee;
	text-align: center;
}

.ascii-table tr:hover {
	background-color: #f1f7ff;
}

.copyable-code {
	font-family: 'Courier New', monospace;
	background: #fff0f0;
	padding: 5px 10px;
	border-radius: 5px;
	cursor: pointer;
	color: #d13438;
	font-weight: bold;
}

.toast {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	background: #333;
	color: #fff;
	padding: 12px 30px;
	border-radius: 50px;
	display: none;
	z-index: 2000;
}