
body {
	font-family: Arial, sans-serif;
	background-color: #f5f5f5;
	margin: 0;
	padding: 20px;
}
.container {
	max-width: 1200px;
	margin: 0 auto;
	background-color: white;
	padding: 20px;
	border-radius: 5px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
h1, h2, h3, h4 {
	color: #333;
}

.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #eee;
}

.token-section {
	background: #f0f8ff;
	padding: 15px;
	border-radius: 5px;
	margin-bottom: 20px;
	border-left: 4px solid #007bff;
}
.token-display {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}
.token-display code {
	flex: 1;
	background: #fff;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: monospace;
	word-break: break-all;
	font-size: 14px;
}
.copy-btn {
	background: #007bff;
	color: white;
	border: none;
	padding: 10px 15px;
	border-radius: 4px;
	cursor: pointer;
	white-space: nowrap;
}
.copy-btn:hover {
	background: #0056b3;
}
.copy-success {
	display: none;
	color: green;
	margin-top: 5px;
	font-size: 14px;
}

.config-section {
	margin-bottom: 30px;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 5px;
	background-color: #fafafa;
}
.subcategory {
	margin: 15px 0;
	padding: 15px;
	border: 1px solid #eee;
	border-radius: 3px;
	background-color: white;
}
.subsubcategory {
	margin: 10px 0;
	padding: 10px;
	border: 1px solid #f0f0f0;
	border-radius: 3px;
	background-color: #f9f9f9;
}

.control-group {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}
.control-group label {
	margin-right: 10px;
	width: 120px;
	font-weight: bold;
}

.control-options-container {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin: 10px 0 15px 0;
	padding: 10px;
	background-color: #f8f9fa;
	border-radius: 5px;
	border-left: 4px solid #2196F3;
}
.control-option {
	display: flex;
	align-items: center;
	padding: 8px 12px;
	background-color: white;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	min-width: 200px;
}
.control-option label {
	font-weight: normal;
	margin-right: 10px;
	min-width: 80px;
	white-space: nowrap;
}
.control-option select {
	width: 120px;
	padding: 5px;
	border: 1px solid #ccc;
	border-radius: 3px;
}

.numeric-options-container {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 10px 0;
}
.level-input {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 3px;
	background-color: white;
	min-width: 80px;
}
.level-input label {
	margin-bottom: 5px;
	font-size: 14px;
	font-weight: normal;
	white-space: nowrap;
}
.level-input input {
	width: 70px;
	padding: 5px;
	text-align: center;
	border: 1px solid #ccc;
	border-radius: 3px;
}

.btn {
	padding: 10px 20px;
	background-color: #4CAF50;
	color: white;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 16px;
}
.btn:hover {
	background-color: #45a049;
}
.logout-btn {
	background-color: #f44336;
}
.logout-btn:hover {
	background-color: #d32f2f;
}

.message {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
	display: none;
	padding: 15px;
	border-radius: 5px;
	min-width: 300px;
	text-align: center;
}
.success {
	background-color: #dff0d8;
	color: #3c763d;
	border: 1px solid #d6e9c6;
}
.error {
	background-color: #f2dede;
	color: #a94442;
	border: 1px solid #ebccd1;
}

.category-tabs {
	display: flex;
	margin-bottom: 20px;
	border-bottom: 1px solid #ddd;
	flex-wrap: wrap;
}
.category-tab {
	padding: 10px 20px;
	cursor: pointer;
	border: 1px solid transparent;
	border-bottom: none;
	margin-right: 5px;
	border-radius: 5px 5px 0 0;
}
.category-tab.active {
	background-color: #4CAF50;
	color: white;
}
.category-content {
	display: none;
}
.category-content.active {
	display: block;
}

.control-switch {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	padding: 10px;
	background-color: #e9f7e9;
	border-radius: 5px;
}
.control-switch label {
	font-weight: bold;
	margin-right: 10px;
	min-width: 80px;
}
.sub-control-switch {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
	padding: 8px;
	background-color: #f0f8f0;
	border-radius: 3px;
}
.sub-control-switch label {
	font-weight: bold;
	margin-right: 10px;
	min-width: 80px;
}

.level-1 { margin-left: 0px; }
.level-2 { margin-left: 20px; }
.level-3 { margin-left: 40px; }

.section-title {
	font-size: 18px;
	font-weight: bold;
	margin: 15px 0 10px 0;	
	padding-bottom: 5px;
	border-bottom: 1px solid #eee;
}

.numeric-attribute {
	border-left: 3px solid #4CAF50;
}
.control-attribute {
	border-left: 3px solid #2196F3;
}

.history-section {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 5px;
	border-left: 4px solid #6c757d;
	margin-bottom: 30px;
}

.history-section h3 {
	margin-top: 0;
	color: #495057;
}

.history-item {
	padding: 12px;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	margin-bottom: 8px;
	background: white;
	transition: background-color 0.2s;
}

.history-item:hover {
	background-color: #f8f9fa;
}

.history-item.current {
	background-color: #e8f5e8;
	border-color: #28a745;
}

.history-info {
	flex: 1;
}

.history-remark {
	font-weight: bold;
	color: #212529;
	margin-bottom: 4px;
}

.history-date {
	font-size: 12px;
	color: #6c757d;
}

.history-actions {
	display: flex;
	gap: 5px;
}

.btn-rename {
	background: #ffc107;
	color: black;
}

.history-btn {
	padding: 4px 8px;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 12px;
	white-space: nowrap;
}

.btn-apply {
	background: #28a745;
	color: white;
}

.btn-export {
	background: #fd7e14;
	color: white;
}

.btn-delete {
	background: #dc3545;
	color: white;
}

.btn-current {
	background: #17a2b8;
	color: white;
}

.import-section, .save-as-section {
	background: white;
	border: 1px solid #dee2e6;
	border-radius: 5px;
	padding: 15px;
	margin-top: 15px;
}

#import-data {
	width: 100%;
	height: 120px;
	padding: 10px;
	border: 1px solid #ced4da;
	border-radius: 3px;
	font-family: monospace;
	font-size: 12px;
	resize: vertical;
}

#config-remark {
	width: 100%;
	padding: 8px;
	border: 1px solid #ced4da;
	border-radius: 3px;
}

.current-config-info {
	background: #d1ecf1;
	border: 1px solid #bee5eb;
	border-radius: 4px;
	padding: 10px;
	margin-top: 10px;
}

.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10000;
	display: none;
}

.loading-spinner {
	border: 4px solid #f3f3f3;
	border-top: 4px solid #3498db;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 2s linear infinite;
}

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

.string-attribute {
    margin-bottom: 15px;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fafafa;
}

.string-attribute label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.string-options-container {
	margin: 20px 0;
	padding: 20px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background-color: #fafafa;
	border-left: 4px solid #9c27b0;
}

.string-input {
	display: flex;
	flex-direction: column;
	margin-bottom: 15px;
	padding: 15px;
	background-color: white;
	border: 1px solid #e0e0e0;
	border-radius: 5px;
}

.string-input label {
	font-weight: bold;
	margin-bottom: 8px;
	color: #333;
	font-size: 14px;
}

/*
.string-textarea {
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-family: Arial, sans-serif;
	font-size: 14px;
	resize: vertical;
	transition: border-color 0.3s ease;
}
*/
.string-textarea {
    width: 100%;
    max-width: 600px; 
    min-height: 60px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}
/*
.string-textarea:focus {
	outline: none;
	border-color: #9c27b0;
	box-shadow: 0 0 0 2px rgba(156, 39, 176, 0.1);
}
*/
.string-textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.numeric-attribute input[type="number"] {
    width: 100px; 
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.control-attribute select {
    width: 200px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.string-textarea[rows="4"] {
	min-height: 100px;
}

.string-textarea[rows="2"] {
	min-height: 60px;
}

/* 响应式设计 
@media (max-width: 768px) {
	.string-input {
		margin-bottom: 10px;
		padding: 10px;
	}
	
	.string-textarea {
		font-size: 16px; 
	}
}
*/
/* font-size: 16px;  防止iOS缩放 */

@media (max-width: 768px) {
    .string-textarea {
        max-width: 100%;
    }
    
    .numeric-attribute input[type="number"],
    .control-attribute select {
        width: 150px;
    }
}

.linked-controls-group {
	background-color: #f8f9fa;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 20px;
	border: 2px solid #e9ecef;
}

.linked-controls-group .section-title {
	font-weight: bold;
	color: #495057;
	margin-bottom: 15px;
	font-size: 16px;
	border-bottom: 1px solid #dee2e6;
	padding-bottom: 8px;
}

.linked-groups-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.linked-group {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 10px 15px;
	background-color: white;
	border-radius: 6px;
	border: 1px solid #e9ecef;
	flex: 1;
	min-width: 300px; 
}

.linked-group .linked-master,
.linked-group .linked-slave {
	display: flex;
	align-items: center;
	margin-bottom: 0;
	padding: 0;
	border-left: none;
	box-shadow: none;
}

.linked-group .linked-master label,
.linked-group .linked-slave label {
	min-width: 80px;
	margin-right: 8px;
	margin-bottom: 0;
	text-align: right;
	font-weight: bold;
}

.linked-group .linked-master label {
	color: #007bff;
}

.linked-group .linked-slave label {
	color: #28a745;
}

.linked-group .linked-master select,
.linked-group .linked-slave select {
	border: 1px solid #ced4da;
	border-radius: 4px;
	padding: 6px 12px;
	background-color: white;
	min-width: 120px;
}

.linked-group .linked-master select:focus,
.linked-group .linked-slave select:focus {
	border-color: #80bdff;
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

@media (max-width: 992px) {
	.linked-groups-row {
		flex-direction: column;
		gap: 10px;
	}
	
	.linked-group {
		min-width: auto;
		width: 100%;
	}
}

@media (max-width: 768px) {
	.linked-group {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	
	.linked-group .linked-master,
	.linked-group .linked-slave {
		width: 100%;
	}
	
	.linked-group .linked-master label,
	.linked-group .linked-slave label {
		min-width: 70px;
		text-align: left;
	}
}

@media (max-width: 480px) {
	.linked-group .linked-master,
	.linked-group .linked-slave {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.linked-group .linked-master label,
	.linked-group .linked-slave label {
		margin-bottom: 5px;
	}
	
	.linked-group .linked-master select,
	.linked-group .linked-slave select {
		width: 100%;
	}
}


#task-time {
  position: relative;
  padding: 12px;
}

#task-time::-webkit-calendar-picker-indicator {
  position: absolute;
  left: 0; 
  top: 0;
  width: 100%; 
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.scheduled-tasks-section {
    margin-top: 30px;
    padding: 25px;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: #e0e0e0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.scheduled-tasks-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
}

.scheduled-tasks-section h3 {
    margin: 0 0 25px 0;
    color: #00ffff;
    font-size: 1.6em;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    font-weight: 300;
    letter-spacing: 1px;
}

.scheduled-tasks-section h4 {
    margin: 0;
    color: #ffffff;
    font-size: 1.3em;
    font-weight: 500;
}

.add-scheduled-task {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(15px);
}

.task-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
	position: relative; 
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #00ffff;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(10, 10, 20, 0.8);
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    background: rgba(15, 15, 30, 0.9);
}

#add-task-btn {
    grid-column: 1 / -1;
    padding: 14px;
    font-size: 16px;
    background: linear-gradient(135deg, #00ffff 0%, #0080ff 100%) !important;
    border: none;
    border-radius: 6px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#add-task-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
}

.scheduled-tasks-list {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.scheduled-tasks-list.collapsed {
    padding-bottom: 15px;
}

.scheduled-tasks-list.collapsed #scheduled-tasks-container {
    display: none;
}

.scheduled-tasks-list.expanded #scheduled-tasks-container {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tasks-count-badge {
    background: #ff4757;
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

.no-tasks {
    text-align: center;
    padding: 50px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.no-tasks div:first-child {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.5;
}

.scheduled-task {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.scheduled-task::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #00ffff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scheduled-task:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 255, 255, 0.3);
}

.scheduled-task:hover::before {
    opacity: 1;
}

.scheduled-task.active {
    border-color: rgba(0, 255, 0, 0.3);
}

.scheduled-task.active::before {
    background: #00ff00;
    opacity: 1;
}

.scheduled-task.inactive {
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 0.6;
}

.scheduled-task.inactive::before {
    background: #666;
    opacity: 1;
}

.scheduled-task.executed {
    border-color: rgba(0, 150, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.1) 0%, rgba(0, 150, 255, 0.05) 100%);
}

.scheduled-task.executed::before {
    background: #0096ff;
    opacity: 1;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.task-name {
    font-weight: 600;
    font-size: 1.2em;
    color: #ffffff;
}

.task-status {
    font-size: 0.85em;
    padding: 6px 12px;
    border-radius: 15px;
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    font-weight: 500;
}

.scheduled-task.active .task-status {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
}

.scheduled-task.executed .task-status {
    background: rgba(0, 150, 255, 0.1);
    color: #0096ff;
}

.task-details {
    margin-bottom: 15px;
}

.task-config,
.task-time,
.task-executed {
    font-size: 0.9em;
    color: #b0b0b0;
    margin-bottom: 6px;
}

.task-executed {
    color: #0096ff;
    font-style: italic;
}

.task-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.task-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-toggle {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
}

.btn-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.3);
}

.btn-delete {
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
    color: white;
}

.btn-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 82, 82, 0.3);
}

@media (max-width: 768px) {
    .task-form {
        grid-template-columns: 1fr;
    }
    
    .task-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .task-actions {
        justify-content: flex-start;
        width: 100%;
    }
}

.recurring-control {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.recurring-control input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    cursor: pointer;
}

.recurring-control label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #e0e0e0;
    font-size: 0.85em;
}

.task-recurring {
    color: #00ff00 !important;
    font-style: italic;
    margin-top: 5px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.token-management {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.token-management h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

#token-select {
    min-width: 250px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    color: #495057;
    font-size: 14px;
}

#create-token-btn {
    background-color: #28a745;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

#create-token-btn:hover {
    background-color: #218838;
}

#create-token-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}


#token-select:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}


.message.warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}


#rename-token-btn {
    background-color: #17a2b8;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

#rename-token-btn:hover {
    background-color: #138496;
}

#rename-token-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}


.login-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 40px 20px;
        padding: 20px;
    }
    
    .captcha-input-group {
        flex-direction: column;
    }
    
    .btn-refresh {
        width: 100%;
    }
}


.radio-groups-container,
.checkbox-groups-container {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fafafa;
    border-left: 4px solid #9c27b0;
}

.radio-group,
.checkbox-group {
    margin-bottom: 25px;
}

.radio-group:last-child,
.checkbox-group:last-child {
    margin-bottom: 0;
}

.radio-group label,
.checkbox-group label {
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}


.radio-options-container,
.checkbox-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-option,
.checkbox-option {
    flex: 0 0 calc(20% - 12px); 
    min-width: 120px;
    position: relative;
}

.radio-option input,
.checkbox-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}



.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    padding: 5px 15px;
    background-color: white;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: normal;
    height: 100%;
}

.radio-label:hover,
.checkbox-label:hover {
    border-color: #3498db;
    background-color: #f0f8ff;
}

.radio-option input:checked + .radio-label,
.checkbox-option input:checked + .checkbox-label {
    border-color: #3498db;
    background-color: #e1f0fa;
    color: #2980b9;
    font-weight: 600;
}

.radio-label::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 2px solid #bdc3c7;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.radio-option input:checked + .radio-label::before {
    border-color: #3498db;
    background-color: #3498db;
    box-shadow: inset 0 0 0 3px white;
}

.checkbox-label::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-option input:checked + .checkbox-label::before {
    border-color: #3498db;
    background-color: #3498db;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

@media (max-width: 1200px) {
    .radio-option,
    .checkbox-option {
        flex: 0 0 calc(25% - 12px); 
    }
}

@media (max-width: 992px) {
    .radio-option,
    .checkbox-option {
        flex: 0 0 calc(33.333% - 10px); 
    }
}

@media (max-width: 768px) {
    .radio-option,
    .checkbox-option {
        flex: 0 0 calc(50% - 10px); 
    }
    
    .radio-groups-container,
    .checkbox-groups-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .radio-option,
    .checkbox-option {
        flex: 0 0 100%; 
    }
}

.config-section .radio-groups-container,
.config-section .checkbox-groups-container {
    margin: 15px 0;
    border-left-color: #2196F3; 
}

.subcategory .radio-groups-container,
.subcategory .checkbox-groups-container {
    background-color: #f8f9fa;
    border-left-width: 3px;
}

.data-display {
    margin-top: 20px;
    padding: 15px;
    background-color: #2c3e50;
    color: white;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
}

.data-display h3 {
    margin: 0 0 10px 0;
    color: #3498db;
    border-bottom: 1px solid #34495e;
    padding-bottom: 8px;
    font-size: 16px;
}


.subcategory-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    margin: 15px 0 10px 0;
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f0f8f0; 
    border-radius: 5px;
    border-left: 4px solid #4CAF50; 
}

.subcategory.level-2 .subcategory-title {
    font-size: 1.2em;
    color: #444;
    background-color: #e9f7e9; 
    padding: 8px 12px;
}

.subcategory.level-3 .subcategory-title {
    font-size: 1.1em;
    color: #555;
    background-color: #f0f8f0; 
    padding: 6px 10px;
}