/**
 * Admin-Styles für Libre Bite
 */

/* Dashboard */
.lbite-admin-dashboard {
	max-width: 1400px;
}

/* Allgemeine Widgets */
.lbite-widget {
	transition: all 0.3s;
}

.lbite-widget:hover {
	box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Bestellübersicht / Kanban Board */
.lbite-kanban-board {
	user-select: none;
}

.lbite-kanban-card {
	touch-action: none;
}

.lbite-kanban-card h3 {
	margin: 0 0 10px 0;
	font-size: 14px;
	font-weight: 600;
}

.lbite-kanban-card-meta {
	font-size: 12px;
	color: #666;
	margin: 5px 0;
}

.lbite-kanban-card-items {
	margin: 10px 0;
	padding: 10px 0;
	border-top: 1px solid #eee;
	font-size: 13px;
}

.lbite-kanban-card-item {
	padding: 3px 0;
}

.lbite-kanban-card-actions {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #eee;
	display: flex;
	gap: 5px;
}

.lbite-kanban-card-actions button {
	padding: 4px 8px;
	font-size: 11px;
	border: none;
	background: #0073aa;
	color: #fff;
	border-radius: 3px;
	cursor: pointer;
}

.lbite-kanban-card-actions button:hover {
	background: #005a87;
}

/* Drag & Drop Feedback */
.lbite-kanban-card.dragging {
	opacity: 0.4;
}

.lbite-kanban-column.drag-over {
	background: #e0f0ff;
}

/* POS / Kassensystem */
.lbite-pos-product-item {
	min-height: 100px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.lbite-pos-product-name {
	font-weight: 600;
	margin-bottom: 5px;
}

.lbite-pos-product-price {
	color: #0073aa;
	font-weight: 600;
}

.lbite-pos-cart-item {
	padding: 10px;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.lbite-pos-cart-item-name {
	flex: 1;
	font-weight: 600;
}

.lbite-pos-cart-item-qty {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0 10px;
}

.lbite-pos-cart-item-qty button {
	width: 25px;
	height: 25px;
	padding: 0;
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 3px;
	cursor: pointer;
}

.lbite-pos-cart-item-qty button:hover {
	background: #f0f0f0;
}

.lbite-pos-cart-item-price {
	font-weight: 600;
	color: #0073aa;
	min-width: 80px;
	text-align: right;
}

.lbite-pos-cart-item-remove {
	margin-left: 10px;
	color: #dc3232;
	cursor: pointer;
	font-size: 18px;
}

.lbite-pos-cart-item-remove:hover {
	color: #a00;
}

/* Responsive */
@media screen and (max-width: 782px) {
	.lbite-pos-container {
		grid-template-columns: 1fr;
	}

	.lbite-pos-cart {
		position: sticky;
		bottom: 0;
		max-height: 50vh;
	}
}

/* Loading Spinner */
.lbite-loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(0,0,0,0.1);
	border-radius: 50%;
	border-top-color: #0073aa;
	animation: lbite-spin 1s linear infinite;
}

@keyframes lbite-spin {
	to { transform: rotate(360deg); }
}

/* Notifications */
.lbite-notification {
	position: fixed;
	top: 32px;
	right: 20px;
	background: #fff;
	padding: 15px 20px;
	border-left: 4px solid #0073aa;
	box-shadow: 0 3px 10px rgba(0,0,0,0.2);
	z-index: 999999;
	animation: lbite-slide-in 0.3s ease-out;
}

.lbite-notification.success {
	border-left-color: #46b450;
}

.lbite-notification.error {
	border-left-color: #dc3232;
}

@keyframes lbite-slide-in {
	from {
		transform: translateX(400px);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* Hilfe-Button & Support-Panel */
#lbite-help-btn {
	position: fixed;
	bottom: 40px;
	right: 20px;
	z-index: 99990;
	display: flex;
	align-items: center;
	gap: 6px;
	background: #646970;
	color: #fff;
	border-radius: 4px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0,0,0,0.25);
	user-select: none;
	transition: background 0.15s;
}
#lbite-help-btn:hover {
	background: #50575e;
}
#lbite-help-btn > .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}
#lbite-help-panel {
	display: none;
	position: absolute;
	bottom: calc(100% + 8px);
	right: 0;
	width: 260px;
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.15);
	font-size: 13px;
	color: #3c434a;
	overflow: hidden;
}
#lbite-help-panel.is-open {
	display: block;
}
.lbite-help-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px 9px;
	border-bottom: 1px solid #f0f0f1;
}
.lbite-help-panel-close {
	background: none;
	border: none;
	cursor: pointer;
	color: #787c82;
	font-size: 14px;
	line-height: 1;
	padding: 0;
}
.lbite-help-panel-close:hover { color: #1d2327; }
.lbite-help-panel-primary {
	padding: 14px;
	background: #f6f7f7;
	border-bottom: 1px solid #e8e8e8;
}
.lbite-help-panel-primary-text {
	margin: 0 0 10px;
	font-size: 12px;
	color: #646970;
	line-height: 1.5;
}
.lbite-help-panel-cta {
	display: flex !important;
	align-items: center;
	gap: 5px;
	width: 100%;
	justify-content: center;
	box-sizing: border-box;
}
.lbite-help-panel-cta .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}
.lbite-help-panel-support {
	padding: 4px 0 6px;
}
.lbite-help-panel-divider {
	margin: 0;
	padding: 8px 14px 6px;
	font-size: 11px;
	font-weight: 600;
	color: #787c82;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.lbite-help-panel-support p {
	margin: 0;
	padding: 5px 14px;
	display: flex;
	align-items: flex-start;
	gap: 7px;
}
.lbite-help-panel-support p a {
	color: #3c434a;
	text-decoration: none;
	word-break: break-all;
}
.lbite-help-panel-support p a:hover { color: #0073aa; }
.lbite-help-panel-support .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	margin-top: 1px;
	color: #787c82;
}
.lbite-help-panel-note {
	color: #646970 !important;
	font-size: 12px !important;
}
