/* Radio Tuner Admin Stylesheet */

.rtp-admin-wrapper {
	margin: 20px 20px 0 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.rtp-admin-title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: #1d2327;
}

.rtp-admin-title .dashicons,
.rtp-admin-title .rtp-admin-icon {
	font-size: 28px;
	width: 28px;
	height: 28px;
	color: #ff5722;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.rtp-admin-title .rtp-admin-icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

/* Tabs Navigation Styling */
.rtp-tabs-header.nav-tab-wrapper {
	border-bottom: 2px solid #ccc;
	padding-bottom: 0;
	margin-bottom: 25px;
	display: flex;
	gap: 5px;
	align-items: center;
}

.rtp-upgrade-pro-btn {
	margin-left: auto;
	align-self: center;
	background: linear-gradient(135deg, #00adb5 0%, #007a82 100%);
	color: #ffffff !important;
	font-weight: 500;
	font-size: 16px;
	text-decoration: none;
	padding: 7px 15px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 2px 6px rgba(0, 173, 181, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: all 0.2s ease-in-out;
	cursor: pointer;
	margin-bottom: 5px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1;
}

.rtp-upgrade-pro-btn:hover {
	background: linear-gradient(135deg, #00c2cb 0%, #006970 100%);
	box-shadow: 0 4px 10px rgba(0, 173, 181, 0.4);
	transform: translateY(-1px);
}

.rtp-upgrade-pro-btn:active {
	transform: translateY(0);
}

.rtp-upgrade-pro-btn i {
	font-size: 16px;
}

.rtp-tabs-header .nav-tab {
	font-size: 14px;
	font-weight: 600;
	padding: 10px 18px;
	border: 1px solid #ccc;
	border-bottom: none;
	background: #e5e5e5;
	color: #50575e;
	border-radius: 4px 4px 0 0;
	transition: all 0.15s ease-in-out;
	display: flex;
	align-items: center;
	gap: 8px;
}

.rtp-tabs-header .nav-tab i {
	font-size: 14px;
}

.rtp-tabs-header .nav-tab:hover {
	background: #f0f0f1;
	color: #1d2327;
}

.rtp-tabs-header .nav-tab-active,
.rtp-tabs-header .nav-tab-active:focus,
.rtp-tabs-header .nav-tab-active:focus:active,
.rtp-tabs-header .nav-tab-active:hover {
	background: #fff;
	border: 1px solid #ccc;
	border-bottom: 2px solid #fff;
	margin-bottom: -2px;
	color: #1d2327;
}

/* Layout Grid */
.rtp-stations-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 24px;
	align-items: start;
}

@media (max-width: 960px) {
	.rtp-stations-grid {
		grid-template-columns: 1fr;
	}
}

/* Card Styling */
.rtp-card {
	background: #fff;
	border: 1px solid #ccd0d4;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	padding: 24px;
	border-radius: 6px;
	margin-bottom: 24px;
}

.rtp-card h2 {
	font-size: 18px;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 12px;
	color: #1d2327;
	border-bottom: 1px solid #f0f0f1;
	padding-bottom: 12px;
}

/* Station Table styling */
.rtp-table-logo {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #dcdcde;
	background: #f0f0f1;
	display: block;
}

.rtp-stations-table th {
	font-weight: 600;
	color: #3c434a;
	padding: 12px 10px;
}

.rtp-stations-table td {
	vertical-align: middle;
	padding: 12px 10px;
}

.rtp-genre-badge {
	font-size: 11px;
	display: inline-block;
	background: #e7e7ed;
	color: #50575e;
	padding: 2px 8px;
	border-radius: 12px;
	margin-top: 4px;
	font-weight: 500;
}

.rtp-freq-badge {
	font-size: 12px;
	font-weight: 700;
	color: #ff5722;
	background: rgba(255, 87, 34, 0.1);
	padding: 4px 10px;
	border-radius: 4px;
	display: inline-block;
}

.rtp-stream-url-col {
	max-width: 250px;
	overflow: hidden;
}

.rtp-stream-code {
	font-family: monospace;
	font-size: 11px;
	background: #f0f0f1;
	padding: 3px 6px;
	border-radius: 3px;
	display: inline-block;
	max-width: 100%;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	color: #2c3338;
}

.rtp-edit-station-btn i,
.rtp-delete-station-btn i {
	margin-right: 2px;
}

/* Form Styles */
.rtp-form-field {
	margin-bottom: 18px;
}

.rtp-field-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 13px;
	color: #2c3338;
}

.rtp-form-field input[type="text"],
.rtp-form-field input[type="number"],
.rtp-form-field input[type="url"] {
	width: 100%;
	padding: 8px 10px;
	font-size: 14px;
	line-height: 1.5;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.07);
	background-color: #fff;
	color: #2c3338;
	box-sizing: border-box;
}

.rtp-form-field input:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: 2px solid transparent;
}

.rtp-media-uploader-box {
	display: flex;
	gap: 12px;
	align-items: center;
}

.rtp-form-logo-preview {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #ccd0d4;
	background: #f0f0f1;
}

.rtp-media-buttons {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.rtp-media-buttons input {
	background: #f0f0f1 !important;
	cursor: not-allowed;
}

.rtp-form-actions {
	display: flex;
	gap: 10px;
	margin-top: 25px;
	border-top: 1px solid #f0f0f1;
	padding-top: 20px;
}

.rtp-form-actions button i {
	margin-right: 4px;
}

/* API Search Styling */
.rtp-search-input-group {
	display: flex;
	gap: 8px;
}

.rtp-search-input-group input {
	flex: 1;
	box-sizing: border-box;
	padding: 6px 10px;
	font-size: 13px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
}

.rtp-search-source-selectors {
	margin: 8px 0 12px 0;
	display: flex;
	gap: 15px;
	font-size: 12px;
}

.rtp-search-source-selectors label {
	display: flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	font-weight: 500;
}

.rtp-search-results-box {
	max-height: 250px;
	overflow-y: auto;
	border: 1px solid #ccd0d4;
	background: #fff;
	border-radius: 4px;
	margin-top: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	display: none;
}

.rtp-search-results-box.active {
	display: block;
}

.rtp-search-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border-bottom: 1px solid #f0f0f1;
	cursor: pointer;
	transition: background 0.15s ease;
}

.rtp-search-row:last-child {
	border-bottom: none;
}

.rtp-search-row:hover {
	background: #f0f6fc;
}

.rtp-search-logo {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	background: #f0f0f1;
	border: 1px solid #dcdcde;
}

.rtp-search-meta {
	flex: 1;
	line-height: 1.3;
}

.rtp-search-name {
	font-weight: 600;
	font-size: 13px;
	color: #1d2327;
}

.rtp-search-desc {
	font-size: 11px;
	color: #646970;
}

.rtp-search-no-results,
.rtp-search-loading {
	padding: 15px;
	text-align: center;
	font-size: 13px;
	color: #646970;
}

.rtp-divider {
	border: 0;
	border-top: 1px solid #ccd0d4;
	margin: 20px 0;
}

/* Tooltip */
.rtp-tooltip {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 15px;
	height: 15px;
	background: #ccd0d4;
	color: #50575e;
	border-radius: 50%;
	font-size: 10px;
	cursor: help;
	margin-left: 4px;
	vertical-align: middle;
}

/* Switch styling for general settings */
.rtp-switch-wrapper {
	position: relative;
	display: inline-block;
	width: 46px;
	height: 24px;
}

.rtp-switch-wrapper input {
	opacity: 0;
	width: 0;
	height: 0;
}

.rtp-slider-switch {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .3s;
	border-radius: 24px;
}

.rtp-slider-switch:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .3s;
	border-radius: 50%;
}

.rtp-switch-wrapper input:checked + .rtp-slider-switch {
	background-color: #ff5722;
}

.rtp-switch-wrapper input:checked + .rtp-slider-switch:before {
	transform: translateX(22px);
}

.rtp-settings-table th {
	width: 250px;
	padding: 20px 10px 20px 0;
	font-weight: 600;
}

.rtp-settings-table td {
	padding: 15px 10px;
}

/* Preview play button and quality info styles */
#rtp-preview-play-btn {
	background-color: #2271b1;
	border-color: #2271b1;
	color: #fff;
	transition: all 0.2s ease;
}
#rtp-preview-play-btn:hover {
	background-color: #135e96;
	border-color: #135e96;
	color: #fff;
}
#rtp-preview-play-btn.playing {
	background-color: #46b450;
	border-color: #46b450;
	color: #fff;
}
#rtp-preview-play-btn.playing:hover {
	background-color: #3ca245;
	border-color: #3ca245;
	color: #fff;
}
#rtp-preview-play-btn.buffering {
	background-color: #cca300;
	border-color: #cca300;
	color: #fff;
	cursor: wait;
}

.rtp-quality-info {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f0f6fc;
	border: 1px solid #c8d7e1;
	border-radius: 4px;
	padding: 6px 12px;
	margin-top: 8px;
	font-weight: 500;
}

/* Design Selector Styles */
.rtp-design-card {
	padding: 24px;
}

.rtp-design-selector-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin: 20px 0 30px 0;
	max-width: 100%;
}

@media (max-width: 768px) {
	.rtp-design-selector-grid {
		grid-template-columns: 1fr;
	}
}

.rtp-design-option-card {
	display: block;
	border: 2px solid #ccd0d4;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	background: #fff;
	position: relative;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.rtp-design-option-card:hover {
	border-color: #2271b1;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.rtp-design-option-card:has(input:checked) {
	border-color: #ff5722;
	box-shadow: 0 0 0 1px #ff5722, 0 4px 12px rgba(255, 87, 34, 0.12);
}

.rtp-design-card-image {
	position: relative;
	overflow: hidden;
	background: #f0f0f1;
}

.rtp-design-card-image img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.rtp-design-option-card:hover .rtp-design-card-image img {
	transform: scale(1.02);
}

.rtp-design-card-badge {
	position: absolute;
	top: 16px;
	right: 16px;
	font-size: 22px;
	color: #fff;
	background: rgba(0, 0, 0, 0.5);
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	transform: scale(0.8);
	z-index: 10;
}

.rtp-design-option-card:has(input:checked) .rtp-design-card-badge {
	opacity: 1;
	background: #ff5722;
	transform: scale(1);
}

/* Design Option Header Layout */
.rtp-design-option-wrapper {
	margin-bottom: 24px;
}

.rtp-design-option-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	padding: 0 4px;
}

.rtp-design-title {
	font-size: 15px;
	font-weight: 600;
	color: #1d2327;
}

/* Customize Settings Gear Button text-link style */
.rtp-design-settings-trigger {
	background: none;
	border: none;
	padding: 0;
	color: #2271b1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
	font-size: 13px;
	transition: color 0.15s ease-in-out;
	outline: none;
	box-shadow: none;
}

.rtp-design-settings-trigger:hover {
	color: #135e96;
	text-decoration: underline;
}

.rtp-design-settings-trigger i {
	font-size: 14px;
}

/* Breadcrumb and Back Link */
.rtp-breadcrumb {
	margin: 10px 0 20px 0;
}

.rtp-back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #2271b1;
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
	transition: color 0.15s ease-in-out;
}

.rtp-back-link:hover {
	color: #135e96;
	text-decoration: underline;
}

.rtp-back-link i {
	font-size: 12px;
}

/* Customizer Form Page styling */
.rtp-customize-design-card {
	padding: 24px;
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.rtp-customize-design-card h2 {
	margin-top: 0;
	font-size: 20px;
	font-weight: 600;
	color: #1d2327;
}

.rtp-customize-design-card .description {
	margin-bottom: 24px;
	font-size: 13.5px;
	color: #646970;
	max-width: 600px;
}

.rtp-customize-form-table {
	max-width: 800px;
	margin-bottom: 24px;
}

.rtp-customize-form-table th {
	width: 250px;
	padding: 20px 10px 20px 0;
}

.rtp-customize-form-table td {
	padding: 15px 10px;
}

.rtp-customize-form-table label {
	font-weight: 600;
	color: #1d2327;
}

.rtp-color-input-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
}

.rtp-color-input-wrapper input[type="color"] {
	width: 50px;
	height: 36px;
	padding: 0;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	background: none;
	cursor: pointer;
}

.rtp-color-hex-label {
	font-family: monospace;
	font-size: 13px;
	color: #50575e;
	background: #f0f0f1;
	padding: 6px 10px;
	border-radius: 4px;
	border: 1px solid #ccd0d4;
	text-transform: uppercase;
}

.rtp-customize-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #f0f0f1;
}

.rtp-cancel-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 30px;
	line-height: 28px;
	padding: 0 12px;
	text-decoration: none;
}

/* -------------------------------------------------------------
 * 5. Digital Tuner Typography & Preview Customizer
 * ------------------------------------------------------------- */
.rtp-digital-tuner-preview-card {
	padding: 30px;
	border-radius: 16px;
	border: 1px solid #ccd0d4;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 130px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.03);
	transition: background-color 0.2s ease, border-color 0.2s ease, backdrop-filter 0.2s ease;
	max-width: 450px;
	position: relative;
	overflow: hidden;
}

.rtp-preview-light {
	background-color: #ffffff;
	border-color: rgba(229, 226, 217, 0.6);
}

.rtp-preview-dark {
	background-color: #0b0b0c;
	border-color: rgba(255, 255, 255, 0.1);
}

.rtp-digital-tuner-preview-box {
	display: flex;
	align-items: baseline;
	justify-content: center;
	line-height: 1;
}

.rtp-digital-tuner-preview-digits {
	font-size: 65px;
	font-weight: 800;
	color: #ff6f00;
	transition: font-size 0.15s ease, color 0.2s ease, font-family 0.2s ease;
	display: inline-block;
	width: 180px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.rtp-digital-tuner-preview-suffix {
	font-size: 18px;
	font-weight: 600;
	color: #ff6f00;
	margin-left: 8px;
	transition: color 0.2s ease;
}

.rtp-font-uploader-wrapper {
	max-width: 500px;
}

.rtp-font-uploader-wrapper input[readonly] {
	background-color: #f6f7f7 !important;
	border-color: #dcdcde !important;
	color: #2c3338 !important;
}

.rtp-clear-btn {
	color: #b32d2e !important;
	border-color: #b32d2e !important;
}

.rtp-clear-btn:hover {
	background-color: #fdf2f2 !important;
	color: #b32d2e !important;
	border-color: #b32d2e !important;
}

/* =============================================================
 * 6. Design selection cards
 * ============================================================= */

/* Locked premium layouts style */
.rtp-premium-locked .rtp-design-option-card {
	border: none !important;
	box-shadow: none !important;
	background: transparent !important;
	cursor: pointer !important;
}

.rtp-design-card-image .floating-player-card {
	z-index: 100 !important;
}

.rtp-premium-locked .rtp-design-card-image img {
	filter: grayscale(100%) opacity(60%) blur(0.5px);
	transition: all 0.3s ease;
	border-radius: 8px;
}

.rtp-premium-locked:hover .rtp-design-option-card {
	border: none !important;
	box-shadow: none !important;
}

.rtp-premium-locked:hover .rtp-design-card-image img {
	filter: grayscale(80%) opacity(75%) blur(0px);
	transform: scale(1.01);
}

.rtp-premium-locked .rtp-design-card-badge {
	opacity: 1 !important;
	background: #3f3f46 !important;
	color: #ffffff !important;
	transform: scale(1) !important;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.rtp-premium-locked:hover .rtp-design-card-badge {
	background: #2563eb !important;
	transform: scale(1.1) !important;
}

.rtp-premium-badge-label {
	display: inline-block;
	font-size: 9px;
	font-weight: 800;
	color: #ffffff;
	background: #2563eb;
	padding: 2px 6px;
	border-radius: 4px;
	margin-left: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	vertical-align: middle;
	line-height: 1.2;
}

/* Premium modal styles */
.rtp-premium-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 999999;
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	padding: 20px;
	animation: rtpFadeOverlayIn 0.25s ease forwards;
}

.rtp-premium-modal {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
	padding: 36px;
	max-width: 540px;
	width: 100%;
	position: relative;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-sizing: border-box;
	animation: rtpModalFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rtp-premium-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	color: #94a3b8;
	cursor: pointer;
	line-height: 1;
	padding: 4px;
	transition: color 0.15s ease;
}

.rtp-premium-modal-close:hover {
	color: #475569;
}

.rtp-premium-modal-header {
	text-align: center;
	margin-bottom: 24px;
}

.rtp-premium-icon-shield {
	width: 64px;
	height: 64px;
	background: #eff6ff;
	color: #2563eb;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	margin: 0 auto 16px auto;
	box-shadow: 0 4px 10px rgba(37, 99, 235, 0.1);
}

.rtp-premium-modal-header h2 {
	margin: 0;
	font-size: 22px;
	font-weight: 750;
	color: #0f172a;
	letter-spacing: -0.2px;
}

.rtp-premium-intro {
	color: #475569;
	font-size: 14.5px;
	line-height: 1.6;
	text-align: center;
	margin: 0 0 24px 0;
}

.rtp-premium-features-list {
	margin: 0 0 32px 0;
	padding: 0;
	list-style: none;
}

.rtp-premium-features-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 14px;
	font-size: 13.5px;
	line-height: 1.5;
	color: #334155;
}

.rtp-premium-features-list li i {
	color: #2563eb;
	font-size: 16px;
	margin-top: 2px;
	flex-shrink: 0;
}

.rtp-premium-features-list li strong {
	color: #0f172a;
	font-weight: 650;
}

.rtp-premium-modal-footer {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: stretch;
}

.rtp-premium-modal-footer .rtp-btn-upgrade {
	background: #2563eb !important;
	border-color: #2563eb !important;
	color: #ffffff !important;
	font-weight: 600 !important;
	padding: 12px 24px !important;
	font-size: 14.5px !important;
	height: auto !important;
	line-height: 1.5 !important;
	border-radius: 8px !important;
	text-align: center;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
	transition: all 0.2s ease !important;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.rtp-premium-modal-footer .rtp-btn-upgrade:hover {
	background: #1d4ed8 !important;
	border-color: #1d4ed8 !important;
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35) !important;
	transform: translateY(-1px);
}

.rtp-premium-modal-footer .rtp-btn-close-modal {
	background: #ffffff !important;
	border: 1px solid #cbd5e1 !important;
	color: #64748b !important;
	font-weight: 550 !important;
	padding: 10px 24px !important;
	font-size: 13.5px !important;
	height: auto !important;
	line-height: 1.5 !important;
	border-radius: 8px !important;
	text-align: center;
	transition: all 0.15s ease !important;
}

.rtp-premium-modal-footer .rtp-btn-close-modal:hover {
	background: #f8fafc !important;
	color: #475569 !important;
	border-color: #94a3b8 !important;
}

@keyframes rtpFadeOverlayIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
