/* ==========================================================================
   DashPalette Admin CSS (Color Hunt Style, 3D Icons & Studio UI)
   ========================================================================== */

.dashpalette-wrap {
	max-width: 1400px;
	margin: 25px auto 40px auto;
	padding-right: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #1e293b;
}

/* Header */
.dashpalette-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
	flex-wrap: wrap;
	gap: 15px;
}
.dashpalette-title-area h1 {
	font-size: 28px;
	font-weight: 700;
	color: #0f172a;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 6px 0;
}
.dashpalette-title-area .badge {
	font-size: 12px;
	background: #e2e8f0;
	color: #475569;
	padding: 3px 8px;
	border-radius: 999px;
	font-weight: 600;
}
.dashpalette-title-area .description {
	font-size: 14px;
	color: #64748b;
	margin: 0;
}
.dashpalette-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}
.dashpalette-header-actions .button {
	height: 38px;
	line-height: 36px;
	padding: 0 16px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 8px;
	transition: all 0.2s ease;
}
.dashpalette-header-actions #dp-reset-palette {
	color: #ef4444;
	text-decoration: none;
	cursor: pointer;
}
.dashpalette-header-actions #dp-reset-palette:hover {
	color: #b91c1c;
	text-decoration: underline;
}

/* Cards & Studio */
.dashpalette-card {
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	border: 1px solid #e2e8f0;
	padding: 24px 28px;
	margin-bottom: 35px;
}
.studio-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 14px;
}
.studio-header h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #1e293b;
}
.active-badge {
	background: #ecfdf5;
	color: #059669;
	border: 1px solid #a7f3d0;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

.studio-pickers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 24px;
}
.picker-group label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #475569;
	margin-bottom: 8px;
}

/* 4-Color Preview Strip */
.studio-preview-strip {
	display: flex;
	height: 60px;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	margin-bottom: 22px;
}
.strip-color {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	transition: flex 0.25s ease, background-color 0.2s ease;
}
.strip-color:hover {
	flex: 1.4;
}
.strip-color .color-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 3px 8px;
	background: rgba(0, 0, 0, 0.35);
	color: #ffffff;
	border-radius: 4px;
	pointer-events: none;
}

/* Optional Sidebar Icon Style Switcher */
.icon-style-selector-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	padding: 16px 20px;
	border-radius: 10px;
	margin-bottom: 22px;
	flex-wrap: wrap;
	gap: 15px;
}
.icon-style-label strong {
	display: block;
	font-size: 14px;
	color: #0f172a;
	margin-bottom: 2px;
}
.icon-subtext {
	font-size: 12px;
	color: #64748b;
}
.icon-style-options {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.icon-opt-pill {
	display: inline-flex;
	align-items: center;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	transition: all 0.2s ease;
}
.icon-opt-pill input {
	display: none;
}
.icon-opt-pill:hover {
	border-color: #94a3b8;
	background: #f1f5f9;
}
.icon-opt-pill.active {
	background: #0f172a;
	border-color: #0f172a;
	color: #ffffff;
	box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

.studio-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 15px;
	border-top: 1px solid #f1f5f9;
	padding-top: 18px;
}
.global-apply-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #475569;
	cursor: pointer;
}
.studio-actions .button-hero {
	height: 42px;
	line-height: 40px;
	padding: 0 24px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
}

/* ==========================================================================
   Color Hunt Style Explorer: Left Sidebar + Right Grid
   ========================================================================== */
.dashpalette-explorer-container {
	display: flex;
	gap: 30px;
	margin-top: 25px;
	align-items: flex-start;
}

/* Left Sidebar Navigation */
.dashpalette-sidebar-nav {
	width: 200px;
	flex-shrink: 0;
	position: sticky;
	top: 45px;
	background: #ffffff;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	padding: 20px 14px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
.nav-section {
	margin-bottom: 22px;
}
.nav-section:last-child {
	margin-bottom: 0;
}
.nav-section-title {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: #94a3b8;
	margin-bottom: 8px;
	padding-left: 10px;
}
.nav-category-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-category-list li {
	margin-bottom: 3px;
}
.cat-nav-btn {
	width: 100%;
	text-align: left;
	background: transparent;
	border: none;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #64748b;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.15s ease;
}
.cat-nav-btn:hover {
	background: #f8fafc;
	color: #0f172a;
}
.cat-nav-btn.active {
	background: #f1f5f9;
	color: #0f172a;
	font-weight: 700;
}
.cat-nav-btn .cat-icon {
	font-size: 13px;
}

/* Main Content Area */
.dashpalette-main-content {
	flex: 1;
	min-width: 0;
}
.dashpalette-content-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 15px;
}
.active-category-title h3 {
	margin: 0 0 4px 0;
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
	text-transform: capitalize;
}
.active-category-title span {
	font-size: 13px;
	color: #64748b;
}
.dp-search-wrapper input {
	width: 260px;
	height: 38px;
	padding: 0 14px;
	border-radius: 20px;
	border: 1px solid #cbd5e1;
	font-size: 13px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dp-search-wrapper input:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Grid of Color Cards */
.dashpalette-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
}

/* Palette Card */
.dp-card {
	background: #ffffff;
	border-radius: 18px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border: 1px solid #f1f5f9;
	display: flex;
	flex-direction: column;
	position: relative;
}
.dp-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* 4 Color Horizontal Slices */
.dp-palette-preview {
	height: 220px;
	display: flex;
	flex-direction: column;
	cursor: pointer;
	position: relative;
}
.dp-color-slice {
	flex: 1;
	position: relative;
	transition: flex 0.2s ease;
	display: flex;
	align-items: center;
	padding-left: 14px;
}
.dp-color-slice:hover {
	flex: 1.4;
}
.dp-color-slice .slice-hex {
	font-size: 11px;
	font-family: monospace;
	font-weight: 600;
	opacity: 0;
	transition: opacity 0.2s ease;
	background: rgba(0, 0, 0, 0.5);
	color: #ffffff;
	padding: 2px 6px;
	border-radius: 4px;
}
.dp-color-slice:hover .slice-hex {
	opacity: 1;
}

/* Card Meta (Likes, Date & Apply) */
.dp-card-meta {
	padding: 12px 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #ffffff;
	border-top: 1px solid #f8fafc;
}
.dp-card-likes {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #64748b;
	border: 1px solid #e2e8f0;
	padding: 4px 10px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	background: #ffffff;
	transition: all 0.15s ease;
}
.dp-card-likes:hover {
	color: #ef4444;
	border-color: #fca5a5;
	background: #fef2f2;
}
.dp-card-date {
	font-size: 11px;
	color: #94a3b8;
}
.dp-apply-btn {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	color: #1e293b;
	padding: 5px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}
.dp-apply-btn:hover {
	background: #2563eb;
	border-color: #2563eb;
	color: #ffffff;
}

/* Footer */
.dashpalette-footer {
	margin-top: 50px;
	text-align: center;
	border-top: 1px solid #e2e8f0;
	padding-top: 20px;
	font-size: 13px;
	color: #64748b;
}
.dashpalette-footer a {
	color: #2563eb;
	text-decoration: none;
}
.dashpalette-footer a:hover {
	text-decoration: underline;
}

/* Toast */
.dp-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: #0f172a;
	color: #ffffff;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	z-index: 999999;
	opacity: 0;
	transform: translateY(15px);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	pointer-events: none;
}
.dp-toast.show {
	opacity: 1;
	transform: translateY(0);
}
.dp-toast.error {
	background: #ef4444;
}

/* Responsive */
@media (max-width: 850px) {
	.dashpalette-explorer-container {
		flex-direction: column;
	}
	.dashpalette-sidebar-nav {
		width: 100%;
		position: static;
	}
	.nav-category-list {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
	}
	.cat-nav-btn {
		width: auto;
	}
}
