/* WB License Server Admin Styles */

.wb-license-actions {
	margin: 20px 0;
}

.wb-log-panel {
	margin: 14px 0 18px;
}

.wb-log-panel h2 {
	margin: 0 0 8px;
	font-size: 16px;
}

.wb-log-panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.wb-log-panel-header h2 {
	margin: 0;
}

.wb-download-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.wb-log-table {
	border-collapse: collapse;
	border: 1px solid #c3c4c7;
	table-layout: auto;
	width: 100%;
	margin-bottom: 16px;
}

.wb-log-table th,
.wb-log-table td {
	border: 1px solid #c3c4c7;
	padding: 8px 10px;
	white-space: nowrap;
	overflow: visible;
	text-overflow: clip;
	vertical-align: middle;
}

.wb-log-table th:nth-child(1),
.wb-log-table td:nth-child(1) {
	min-width: 120px;
}

.wb-log-table th:nth-child(4),
.wb-log-table td:nth-child(4) {
	min-width: 130px;
}

.wb-license-form-container {
	max-width: 600px;
	margin: 20px 0;
}

.wb-license-form {
	background: #fff;
	padding: 20px;
	border: 1px solid #ccc;
	border-radius: 5px;
}

.wb-license-result {
	background: #ecf0f1;
	padding: 20px;
	border: 1px solid #bdc3c7;
	border-radius: 5px;
	margin: 20px 0;
}

.wb-result-box {
	background: #fff;
	padding: 15px;
	border-left: 4px solid #2ecc71;
	margin: 15px 0;
}

.wb-license-key-display {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 10px 0;
	padding: 10px;
	background: #f5f5f5;
	border-radius: 3px;
}

.wb-license-key-display code {
	font-size: 14px;
	padding: 8px 12px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 3px;
	flex: 1;
	word-break: break-all;
}

.required {
	color: #d41616;
}

table.widefat code {
	background: #f5f5f5;
	padding: 2px 4px;
	border-radius: 3px;
	font-size: 12px;
}

.wb-copy-key {
	margin-left: 5px;
}

.wb-license-table {
	border-collapse: collapse;
	border: 1px solid #c3c4c7;
	table-layout: auto;
	width: 100%;
}

.wb-license-table th,
.wb-license-table td {
	border: 1px solid #c3c4c7;
	vertical-align: middle;
	padding: 10px 12px;
}

.wb-license-table th {
	white-space: nowrap;
	overflow: visible;
	text-overflow: clip;
}

.wb-license-table td {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wb-license-table th:nth-child(1),
.wb-license-table td:nth-child(1) {
	width: 28%;
}

.wb-license-table th:nth-child(2),
.wb-license-table td:nth-child(2) {
	width: 16%;
	overflow: visible;
	text-overflow: clip;
}

.wb-license-table th:nth-child(3),
.wb-license-table td:nth-child(3) {
	width: 12%;
	text-align: center;
}

.wb-license-table th:nth-child(4),
.wb-license-table td:nth-child(4) {
	width: 200px;
	max-width: 200px;
	min-width: 200px;
}

.wb-license-table th:nth-child(5),
.wb-license-table td:nth-child(5) {
	width: 16%;
	text-align: center;
}

.wb-icon-button {
	min-width: 20px;
	padding: 0;
	line-height: 1;
	border: 0;
	background: transparent;
	box-shadow: none;
	margin: 0 2px;
	vertical-align: middle;
}

.wb-icon-button .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 16px;
	color: #646970;
	transition: color 0.18s ease, transform 0.18s ease;
}

.wb-icon-button:hover,
.wb-icon-button:focus,
.wb-icon-button:active {
	border: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
}

.wb-copy-key:hover .dashicons,
.wb-copy-key:focus .dashicons {
	color: #2271b1;
	transform: scale(1.15);
}

.wb-delete-license:hover .dashicons,
.wb-delete-license:focus .dashicons {
	color: #d63638;
	transform: scale(1.15);
}

.wb-note-cell {
	position: relative;
	max-width: 200px;
}

.wb-note-tooltip {
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: middle;
	cursor: help;
}

.wb-note-tooltip:hover::after {
	content: attr(data-full-note);
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	max-width: 360px;
	white-space: normal;
	line-height: 1.3;
	padding: 8px 10px;
	border-radius: 4px;
	background: #1d2327;
	color: #fff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
	z-index: 1000;
	pointer-events: none;
}

.wb-note-tooltip:hover::before {
	content: '';
	position: absolute;
	top: calc(100% + 1px);
	left: 10px;
	border: 6px solid transparent;
	border-bottom-color: #1d2327;
	z-index: 1001;
	pointer-events: none;
}

.wb-badge-expired {
	background: #d41616;
	color: #fff;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: bold;
	margin-left: 5px;
}

.wb-expired {
	color: #d41616;
}

.wb-active {
	color: #2ecc71;
}

.description {
	margin-top: 5px;
	color: #666;
	font-size: 13px;
}

.submit {
	margin-top: 20px;
}

#wb-license-result {
	display: none;
}

#wb-license-result.show {
	display: block;
}

#wb-generate-license-form.hide {
	display: none;
}

.wb-success-notice {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
	padding: 12px;
	border-radius: 4px;
	margin: 10px 0;
}

.wb-error-notice {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
	padding: 12px;
	border-radius: 4px;
	margin: 10px 0;
}

.spinner {
	display: inline-block;
	margin-left: 5px;
}

.spinneractive {
	opacity: 1;
}
