.vidvix-admin {
	--vidvix-bg: linear-gradient(45deg, #2F1C53, #A46DFF, #F6D1FD);
	--vidvix-card: #ffffff;
	--vidvix-border: #d7deea;
	--vidvix-muted: #5b6474;
	--vidvix-accent: #A46DFF;
	--vidvix-accent-soft: #F6EDFF;
	--vidvix-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
	box-sizing: border-box;
	max-width: none;
	width: 90%;
}

.vidvix-admin [hidden] {
	display: none !important;
}

/* Third-party admin notices are intentionally suppressed on VidVix screens. */
body.toplevel_page_vidvix #wpbody-content .notice:not(.vidvix-own-notice),
body.toplevel_page_vidvix #wpbody-content .updated:not(.vidvix-own-notice),
body.toplevel_page_vidvix #wpbody-content .error:not(.vidvix-own-notice),
body.vidvix_page_vidvix-rentals #wpbody-content .notice:not(.vidvix-own-notice),
body.vidvix_page_vidvix-rentals #wpbody-content .updated:not(.vidvix-own-notice),
body.vidvix_page_vidvix-rentals #wpbody-content .error:not(.vidvix-own-notice),
body.vidvix_page_vidvix-settings #wpbody-content .notice:not(.vidvix-own-notice),
body.vidvix_page_vidvix-settings #wpbody-content .updated:not(.vidvix-own-notice),
body.vidvix_page_vidvix-settings #wpbody-content .error:not(.vidvix-own-notice) {
	display: none !important;
}

.vidvix-admin-header {
	background: var(--vidvix-bg);
	color: #fff;
	padding: 28px 32px;
	border-radius: 20px;
	box-shadow: var(--vidvix-shadow);
	margin: 24px 0;
}

.vidvix-admin-header-top {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 10px;
}

.vidvix-admin-logo {
	width: 64px;
	height: 64px;
	object-fit: contain;
	flex: 0 0 64px;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}
.vidvix-rentals-month-select {
    	border-radius:12px!important;
}
.vidvix-admin-header h1 {
	color: #fff;
	font-size: 30px;
	line-height: 1.1;
	margin: 0;
}

.vidvix-admin-header p {
	margin: 0;
	max-width: 760px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.82);
}

.vidvix-admin-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 24px;
	align-items: start;
	width: 100%;
}

.vidvix-admin-main,
.vidvix-admin-side {
	display: grid;
	gap: 20px;
	min-width: 0;
}

.vidvix-admin-main {
	width: 100%;
}

.vidvix-admin-side {
	justify-self: end;
	width: 100%;
}

.vidvix-section-card,
.vidvix-side-card {
	background: var(--vidvix-card);
	border: 1px solid var(--vidvix-border);
	border-radius: 18px;
	box-shadow: var(--vidvix-shadow);
	box-sizing: border-box;
}

.vidvix-section-card {
	padding: 24px;
}

.vidvix-side-card {
	padding: 20px;
}

.vidvix-section-card h2,
.vidvix-side-card h2 {
	margin: 0 0 8px;
	font-size: 18px;
}

.vidvix-section-title {
	display: flex;
	align-items: center;
	gap: 10px;
}

.vidvix-section-title-icon {
	width: 22px;
	height: 22px;
	display: block;
	object-fit: contain;
	color: #583ce5;
	flex: 0 0 22px;
}

.vidvix-section-title-icon-paypal {
	width: 28px;
	flex-basis: 28px;
}

.vidvix-section-intro,
.vidvix-side-card p,
.vidvix-code-help {
	color: var(--vidvix-muted);
	font-size: 13px;
}

.vidvix-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 20px;
}

.vidvix-chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid #cfd8e6;
	background: #fff;
	color: #1f2937;
	text-decoration: none;
	font-weight: 600;
	font-size: 12px;
}

.vidvix-chip:hover {
	border-color: var(--vidvix-accent);
	color: var(--vidvix-accent);
}

.vidvix-highlight {
	background: var(--vidvix-accent-soft);
	border: 1px solid #f6d7a8;
	color: #7c4a03;
	padding: 12px 14px;
	border-radius: 14px;
	font-size: 13px;
	margin-top: 14px;
}

.vidvix-admin .form-table th {
	width: 220px;
	padding: 16px 18px 16px 0;
	font-weight: 600;
}

.vidvix-admin .form-table td {
	padding: 12px 0;
}

.vidvix-admin .form-table input[type="text"],
.vidvix-admin .form-table input[type="url"],
.vidvix-admin .form-table input[type="number"],
.vidvix-admin .form-table textarea {
	border-radius: 12px;
	border: 1px solid #cbd5e1;
	padding: 10px 12px;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.vidvix-admin textarea.large-text.code {
	min-height: 280px;
	font-family: Menlo, Monaco, Consolas, monospace;
	font-size: 13px;
	line-height: 1.5;
}

.vidvix-admin .button,
.vidvix-admin .button-primary {
	border-radius: 999px;
	min-height: 40px;
	padding: 0 18px;
	border-color: #d8c7ff;
	background: #fff;
	color: #583ce5;
	box-shadow: none;
	font-weight: 600;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.vidvix-admin button.button,
.vidvix-admin a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.vidvix-admin .button-primary {
	background: #583ce5;
	border-color: #583ce5;
	color: #fff;
}

.vidvix-admin .button:hover,
.vidvix-admin .button:focus,
.vidvix-admin .button-primary:hover,
.vidvix-admin .button-primary:focus {
	background: #f6edff;
	border-color: #a46dff;
	color: #583ce5;
}

.vidvix-admin .button-primary:hover,
.vidvix-admin .button-primary:focus {
	background: #ede2ff;
}

.vidvix-admin .button:focus,
.vidvix-admin .button-primary:focus {
	box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgba(164, 109, 255, 0.4);
	outline: 2px solid transparent;
}

.vidvix-shortcode-list {
	display: grid;
	gap: 14px;
	margin-top: 18px;
}

.vidvix-catalog-list {
	display: grid;
	gap: 14px;
	margin-top: 18px;
}

.vidvix-catalog-row {
	border: 1px solid #dbe4ef;
	border-radius: 8px;
	background: #fbfdff;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
	overflow: visible;
}

.vidvix-saved-catalog-heading {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	background: #f3f7fc;
	border-bottom: 1px solid #dbe4ef;
}

.vidvix-catalog-fields {
	display: grid;
	grid-template-columns: minmax(130px, 0.45fr) repeat(2, minmax(220px, 1fr));
	gap: 14px;
	padding: 14px;
}

.vidvix-catalog-fields label {
	display: grid;
	gap: 6px;
	margin: 0;
}

.vidvix-catalog-fields label > span {
	color: #475569;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.vidvix-catalog-field-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
}

.vidvix-tooltip-container {
	position: relative;
	display: inline-flex;
	align-items: center;
	text-transform: none;
}

.vidvix-info-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1px solid #d8c7ff;
	color: #583ce5;
	cursor: help;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	text-transform: none;
}

.vidvix-tooltip-text {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 9999;
	visibility: hidden;
	opacity: 0;
	width: 300px;
	max-width: min(300px, 75vw);
	padding: 10px 12px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #dbe4ef;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
	color: #334155;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.45;
	text-align: left;
	text-transform: none;
	transition: opacity 0.18s ease, visibility 0.18s ease;
	white-space: normal;
}

.vidvix-tooltip-container:hover .vidvix-tooltip-text,
.vidvix-tooltip-container:focus-within .vidvix-tooltip-text {
	visibility: visible;
	opacity: 1;
}

.vidvix-catalog-field-wide {
	grid-column: 1 / -1;
}

.vidvix-catalog-fields input[type="text"] {
	width: 100%;
	min-height: 40px;
	border-color: #cbd5e1;
	border-radius: 8px;
	background: #fff;
}

.vidvix-catalog-actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
	align-items: center;
	flex-wrap: wrap;
}

.vidvix-saved-catalog {
	margin: 0;
}

.vidvix-saved-catalog-heading {
	margin: 0 0 14px !important;
	color: #0f172a;
	font-size: 15px;
	line-height: 1.3;
}

.vidvix-saved-catalog-list {
	display: grid;
	gap: 10px;
}

.vidvix-saved-catalog-header {
	display: grid;
	grid-template-columns: 110px minmax(360px, 1.7fr) minmax(260px, 1fr) 120px;
	align-items: center;
	padding: 0 12px;
	color: #475569;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.vidvix-saved-catalog-item {
	display: grid;
	grid-template-columns: 110px minmax(360px, 1.7fr) minmax(260px, 1fr) 120px;
	align-items: center;
	padding: 12px;
	border: 1px solid #dbe4ef;
	border-radius: 8px;
	background: #fbfdff;
	min-width: 0;
}

.vidvix-saved-catalog-header span:last-child {
	text-align: center;
}

.vidvix-saved-id-cell,
.vidvix-saved-media-url,
.vidvix-saved-shortcode-input {
	display: block;
	overflow-wrap: anywhere;
	min-width: 0;
	color: #334155;
	font-family: inherit;
	font-size: 13px !important;
	font-weight: 400;
	line-height: 1.4;
}

.vidvix-saved-shortcode-input {
	width: 100%;
	min-height: 40px;
	border: 0;
	background: transparent;
	box-shadow: none;
	padding: 0;
}
input.vidvix-shortcode-readonly-clean[readonly] {
    background: transparent;
    border: none;
}

.vidvix-saved-catalog-empty {
	margin: 0;
	color: #64748b;
}

.vidvix-card-save-button {
	margin-top: 10px !important;
}

.vidvix-add-row {
	border-radius: 999px;
}
.vidvix-search-input {
	-webkit-appearance: none;
	appearance: none;
	border-radius: 12px !important;
	border: 1px solid #cbd5e1;
	padding: 8px 12px;
}
.vidvix-shortcode-item {
	padding: 14px;
	border-radius: 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.vidvix-shortcode-item strong {
	display: block;
	margin-bottom: 8px;
	color: #0f172a;
}

.vidvix-shortcode-row {
	display: flex;
	gap: 10px;
	align-items: center;
}

.vidvix-shortcode-row input[type="text"],
.vidvix-catalog-fields .vidvix-shortcode-preview {
	flex: 1;
	background: #fff;
}

.vidvix-catalog-fields .vidvix-shortcode-preview {
	color: #475569;
	font-family: Consolas, Monaco, monospace;
}

.vidvix-copy-button {
	border-radius: 999px;
	white-space: nowrap;
}

.vidvix-action-buttons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.vidvix-icon-button {
	width: 42px;
	min-width: 42px;
	height: 42px;
	min-height: 42px !important;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	border: 1px solid #e2e8f0 !important;
	background: #f8fafc !important;
	color: #64748b !important;
	box-shadow: none !important;
}

.vidvix-action-icon {
	width: 22px;
	height: 22px;
	display: block;
	opacity: 0.72;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.vidvix-icon-button:hover,
.vidvix-icon-button:focus,
.vidvix-icon-button.is-copied {
	background: #f6edff !important;
	border-color: #c7b2fd !important;
	color: #583ce5 !important;
}

.vidvix-icon-button:hover .vidvix-action-icon,
.vidvix-icon-button:focus .vidvix-action-icon,
.vidvix-icon-button.is-copied .vidvix-action-icon {
	opacity: 1;
	transform: scale(1.18);
}

.vidvix-icon-button:focus {
	box-shadow: 0 0 0 2px rgba(164, 109, 255, 0.28) !important;
	outline: 2px solid transparent;
}

.vidvix-stat-list {
	display: grid;
	gap: 10px;
	margin-top: 12px;
}

.vidvix-stat {
	padding: 12px 14px;
	border-radius: 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.vidvix-stat strong {
	display: block;
	font-size: 16px;
	color: #0f172a;
}

.vidvix-side-card code,
.vidvix-section-card code {
	background: #f3f4f6;
	padding: 2px 6px;
	border-radius: 6px;
}

.vidvix-rentals-toolbar {
    display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 18px;
}
.vidvix-rentals-title {
	margin: 0;
}

.vidvix-rentals-title-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.vidvix-rentals-title-actions h2 {
	margin: 0;
}
.vidvix-rentals-controls-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.vidvix-rentals-filter-row,
.vidvix-rentals-search {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.vidvix-rentals-table-wrap {
	overflow-x: auto;
}

.vidvix-rentals-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.vidvix-rentals-table th,
.vidvix-rentals-table td {
	padding: 12px 14px;
	border-bottom: 1px solid #e2e8f0;
	text-align: left;
	vertical-align: top;
}

.vidvix-rentals-table th {
	font-size: 12px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #000;
}

.vidvix-rentals-table tbody tr {
	transition: background-color 0.18s ease;
}

.vidvix-rentals-table tbody tr:hover {
	background: #f6edff;
}

.vidvix-status-pill {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.vidvix-status-pill.active {
	background: #e7f8ee;
	color: #166534;
}

.vidvix-status-pill.expired {
	background: #fef2f2;
	color: #991b1b;
}

.vidvix-rentals-empty {
	padding: 28px;
	border: 1px dashed #cbd5e1;
	border-radius: 16px;
	color: #64748b;
	background: #f8fafc;
	text-align: center;
}

.vidvix-pagination {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-top: 18px;
	flex-wrap: wrap;
}

.vidvix-pagination .button {
	border-radius: 999px;
}

input.small-text {
	width: 60px;
}

.vidvix-video-id-input {
	width: 100% !important;
	min-width: 0 !important;
}

@media (max-width: 980px) {
	.vidvix-admin-grid {
		display: grid;
		grid-template-columns: 1fr;
	}

	.vidvix-admin-main,
	.vidvix-admin-side {
		width: auto;
	}

	.vidvix-shortcode-row {
		flex-direction: column;
		align-items: stretch;
	}

	.vidvix-catalog-fields {
		grid-template-columns: 1fr;
	}

	.vidvix-saved-catalog-item {
		grid-template-columns: 110px minmax(150px, 1fr) minmax(180px, 1fr) 96px;
		overflow-x: auto;
	}

	.vidvix-saved-catalog-header {
		grid-template-columns: 110px minmax(150px, 1fr) minmax(180px, 1fr) 96px;
		overflow-x: auto;
	}

	.vidvix-rentals-toolbar {
		align-items: stretch;
	}

	.vidvix-admin-header-top {
		align-items: flex-start;
	}

	.vidvix-admin-logo {
		width: 54px;
		height: 54px;
		flex-basis: 54px;
	}
}
