/* Specific Styles for Color Picker */
.container {
	max-width: 1200px;
}

/* Header margin adjustment if needed, otherwise inherit */
header {
	margin-bottom: 40px;
}

/* Format Selector */
.format-selector {
	background: rgba(0, 0, 0, 0.2);
	padding: 20px;
	border-radius: var(--card-radius);
	margin-bottom: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

.format-selector label {
	font-weight: 500;
	color: var(--text-main);
}

.format-buttons {
	display: flex;
	gap: 10px;
	background: rgba(0, 0, 0, 0.3);
	padding: 5px;
	border-radius: 30px;
}

.format-btn {
	padding: 10px 25px;
	border: none;
	border-radius: 25px;
	background: transparent;
	color: var(--text-muted);
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: var(--font-family);
}

.format-btn:hover {
	color: var(--text-main);
	background: rgba(255, 255, 255, 0.05);
}

.format-btn.active {
	background: linear-gradient(45deg, var(--accent-color), var(--accent-hover));
	color: #fff;
	box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

/* Category Tabs */
.category-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 30px;
	background: rgba(0, 0, 0, 0.2);
	padding: 10px;
	border-radius: var(--card-radius);
	overflow-x: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--accent-color) rgba(0, 0, 0, 0.3);
}

.category-tabs::-webkit-scrollbar {
	height: 6px;
}

.category-tabs::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.3);
	border-radius: 3px;
}

.category-tabs::-webkit-scrollbar-thumb {
	background: var(--accent-color);
	border-radius: 3px;
}

.tab-btn {
	flex: 1;
	min-width: 120px;
	padding: 15px 20px;
	border: none;
	border-radius: 12px;
	background: transparent;
	color: var(--text-muted);
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: var(--font-family);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 2px solid transparent;
}

.tab-btn:hover {
	color: var(--text-main);
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
	background: linear-gradient(45deg, var(--accent-color), var(--accent-hover));
	color: #fff;
	box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
	border-color: transparent;
}

.tab-icon {
	font-size: 1.3rem;
}

.tab-label {
	font-size: 0.95rem;
}

/* Color Content */
.color-content {
	animation: slideUp 0.5s ease-out;
}

/* Color Grid */
.color-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 15px;
}

@media (max-width: 768px) {
	.color-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
		gap: 12px;
	}
}

@media (max-width: 480px) {
	.color-grid {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
		gap: 10px;
	}
}

/* Color Card */
.color-card {
	background: rgba(0, 0, 0, 0.3);
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	position: relative;
}

.color-card:hover {
	transform: translateY(-5px);
	border-color: var(--accent-color);
	box-shadow: 0 8px 20px rgba(0, 210, 255, 0.3);
}

.color-card:active {
	transform: translateY(-2px);
}

.color-swatch {
	width: 100%;
	height: 100px;
	position: relative;
	overflow: hidden;
}

.color-swatch::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.color-card:hover .color-swatch::before {
	opacity: 1;
}

.color-info {
	padding: 12px;
	text-align: center;
}

.color-name {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-main);
	margin-bottom: 5px;
}

.color-code {
	font-size: 0.8rem;
	color: var(--text-muted);
	font-family: 'Courier New', monospace;
	font-weight: 500;
}

/* Copy Notification */
.copy-notification {
	position: fixed;
	top: 30px;
	left: 50%;
	transform: translateX(-50%) translateY(-100px);
	background: linear-gradient(45deg, var(--success-color), #00cc77);
	color: #000;
	padding: 15px 30px;
	border-radius: 50px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
	z-index: 1000;
	opacity: 0;
	transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.copy-notification.show {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

.notification-icon {
	font-size: 1.2rem;
	font-weight: bold;
}

.notification-text {
	font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
	.container {
		padding: 30px 20px;
	}

	h1 {
		font-size: 2rem;
	}

	.format-selector {
		flex-direction: column;
		gap: 15px;
	}

	.category-tabs {
		gap: 8px;
		padding: 8px;
	}

	.tab-btn {
		min-width: 100px;
		padding: 12px 15px;
		font-size: 0.9rem;
	}

	.tab-icon {
		font-size: 1.1rem;
	}

	.tab-label {
		font-size: 0.85rem;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 20px 15px;
	}

	h1 {
		font-size: 1.8rem;
	}

	.format-buttons {
		width: 100%;
		justify-content: space-between;
	}

	.format-btn {
		flex: 1;
		padding: 10px 15px;
		font-size: 0.85rem;
	}

	.tab-btn {
		flex-direction: column;
		gap: 4px;
		padding: 10px;
		min-width: 80px;
	}
}