/* Admin Pages CSS */

/* --- dashboard.php --- */
.lbite-dashboard-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.lbite-widget {
	background: #fff;
	padding: 20px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.lbite-widget h2 {
	margin-top: 0;
	font-size: 16px;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
}

.lbite-stat-number {
	font-size: 48px;
	font-weight: bold;
	margin: 20px 0;
	color: #0073aa;
}

.lbite-widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.lbite-widget ul li {
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
}

.lbite-widget ul li:last-child {
	border-bottom: none;
}


/* --- debug-info.php --- */
.lbite-debug-section table th {
	width: 250px;
	font-weight: 600;
}


/* --- documentation.php --- */
.lbite-documentation {
	max-width: 1200px;
}

.lbite-doc-section {
	margin-bottom: 40px;
}

.lbite-doc-section h2 {
	padding-bottom: 10px;
	border-bottom: 2px solid #0073aa;
	margin-bottom: 20px;
}

.lbite-doc-card {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 20px;
}

.lbite-doc-card h3 {
	margin-top: 0;
	color: #0073aa;
}

.lbite-doc-card h4 {
	margin-top: 20px;
	margin-bottom: 10px;
}

.lbite-code-block {
	display: block;
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-left: 3px solid #0073aa;
	padding: 12px;
	margin: 10px 0;
	font-family: monospace;
	font-size: 14px;
	overflow-x: auto;
}

.lbite-doc-card ul,
.lbite-doc-card ol {
	margin: 10px 0 10px 20px;
}

.lbite-doc-card li {
	margin-bottom: 8px;
}

.notice.inline {
	margin: 15px 0;
	padding: 12px;
}

.lbite-copy-btn {
	margin-left: 10px;
	vertical-align: middle;
}

table.wp-list-table {
	margin-top: 15px;
}

table.wp-list-table code {
	background: #f0f0f1;
	padding: 3px 6px;
	border-radius: 3px;
}


/* --- checkout-fields.php --- */
.postbox {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
}

.postbox .hndle {
	border-bottom: 1px solid #ccd0d4;
	margin: 0;
}

.postbox .inside {
	padding: 0 15px;
}

.form-table tr {
	border-bottom: 1px solid #f0f0f1;
}

.form-table tr:last-child {
	border-bottom: none;
}


/* --- admin-settings.php --- */
.lbite-menu-visibility-settings {
	margin-top: 20px;
}

.lbite-role-section {
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.lbite-menu-items {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.lbite-menu-group {
	padding: 15px;
	background: #f6f7f7;
	border-radius: 3px;
	border-left: 4px solid #2271b1;
	transition: box-shadow 0.2s ease;
}

.lbite-menu-group:hover {
	box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.lbite-main-menu-item {
	margin-bottom: 12px;
}

.lbite-main-menu-item label {
	display: block;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.8;
}

.lbite-main-menu-item input[type="checkbox"] {
	margin-right: 8px;
	vertical-align: middle;
}

.lbite-menu-badge {
	margin-left: 8px;
	font-size: 11px;
	color: #646970;
	font-weight: normal;
}

.lbite-submenu-items {
	margin-left: 24px;
	padding-top: 8px;
	border-top: 1px solid #dcdcde;
}

.lbite-submenu-items label {
	display: block;
	padding: 5px 0;
	cursor: pointer;
	color: #50575e;
}

.lbite-submenu-items input[type="checkbox"] {
	margin-right: 8px;
	vertical-align: middle;
}

.lbite-menu-items label:hover {
	background: #fff;
	padding-left: 5px;
	margin-left: -5px;
	border-radius: 3px;
}

.lbite-toggle-all-menus {
	margin-right: 8px;
}


/* --- super-admin-settings.php --- */
.lbite-features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.lbite-feature-group {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
}

.lbite-feature-group h2 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

.lbite-features-table {
	margin-top: 0;
}

.lbite-features-table th {
	width: 200px;
	padding: 12px 10px 12px 0;
	vertical-align: top;
}

.lbite-features-table td {
	padding: 12px 10px;
}

.lbite-premium-badge {
	display: inline-block;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 3px;
	margin-left: 5px;
	vertical-align: middle;
	text-transform: uppercase;
}

.lbite-premium-feature {
	background: #f9f9ff;
}

.lbite-feature-locked {
	opacity: 0.6;
}

.lbite-feature-locked .lbite-toggle--locked {
	cursor: not-allowed;
}

.lbite-feature-locked .lbite-toggle--locked input[disabled] + .lbite-toggle-slider {
	background-color: #ccc;
	cursor: not-allowed;
}

/* Welcome-Notice */
.lbite-welcome-notice {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	padding: 20px 24px;
	border-radius: 8px;
	margin: 0 0 20px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lbite-welcome-notice__content h2 {
	color: #fff;
	margin: 0 0 6px;
	font-size: 18px;
}

.lbite-welcome-notice__content p {
	margin: 0;
	opacity: 0.9;
}

.lbite-welcome-notice__dismiss {
	background: none;
	border: none;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	opacity: 0.8;
	padding: 4px 8px;
	flex-shrink: 0;
	margin-left: 16px;
}

.lbite-welcome-notice__dismiss:hover {
	opacity: 1;
}

/* Toggle Switch */
.lbite-toggle {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 26px;
	vertical-align: middle;
}

.lbite-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

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

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

.lbite-toggle input:checked + .lbite-toggle-slider {
	background-color: #2271b1;
}

.lbite-toggle input:checked + .lbite-toggle-slider:before {
	transform: translateX(24px);
}

.lbite-toggle input:focus + .lbite-toggle-slider {
	box-shadow: 0 0 1px #2271b1;
}

.lbite-save-status {
	margin-left: 10px;
	color: #00a32a;
}

@media screen and (max-width: 960px) {
	.lbite-features-grid {
		grid-template-columns: 1fr;
	}
}


/* --- support-settings.php --- */
.lbite-settings-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
	margin-top: 20px;
}

.lbite-settings-card h2 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

.lbite-support-preview {
	background: #f6f7f7;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 20px;
	margin-top: 15px;
}

.lbite-support-preview-content h3 {
	margin-top: 0;
}

.lbite-support-preview-content p {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0;
}

.lbite-support-preview-content .dashicons {
	color: #2271b1;
}

.lbite-billing-note {
	background: #fff8e5;
	padding: 10px;
	border-radius: 4px;
	border-left: 3px solid #dba617;
}

.lbite-billing-note .dashicons {
	color: #dba617;
}

.lbite-save-status {
	margin-left: 10px;
	color: #00a32a;
}

