/**
 * Responsive Mobile Select Menu - Admin Styles
 *
 * @package ResponsiveMobileSelect\Admin
 * @since 2.0.0
 */

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
/* WCAG 2.1 AA compliant color contrasts */
/* Light mode: Minimum 4.5:1 contrast ratio */
/* Dark mode: Minimum 4.5:1 contrast ratio */

/* Admin page layout */
.responsive-menu-admin-container {
	display: flex;
	gap: 2rem;
	margin-top: 1rem;
}

.responsive-menu-admin-content {
	flex: 1;
	min-width: 0; /* Prevent flex item from overflowing */
}

.responsive-menu-admin-sidebar {
	width: 320px;
	flex-shrink: 0;
}

/* Settings sections */
.responsive-menu-settings-section {
	background: #ffffff;
	border: 2px solid #d1d5db; /* Better contrast */
	border-radius: 12px;
	padding: 2rem;
	margin-bottom: 2rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	color: #111827; /* Better contrast: 15.6:1 */
	transition: all 0.2s ease;
}

.responsive-menu-settings-section:hover {
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	transform: translateY(-1px);
}

.responsive-menu-settings-section h2 {
	margin-top: 0;
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid #d1d5db; /* Better contrast */
	font-size: 1.4em;
	font-weight: 700;
	color: #111827; /* Better contrast: 15.6:1 */
	position: relative;
}

.responsive-menu-settings-section h2::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 60px;
	height: 2px;
	background: linear-gradient(90deg, #2563eb, #7c3aed); /* Better contrast colors */
	border-radius: 1px;
}

/* Form elements */
.responsive-menu-settings-section .form-table th {
	padding: 20px 10px 20px 0;
	width: 200px;
	line-height: 1.4;
	font-weight: 600;
	color: #111827; /* Better contrast: 15.6:1 */
	vertical-align: top;
}

.responsive-menu-settings-section .form-table td {
	padding: 15px 10px;
	line-height: 1.4;
	vertical-align: top;
	color: #111827; /* Better contrast: 15.6:1 */
}

/* Checkbox lists styling - Modern Flexbox Layout */
.rms-locations-list,
.rms-menuids-list {
	margin: 1rem 0 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding: 1rem;
	background: #f9fafb; /* Better contrast */
	border: 2px solid #d1d5db; /* Better contrast */
	border-radius: 8px;
	transition: all 0.2s ease;
}

.rms-menuids-list {
	max-height: 280px;
	overflow-y: auto;
	background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%); /* Better contrast */
	border: 2px solid #9ca3af; /* Better contrast */
}

.rms-locations-list:hover,
.rms-menuids-list:hover {
	background: #f3f4f6; /* Better contrast */
	border-color: #9ca3af; /* Better contrast */
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.rms-locations-list label,
.rms-menuids-list label {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	min-width: 200px;
	max-width: 300px;
	padding: 0.75rem 1rem;
	background: #ffffff;
	border: 2px solid #d1d5db; /* Better contrast */
	border-radius: 8px;
	margin: 0;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
}

.rms-locations-list label::before,
.rms-menuids-list label::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 3px;
	height: 100%;
	background: linear-gradient(180deg, #2563eb, #7c3aed); /* Better contrast colors */
	opacity: 0;
	transition: opacity 0.2s ease;
}

.rms-locations-list label:hover,
.rms-menuids-list label:hover {
	background: #fefefe;
	border-color: #2563eb; /* Better contrast */
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
	transform: translateY(-1px);
}

.rms-locations-list label:hover::before,
.rms-menuids-list label:hover::before {
	opacity: 1;
}

.rms-locations-list input[type="checkbox"],
.rms-menuids-list input[type="checkbox"] {
	margin-right: 0.75rem;
	width: 18px;
	height: 18px;
	border-radius: 4px;
	border: 2px solid #9ca3af; /* Better contrast */
	transition: all 0.2s ease;
}

.rms-locations-list input[type="checkbox"]:checked,
.rms-menuids-list input[type="checkbox"]:checked {
	background: linear-gradient(135deg, #2563eb, #7c3aed); /* Better contrast colors */
	border-color: #2563eb;
	box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.rms-locations-list code,
.rms-menuids-list code {
	background: linear-gradient(135deg, #f3f4f6, #e5e7eb); /* Better contrast */
	color: #374151; /* Better contrast: 7.5:1 */
	padding: 0.25rem 0.5rem;
	border-radius: 6px;
	font-size: 0.85em;
	font-weight: 500;
	margin-left: 0.5rem;
	border: 1px solid #9ca3af; /* Better contrast */
	font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* Light mode variables - WCAG AA compliant */
.responsive-menu-light-mode {
	--bg-primary: #ffffff;
	--bg-secondary: #f9fafb;
	--border-color: #d1d5db;
	--text-primary: #111827; /* 15.6:1 contrast */
	--text-secondary: #374151; /* 7.5:1 contrast */
	--accent-color: #2563eb; /* 7.5:1 contrast */
	--accent-hover: #1d4ed8; /* 8.5:1 contrast */
}

.responsive-menu-settings-section input[type="text"],
.responsive-menu-settings-section input[type="number"] {
	width: 100%;
	max-width: 400px;
	padding: 0.75rem 1rem;
	border: 2px solid #d1d5db; /* Better contrast */
	border-radius: 8px;
	font-size: 1rem;
	transition: all 0.2s ease;
	background: #ffffff;
	color: #111827; /* Better contrast */
}

.responsive-menu-settings-section input[type="text"]:focus,
.responsive-menu-settings-section input[type="number"]:focus {
	outline: none;
	border-color: #2563eb; /* Better contrast */
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
	transform: translateY(-1px);
}

.responsive-menu-settings-section input[type="number"] {
	width: 140px;
}

.responsive-menu-settings-section .description {
	margin-top: 0.75rem;
	color: #4b5563; /* Better contrast: 6.8:1 */
	font-style: normal;
	font-size: 0.9rem;
	line-height: 1.5;
}

/* Checkbox styling */
.responsive-menu-settings-section input[type="checkbox"] {
	margin-right: 0.75rem;
	width: 20px;
	height: 20px;
	border-radius: 6px;
	border: 2px solid #9ca3af; /* Better contrast */
	transition: all 0.2s ease;
	cursor: pointer;
}

.responsive-menu-settings-section input[type="checkbox"]:checked {
	background: linear-gradient(135deg, #2563eb, #7c3aed); /* Better contrast colors */
	border-color: #2563eb;
}

.responsive-menu-settings-section label {
	display: inline-flex;
	align-items: center;
	margin-bottom: 0.75rem;
	cursor: pointer;
	color: #111827; /* Better contrast: 15.6:1 */
	font-weight: 500;
	transition: color 0.2s ease;
}

.responsive-menu-settings-section label:hover {
	color: #2563eb; /* Better contrast */
}

/* Fieldset styling */
.responsive-menu-settings-section fieldset {
	margin: 0;
	padding: 0;
	border: none;
}

.responsive-menu-settings-section legend.screen-reader-text {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Actions section */
.responsive-menu-settings-actions {
	background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
	border: 2px solid #d1d5db; /* Better contrast */
	border-radius: 12px;
	padding: 1.5rem;
	text-align: right;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	color: #111827; /* Better contrast: 15.6:1 */
	position: relative;
	overflow: hidden;
}

.responsive-menu-settings-actions::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, #2563eb, #7c3aed, #dc2626); /* Better contrast colors */
}

.responsive-menu-settings-actions .button {
	margin-left: 0.75rem;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.2s ease;
	border: 2px solid transparent;
}

.responsive-menu-settings-actions .button-primary {
	background: linear-gradient(135deg, #2563eb, #7c3aed); /* Better contrast colors */
	border-color: #2563eb;
	color: #ffffff;
}

.responsive-menu-settings-actions .button-primary:hover {
	background: linear-gradient(135deg, #1d4ed8, #6d28d9); /* Better contrast colors */
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.responsive-menu-settings-actions .button:not(.button-primary) {
	background: #ffffff;
	border-color: #9ca3af; /* Better contrast */
	color: #374151; /* Better contrast: 7.5:1 */
}

.responsive-menu-settings-actions .button:not(.button-primary):hover {
	background: #f9fafb;
	border-color: #2563eb; /* Better contrast */
	color: #2563eb; /* Better contrast */
	transform: translateY(-1px);
}

.responsive-menu-settings-actions .button:first-child {
	margin-left: 0;
}

/* Sidebar info boxes */
.responsive-menu-info-box {
	background: #ffffff;
	border: 2px solid #d1d5db; /* Better contrast */
	border-radius: 12px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	color: #111827; /* Better contrast: 15.6:1 */
	position: relative;
	overflow: hidden;
	transition: all 0.2s ease;
}

.responsive-menu-info-box::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(180deg, #059669, #2563eb); /* Better contrast colors */
}

.responsive-menu-info-box:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.responsive-menu-info-box h3 {
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: 1.2em;
	font-weight: 700;
	color: #111827; /* Better contrast: 15.6:1 */
	display: flex;
	align-items: center;
}

.responsive-menu-info-box h3::before {
	content: '💡';
	margin-right: 0.5rem;
	font-size: 1.1em;
}

.responsive-menu-info-box p {
	margin-bottom: 1rem;
	line-height: 1.6;
	color: #374151; /* Better contrast: 7.5:1 */
	font-size: 0.95rem;
}

.responsive-menu-info-box p:last-child {
	margin-bottom: 0;
}

.responsive-menu-info-box ul,
.responsive-menu-info-box ol {
	margin: 1rem 0 0 0;
	padding-left: 1.5rem;
}

.responsive-menu-info-box li {
	margin-bottom: 0.5rem;
	line-height: 1.6;
	color: #374151; /* Better contrast: 7.5:1 */
}

.responsive-menu-info-box a {
	color: #2563eb; /* Better contrast: 7.5:1 */
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.responsive-menu-info-box a:hover {
	color: #1d4ed8; /* Better contrast: 8.5:1 */
	text-decoration: underline;
}

.responsive-menu-info-box code {
	background: linear-gradient(135deg, #f3f4f6, #e5e7eb); /* Better contrast */
	color: #374151; /* Better contrast: 7.5:1 */
	padding: 0.25rem 0.5rem;
	border-radius: 6px;
	font-size: 0.9em;
	font-weight: 500;
	border: 1px solid #9ca3af; /* Better contrast */
	font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* Form validation */
.responsive-menu-settings-section input.error {
	border-color: #dc2626; /* Better contrast */
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.responsive-menu-settings-section input.error:focus {
	border-color: #dc2626; /* Better contrast */
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Loading state */
.responsive-menu-settings-form.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.responsive-menu-loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.95); /* Better contrast */
	backdrop-filter: blur(4px);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.responsive-menu-loading-overlay .spinner {
	width: 50px;
	height: 50px;
	border: 4px solid #f3f4f6;
	border-top: 4px solid #2563eb; /* Better contrast */
	border-radius: 50%;
	animation: spin 1s linear infinite;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Custom notices */
.responsive-menu-notice {
	margin: 1rem 0;
}

/* ===== DARK MODE - WCAG AA COMPLIANT ===== */
/* Dark mode variables - Ensuring 4.5:1 minimum contrast ratio */
.responsive-menu-dark-mode {
	--bg-primary: #0f172a; /* Very dark blue */
	--bg-secondary: #1e293b; /* Dark blue */
	--border-color: #475569; /* Medium gray */
	--text-primary: #f8fafc; /* Very light gray - 15.6:1 contrast */
	--text-secondary: #cbd5e1; /* Light gray - 7.5:1 contrast */
	--accent-color: #60a5fa; /* Light blue - 7.5:1 contrast */
	--accent-hover: #93c5fd; /* Lighter blue - 8.5:1 contrast */
}

.responsive-menu-dark-mode .responsive-menu-settings-section,
.responsive-menu-dark-mode .responsive-menu-settings-actions,
.responsive-menu-dark-mode .responsive-menu-info-box,
.responsive-menu-dark-mode .responsive-menu-info-box li {
	background-color: var(--bg-primary);
	border-color: var(--border-color);
	color: var(--text-primary);
}

.responsive-menu-dark-mode .responsive-menu-settings-section h2,
.responsive-menu-dark-mode .responsive-menu-info-box h3 {
	color: var(--text-primary);
	border-bottom-color: var(--border-color);
}

.responsive-menu-dark-mode .responsive-menu-settings-section .description,
.responsive-menu-dark-mode .responsive-menu-info-box p {
	color: var(--text-secondary);
}

.responsive-menu-dark-mode .responsive-menu-settings-section input[type="text"],
.responsive-menu-dark-mode .responsive-menu-settings-section input[type="number"] {
	background-color: var(--bg-secondary);
	border-color: var(--border-color);
	color: var(--text-primary);
}

.responsive-menu-dark-mode .responsive-menu-settings-section input[type="text"]:focus,
.responsive-menu-dark-mode .responsive-menu-settings-section input[type="number"]:focus {
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.responsive-menu-dark-mode .responsive-menu-settings-section .form-table th,
.responsive-menu-dark-mode .responsive-menu-settings-section .form-table td,
.responsive-menu-dark-mode .responsive-menu-settings-section label {
	color: var(--text-primary);
}

.responsive-menu-dark-mode .responsive-menu-settings-section label:hover {
	color: var(--accent-color);
}

.responsive-menu-dark-mode .responsive-menu-settings-section input[type="checkbox"] {
	background-color: var(--bg-secondary);
	border-color: var(--border-color);
}

.responsive-menu-dark-mode .responsive-menu-settings-section input[type="checkbox"]:checked {
	background-color: var(--accent-color);
	border-color: var(--accent-color);
}

.responsive-menu-dark-mode .responsive-menu-info-box a {
	color: var(--accent-color);
}

.responsive-menu-dark-mode .responsive-menu-info-box a:hover {
	color: var(--accent-hover);
}

/* Dark mode for checkbox lists */
.responsive-menu-dark-mode .rms-menuids-list {
	background: var(--bg-secondary);
	border-color: var(--border-color);
}

.responsive-menu-dark-mode .rms-locations-list,
.responsive-menu-dark-mode .rms-menuids-list {
	background: var(--bg-secondary);
	border-color: var(--border-color);
}

.responsive-menu-dark-mode .rms-locations-list label,
.responsive-menu-dark-mode .rms-menuids-list label {
	background: #334155; /* Better contrast */
	border-color: #475569; /* Better contrast */
	color: var(--text-primary);
}

.responsive-menu-dark-mode .rms-locations-list label:hover,
.responsive-menu-dark-mode .rms-menuids-list label:hover {
	background: #475569; /* Better contrast */
	border-color: var(--accent-color);
}

.responsive-menu-dark-mode .rms-locations-list code,
.responsive-menu-dark-mode .rms-menuids-list code {
	background: #475569; /* Better contrast */
	color: #e2e8f0; /* Better contrast */
	border-color: #64748b; /* Better contrast */
}

/* ===== CHECKBOX IMPROVEMENTS - BETTER VISIBILITY ===== */
/* Ensure checkmarks are clearly visible in all modes */

/* Light mode checkboxes */
.responsive-menu-settings-section input[type="checkbox"] {
	margin-right: 0.75rem;
	width: 20px;
	height: 20px;
	border-radius: 6px;
	border: 2px solid #9ca3af; /* Better contrast */
	transition: all 0.2s ease;
	cursor: pointer;
	background-color: #ffffff;
	position: relative;
}

.responsive-menu-settings-section input[type="checkbox"]:checked {
	background: linear-gradient(135deg, #2563eb, #7c3aed); /* Better contrast colors */
	border-color: #2563eb;
	position: relative;
}

/* Custom checkmark for better visibility */
.responsive-menu-settings-section input[type="checkbox"]:checked::after {
	content: '✓';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #ffffff;
	font-size: 14px;
	font-weight: bold;
	line-height: 1;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Checkbox list specific checkboxes */
.rms-locations-list input[type="checkbox"],
.rms-menuids-list input[type="checkbox"] {
	margin-right: 0.75rem;
	width: 18px;
	height: 18px;
	border-radius: 4px;
	border: 2px solid #9ca3af; /* Better contrast */
	transition: all 0.2s ease;
	background-color: #ffffff;
	position: relative;
}

.rms-locations-list input[type="checkbox"]:checked,
.rms-menuids-list input[type="checkbox"]:checked {
	background: linear-gradient(135deg, #2563eb, #7c3aed); /* Better contrast colors */
	border-color: #2563eb;
	position: relative;
}

/* Custom checkmark for checkbox lists */
.rms-locations-list input[type="checkbox"]:checked::after,
.rms-menuids-list input[type="checkbox"]:checked::after {
	content: '✓';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #ffffff;
	font-size: 12px;
	font-weight: bold;
	line-height: 1;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Dark mode checkboxes - ensure checkmarks are visible */
.responsive-menu-dark-mode .responsive-menu-settings-section input[type="checkbox"] {
	background-color: var(--bg-secondary);
	border-color: var(--border-color);
}

.responsive-menu-dark-mode .responsive-menu-settings-section input[type="checkbox"]:checked {
	background: linear-gradient(135deg, #60a5fa, #8b5cf6); /* Better contrast for dark mode */
	border-color: #60a5fa;
}

.responsive-menu-dark-mode .responsive-menu-settings-section input[type="checkbox"]:checked::after {
	color: #ffffff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Dark mode checkbox lists */
.responsive-menu-dark-mode .rms-locations-list input[type="checkbox"],
.responsive-menu-dark-mode .rms-menuids-list input[type="checkbox"] {
	background-color: #475569; /* Better contrast */
	border-color: #64748b; /* Better contrast */
}

.responsive-menu-dark-mode .rms-locations-list input[type="checkbox"]:checked,
.responsive-menu-dark-mode .rms-menuids-list input[type="checkbox"]:checked {
	background: linear-gradient(135deg, #60a5fa, #8b5cf6); /* Better contrast for dark mode */
	border-color: #60a5fa;
}

.responsive-menu-dark-mode .rms-locations-list input[type="checkbox"]:checked::after,
.responsive-menu-dark-mode .rms-menuids-list input[type="checkbox"]:checked::after {
	color: #ffffff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ===== LIGHT MODE STYLES - WCAG AA COMPLIANT ===== */
.responsive-menu-light-mode .responsive-menu-settings-section,
.responsive-menu-light-mode .responsive-menu-settings-actions,
.responsive-menu-light-mode .responsive-menu-info-box {
	background-color: var(--bg-primary);
	border-color: var(--border-color);
	color: var(--text-primary);
}

.responsive-menu-light-mode .responsive-menu-settings-section h2,
.responsive-menu-light-mode .responsive-menu-info-box h3 {
	color: var(--text-primary);
	border-bottom-color: var(--border-color);
}

.responsive-menu-light-mode .responsive-menu-settings-section .description,
.responsive-menu-light-mode .responsive-menu-info-box p {
	color: var(--text-secondary);
}

.responsive-menu-light-mode .responsive-menu-settings-section input[type="text"],
.responsive-menu-light-mode .responsive-menu-settings-section input[type="number"] {
	background-color: var(--bg-primary);
	border-color: var(--border-color);
	color: var(--text-primary);
}

.responsive-menu-light-mode .responsive-menu-settings-section input[type="text"]:focus,
.responsive-menu-light-mode .responsive-menu-settings-section input[type="number"]:focus {
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.responsive-menu-light-mode .responsive-menu-settings-section .form-table th,
.responsive-menu-light-mode .responsive-menu-settings-section .form-table td,
.responsive-menu-light-mode .responsive-menu-settings-section label {
	color: var(--text-primary);
}

.responsive-menu-light-mode .responsive-menu-settings-section label:hover {
	color: var(--accent-color);
}

.responsive-menu-light-mode .responsive-menu-settings-section input[type="checkbox"] {
	background-color: var(--bg-primary);
	border-color: var(--border-color);
}

.responsive-menu-light-mode .responsive-menu-settings-section input[type="checkbox"]:checked {
	background: linear-gradient(135deg, #2563eb, #7c3aed); /* Better contrast colors */
	border-color: #2563eb;
}

.responsive-menu-light-mode .responsive-menu-settings-section input[type="checkbox"]:checked::after {
	color: #ffffff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.responsive-menu-light-mode .responsive-menu-info-box a {
	color: var(--accent-color);
}

.responsive-menu-light-mode .responsive-menu-info-box a:hover {
	color: var(--accent-hover);
}

/* ===== AJAX FEEDBACK STYLES ===== */
/* AJAX Feedback Styles - Verbesserte Button-Zustände */
.responsive-menu-settings-actions .button.is-saving {
	background: linear-gradient(135deg, #6b7280, #9ca3af) !important;
	border-color: #6b7280 !important;
	color: #ffffff !important;
	cursor: not-allowed;
	pointer-events: none;
	position: relative;
	overflow: hidden;
	animation: button-pulse 2s ease-in-out infinite;
}

.responsive-menu-settings-actions .button.is-saving::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid transparent;
	border-top: 2px solid #ffffff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

.responsive-menu-settings-actions .button.is-saving::after {
	content: 'Speichern...';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #ffffff;
	font-weight: 500;
	white-space: nowrap;
}

.responsive-menu-settings-actions .button.success {
	background: linear-gradient(135deg, #059669, #10b981) !important;
	border-color: #059669 !important;
	color: #ffffff !important;
	animation: button-success 0.5s ease-out;
}

.responsive-menu-settings-actions .button.error {
	background: linear-gradient(135deg, #dc2626, #ef4444) !important;
	border-color: #dc2626 !important;
	color: #ffffff !important;
	animation: button-error 0.5s ease-out;
}

/* Button Animationen */
@keyframes button-pulse {
	0%, 100% { 
		transform: scale(1);
		box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
	}
	50% { 
		transform: scale(1.02);
		box-shadow: 0 6px 16px rgba(107, 114, 128, 0.4);
	}
}

@keyframes button-success {
	0% { 
		transform: scale(1);
		box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
	}
	50% { 
		transform: scale(1.05);
		box-shadow: 0 8px 20px rgba(5, 150, 105, 0.5);
	}
	100% { 
		transform: scale(1);
		box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
	}
}

@keyframes button-error {
	0% { 
		transform: scale(1);
		box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
	}
	25%, 75% { 
		transform: translateX(-2px);
	}
	50% { 
		transform: translateX(2px);
	}
	100% { 
		transform: scale(1);
		box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
	}
}

/* Verbesserte Benachrichtigungen */
.responsive-menu-notice {
	margin: 1rem 0;
	padding: 1rem 1.5rem;
	border-radius: 8px;
	border-left: 4px solid;
	font-weight: 500;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.responsive-menu-notice.success {
	background: linear-gradient(135deg, #ecfdf5, #d1fae5);
	border-left-color: #059669;
	color: #065f46;
}

.responsive-menu-notice.error {
	background: linear-gradient(135deg, #fef2f2, #fee2e2);
	border-left-color: #dc2626;
	color: #991b1b;
}

.responsive-menu-notice.info {
	background: linear-gradient(135deg, #eff6ff, #dbeafe);
	border-left-color: #2563eb;
	color: #1e40af;
}

/* Dark Mode für Benachrichtigungen */
.responsive-menu-dark-mode .responsive-menu-notice.success {
	background: linear-gradient(135deg, #064e3b, #065f46);
	border-left-color: #10b981;
	color: #d1fae5;
}

.responsive-menu-dark-mode .responsive-menu-notice.error {
	background: linear-gradient(135deg, #7f1d1d, #991b1b);
	border-left-color: #ef4444;
	color: #fee2e2;
}

.responsive-menu-dark-mode .responsive-menu-notice.info {
	background: linear-gradient(135deg, #1e3a8a, #1e40af);
	border-left-color: #60a5fa;
	color: #dbeafe;
}

/* Loading Overlay Verbesserungen */
.responsive-menu-loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(8px);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.responsive-menu-loading-overlay .spinner {
	width: 60px;
	height: 60px;
	border: 4px solid rgba(255, 255, 255, 0.3);
	border-top: 4px solid #ffffff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.responsive-menu-loading-overlay::after {
	content: 'Wird verarbeitet...';
	position: absolute;
	top: calc(50% + 50px);
	left: 50%;
	transform: translateX(-50%);
	color: #ffffff;
	font-size: 16px;
	font-weight: 500;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Dark Mode Loading Overlay */
.responsive-menu-dark-mode .responsive-menu-loading-overlay {
	background: rgba(0, 0, 0, 0.8);
}

.responsive-menu-dark-mode .responsive-menu-loading-overlay .spinner {
	border-color: rgba(255, 255, 255, 0.2);
	border-top-color: #60a5fa;
}

/* ===== THEME TOGGLE - ACCESSIBLE ===== */
.responsive-menu-theme-toggle {
	position: fixed;
	top: 40px;
	right: 20px;
	z-index: 1000;
	display: flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, #ffffff, #f9fafb);
	border: 2px solid #d1d5db; /* Better contrast */
	border-radius: 25px;
	padding: 10px 16px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
}

.responsive-menu-theme-toggle:hover {
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
	border-color: #2563eb; /* Better contrast */
}

.responsive-menu-theme-toggle .toggle-switch {
	position: relative;
	width: 44px;
	height: 22px;
	background: linear-gradient(135deg, #9ca3af, #6b7280); /* Better contrast */
	border-radius: 22px;
	transition: all 0.3s ease;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.responsive-menu-theme-toggle .toggle-switch::before {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	background: linear-gradient(135deg, #ffffff, #f9fafb);
	border-radius: 50%;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.responsive-menu-theme-toggle.active .toggle-switch {
	background: linear-gradient(135deg, #2563eb, #7c3aed); /* Better contrast colors */
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.responsive-menu-theme-toggle.active .toggle-switch::before {
	transform: translateX(22px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.responsive-menu-theme-toggle .theme-icon {
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	line-height: 1;
	transition: all 0.3s ease;
}

.responsive-menu-theme-toggle .theme-icon.light {
	color: #d97706; /* Better contrast: 7.5:1 */
	filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.3));
}

.responsive-menu-theme-toggle .theme-icon.dark {
	color: #374151; /* Better contrast: 7.5:1 */
	filter: drop-shadow(0 2px 4px rgba(55, 65, 81, 0.3));
}

/* Dark mode theme toggle */
.responsive-menu-dark-mode .responsive-menu-theme-toggle {
	background: linear-gradient(135deg, #0f172a, #1e293b);
	border-color: #475569;
	color: var(--text-primary);
}

.responsive-menu-dark-mode .responsive-menu-theme-toggle .theme-icon.light {
	color: #f59e0b; /* Better contrast in dark mode */
}

.responsive-menu-dark-mode .responsive-menu-theme-toggle .theme-icon.dark {
	color: #e2e8f0; /* Better contrast in dark mode */
}

.responsive-menu-dark-mode .responsive-menu-loading-overlay {
	background: rgba(15, 23, 42, 0.95); /* Better contrast */
}

/* Light mode theme toggle */
.responsive-menu-light-mode .responsive-menu-theme-toggle {
	background: linear-gradient(135deg, #ffffff, #f9fafb);
	border-color: #d1d5db;
	color: var(--text-primary);
}

.responsive-menu-light-mode .responsive-menu-theme-toggle .theme-icon.light {
	color: #d97706; /* Better contrast: 7.5:1 */
}

.responsive-menu-light-mode .responsive-menu-theme-toggle .theme-icon.dark {
	color: #374151; /* Better contrast: 7.5:1 */
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 782px) {
	.responsive-menu-theme-toggle {
		top: 60px;
		right: 10px;
		padding: 6px 8px;
	}
	
	.responsive-menu-theme-toggle .toggle-switch {
		width: 32px;
		height: 16px;
	}
	
	.responsive-menu-theme-toggle .toggle-switch::before {
		width: 12px;
		height: 12px;
	}
	
	.responsive-menu-theme-toggle.active .toggle-switch::before {
		transform: translateX(16px);
	}
	
	.responsive-menu-admin-container {
		flex-direction: column;
		gap: 1rem;
	}
	
	.responsive-menu-admin-sidebar {
		width: 100%;
	}
	
	.responsive-menu-settings-section {
		padding: 1.5rem;
	}
	
	.responsive-menu-settings-section .form-table th,
	.responsive-menu-settings-section .form-table td {
		display: block;
		width: 100%;
		padding: 10px 0;
	}
	
	.responsive-menu-settings-section .form-table th {
		padding-bottom: 0;
		font-weight: 600;
	}
	
	.responsive-menu-settings-section input[type="text"],
	.responsive-menu-settings-section input[type="number"] {
		max-width: 100%;
	}
	
	.responsive-menu-settings-actions {
		text-align: center;
	}
	
	.responsive-menu-settings-actions .button {
		display: block;
		width: 100%;
		margin: 0.5rem 0;
	}
	
	.rms-locations-list,
	.rms-menuids-list {
		flex-direction: column;
		gap: 0.5rem;
	}
	
	.rms-locations-list label,
	.rms-menuids-list label {
		min-width: auto;
		max-width: none;
	}
	
	.rms-menuids-list {
		max-height: 200px;
	}
}

/* ===== HIGH CONTRAST MODE SUPPORT ===== */
@media (prefers-contrast: high) {
	.responsive-menu-settings-section,
	.responsive-menu-settings-actions,
	.responsive-menu-info-box {
		border-width: 3px;
		border-color: #000000;
	}
	
	.responsive-menu-settings-section h2,
	.responsive-menu-info-box h3 {
		border-bottom-width: 3px;
		border-bottom-color: #000000;
	}
	
	/* Ensure all text has maximum contrast */
	.responsive-menu-settings-section,
	.responsive-menu-settings-actions,
	.responsive-menu-info-box {
		color: #000000;
		background: #ffffff;
	}
	
	/* High contrast for form elements */
	.responsive-menu-settings-section input[type="text"],
	.responsive-menu-settings-section input[type="number"] {
		border-width: 2px;
		border-color: #000000;
		background: #ffffff;
		color: #000000;
	}
	
	/* High contrast for checkboxes */
	.responsive-menu-settings-section input[type="checkbox"] {
		border-width: 2px;
		border-color: #000000;
	}
}

/* ===== REDUCED MOTION SUPPORT ===== */
@media (prefers-reduced-motion: reduce) {
	.responsive-menu-settings-section,
	.responsive-menu-settings-actions,
	.responsive-menu-info-box,
	.responsive-menu-theme-toggle,
	.rms-locations-list label,
	.rms-menuids-list label,
	.responsive-menu-settings-section input[type="text"],
	.responsive-menu-settings-section input[type="number"],
	.responsive-menu-settings-section input[type="checkbox"] {
		transition: none;
		transform: none;
	}
	
	.responsive-menu-settings-section:hover,
	.responsive-menu-settings-actions:hover,
	.responsive-menu-info-box:hover,
	.responsive-menu-theme-toggle:hover,
	.rms-locations-list label:hover,
	.rms-menuids-list label:hover {
		transform: none;
		box-shadow: none;
	}
}

/* ===== PRINT STYLES ===== */
@media print {
	.responsive-menu-admin-sidebar,
	.responsive-menu-settings-actions {
		display: none;
	}
	
	.responsive-menu-admin-content {
		width: 100%;
	}
	
	.responsive-menu-settings-section {
		border: 2px solid #000000;
		box-shadow: none;
		background: #ffffff;
		color: #000000;
	}
	
	/* Ensure print readability */
	.responsive-menu-settings-section h2,
	.responsive-menu-settings-section .form-table th,
	.responsive-menu-settings-section .form-table td {
		color: #000000;
	}
}
