/* Admin Page Styles for Autuskey Jewelry Manager */
/* Dark glassy palette to match reference */
:root{
    --bg-start:#071226;
    --bg-end:#0f2240;
    --card-bg:rgba(255,255,255,0.03);
    --select-bg:#102748;
    --card-border:rgba(255,255,255,0.06);
    --accent:#6ea8ff;
    --muted:rgba(255,255,255,0.68);
    --text:#eaf3ff;
}

/* Page wrapper scope - layered gradient for a richer background */
:root {
	--bg-1: #071226;
	--bg-2: #0f2240;
	--bg-3: #122b4f
}

.autuskey-jlm-admin {
	max-width: 1200px;
	margin: 18px auto;
	padding: 28px;
	color: var(--text);
	border-radius: 14px;
	/* background-image: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%), radial-gradient(600px 300px at 85% 10%, rgba(110, 168, 255, 0.06), transparent 15%), radial-gradient(500px 200px at 10% 90%, rgba(0, 0, 0, 0.08), transparent 20%); */
    background-image: linear-gradient(to bottom right, #0f172a, #111827, #1e3a8a);
}

/* Ensure all headings inside our admin page are visible and high contrast */
.autuskey-jlm-admin h1,
.autuskey-jlm-admin h2,
.autuskey-jlm-admin h3,
.autuskey-jlm-admin h4 {
	color: var(--text) !important;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

/* Banner / hero: full-width image with rounded corners */
.autuskey-jlm-hero {
	overflow: visible;
	border-radius: 12px;
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	background: transparent
}

.autuskey-jlm-hero img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 12px;
	object-fit: cover
}

/* Title placed below the banner */
.autuskey-jlm-banner-text {
	margin: 12px 0 20px;
	padding: 6px 10px
}

.autuskey-jlm-title {
	margin: 0;
	font-size: 24px;
	color: var(--text);
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 12px
}

.autuskey-jlm-title .icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
	display: inline-flex;
	align-items: center;
	justify-content: center
}

.autuskey-jlm-banner-text .subtitle {
	margin: 6px 0 0;
	color: var(--muted);
	font-size: 13px
}

/* Overall content layout */
.autuskey-jlm-container {
	display: flex;
	gap: 24px;
	align-items: flex-start
}

.autuskey-jlm-main {
	flex: 1
}

.autuskey-jlm-side {
	width: 320px
}

/* Glass card styles */
.autuskey-jlm-card {
	background: var(--card-bg);
	border-radius: 14px;
	border: 1px solid var(--card-border);
	padding: 24px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 10px 30px rgba(2, 6, 23, 0.6);
	backdrop-filter: blur(10px)
}

.autuskey-jlm-card.--padded {
	padding: 28px
}

.autuskey-jlm-card.--compact {
	padding: 16px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.005))
}

.card-head h2 {
	margin: 0 0 6px;
	font-size: 16px;
	color: var(--text)
}

.card-head .muted {
	margin: 0;
	color: var(--muted);
	font-size: 13px
}

/* Style the WP table/inputs used by settings fields */
.autuskey-jlm-form .form-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 14px
}

.autuskey-jlm-form .form-table th {
	width: 260px;
	padding: 12px 12px 6px 0;
	vertical-align: top;
	color: var(--text);
	font-weight: 600
}

.autuskey-jlm-form .form-table td {
	padding: 6px 0
}

.autuskey-jlm-form input[type="text"],
.autuskey-jlm-form input[type="number"],
.autuskey-jlm-form select,
.autuskey-jlm-form .regular-text {
	width: 100%;
	max-width: 720px;
	padding: 12px 14px;
	border: 1px solid var(--card-border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.02);
	color: var(--text)
}

.autuskey-jlm-form input:focus,
.autuskey-jlm-form select:focus {
	outline: none;
	box-shadow: 0 6px 26px rgba(110, 168, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.2);
}

/* Primary save button centered and styled */
.autuskey-jlm-form .form-actions {
	display: flex;
	justify-content: center;
	margin-top: 26px
}

.autuskey-jlm-form .form-actions .button-primary {
	padding: 12px 28px;
	border-radius: 24px;
	/* background: linear-gradient(180deg, var(--accent), #2b6be6); */
    background-image: linear-gradient(to right, #d55d2b, #ff7946);
	border: none;
	color: #fff;
	font-weight: 600;
	/* box-shadow: 0 6px 18px rgba(43, 107, 230, 0.18) */
}

.autuskey-jlm-form .form-actions .button-primary:hover {
    background-image: linear-gradient(to left, #d55d2b, #ff7946);
}

/* Metal types list styling */
#metal-types-container .metal-type-row {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 10px
}

#metal-types-container .metal-type-row input {
	flex: 1;
	padding: 14px 18px;
	border-radius: 12px;
	border: 1px solid var(--card-border);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.01));
	color: var(--text);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: 0.5s ease;
}

#metal-types-container .metal-type-row input:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

#metal-types-container .metal-type-row .remove-metal-type {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #d55d2b;
	font-weight: 700;
	font-size: 14px
}

#add-metal-type {
	margin-top: 10px;
    /* font-weight: 600; */
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
	transition: 0.5s ease;
	border-radius: 12px;
}

#add-metal-type:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Purity groups */
#purity-options-container .purity-group {
	margin-bottom: 12px;
	padding: 16px;
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.005));
	border: 1px solid rgba(255, 255, 255, 0.03)
}

#purity-options-container .purity-group h4 {
	margin: 0 0 8px;
	color: var(--text)
}

/* How to use numbered list */
.how-to-list {
	counter-reset: howto;
	list-style: none;
	padding: 0;
	margin: 0
}

.how-to-list li {
	position: relative;
	padding: 14px 16px 14px 45px;
	margin-bottom: 10px;
	background: transparent;
	border-radius: 10px
}

.how-to-list li:before {
	counter-increment: howto;
	content: counter(howto);
	position: absolute;
	left: 5px;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* background: linear-gradient(180deg, var(--accent), #2b6be6); */
    /* background-image: linear-gradient(to right, #d55d2b, #ff7946); */
	color: #fff;
	font-weight: 600;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom select styles */
.custom-select {
	position: relative;
	display: inline-block;
	width: 100%;
	max-width: 420px
}

.custom-select-display {
	width: 100%;
	text-align: left;
	padding: 12px 16px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--card-border);
	color: var(--text);
	cursor: pointer
}

.custom-select-options {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 8px);
	z-index: 9999;
	background: var(--select-bg);
	border: 1px solid var(--card-border);
	border-radius: 10px;
	padding: 6px 6px;
	box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
	max-height: 220px;
	overflow: auto;
	display: none
}

.custom-select-options.open {
	display: block;
	margin: 0;
	padding: 12px 16px;
	width: 100%;
}

.custom-select-options li {
	list-style: none;
	padding: 12px 16px;
	border-radius: 8px;
	color: var(--text);
	cursor: pointer
}

.custom-select-options li:hover {
	background: rgba(110, 168, 255, 0.12)
}

/* Ensure native selects are not visible or clickable (custom select used instead) */
.autuskey-jlm-form select {
	display: none !important;
	opacity: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important
}

.form-actions {
	text-align: right;
	margin-top: 18px
}

.muted {
	color: var(--muted)
}

@media (max-width:900px) {
	.autuskey-jlm-container {
		flex-direction: column
	}

	.autuskey-jlm-side {
		width: 100%
	}
}