﻿/* DentalFocus Admin Styles v2.1.0 */

/* ── Testimonial Star Rating Meta Box ────────── */
.dk-rating-picker {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 4px 0;
}
.dk-rating-label {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 16px;
	color: #f5a623;
	line-height: 1;
}
.dk-rating-label--none {
	font-size: 13px;
	color: #888;
}
.dk-rating-label input[type="radio"] {
	margin: 0;
	cursor: pointer;
}

/* ── Dashboard ─────────────────────────────── */
.dk-dashboard .dk-version {
	font-size: 12px;
	color: #888;
	font-weight: normal;
	margin-left: 8px;
}
.dk-dashboard-intro {
	color: #555;
	font-size: 14px;
	margin: 8px 0 24px;
}
.dk-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin-top: 20px;
}
.dk-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
	transition: box-shadow .2s;
}
.dk-card:hover {
	box-shadow: 0 3px 10px rgba(0,0,0,.1);
}
.dk-card-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}
.dk-card-icon {
	font-size: 22px;
	color: #2271b1;
}
.dk-card-title {
	margin: 0;
	font-size: 15px;
	flex: 1;
}
.dk-badge {
	background: #2271b1;
	color: #fff;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 10px;
}
.dk-card-desc {
	color: #666;
	font-size: 13px;
	margin: 0 0 14px;
	line-height: 1.5;
}
.dk-card-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* ── Form Builder ──────────────────────────── */
.dk-builder-wrap h1 {
	margin-bottom: 16px;
}
.dk-shortcode-bar {
	background: #f0f6fc;
	border: 1px solid #c3d9ef;
	border-radius: 4px;
	padding: 10px 16px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.dk-shortcode-bar code {
	background: #fff;
	border: 1px solid #ddd;
	padding: 4px 10px;
	border-radius: 3px;
	font-size: 13px;
}
.dk-builder-layout {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
	margin-top: 20px;
}

/* Palette */
.dk-palette {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 16px;
	height: fit-content;
	position: sticky;
	top: 32px;
}
.dk-palette h3 {
	margin: 0 0 6px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #555;
}
.dk-palette .description {
	font-size: 12px;
	color: #888;
	margin-bottom: 12px;
}
.dk-palette-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.dk-palette-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	margin-bottom: 4px;
	background: #f6f7f7;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: grab;
	font-size: 13px;
	user-select: none;
	transition: background .15s, border-color .15s;
}
.dk-palette-item:hover {
	background: #e8f0fe;
	border-color: #2271b1;
	color: #2271b1;
}
.dk-palette-item:active {
	cursor: grabbing;
}
.dk-palette-item .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* Canvas */
.dk-canvas {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 24px;
}
.dk-form-meta {
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid #eee;
}
.dk-form-meta label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
}
.dk-drop-zone {
	min-height: 200px;
	border: 2px dashed #ccc;
	border-radius: 6px;
	padding: 12px;
	margin-bottom: 20px;
	transition: border-color .2s, background .2s;
}
.dk-drop-zone.dk-drag-over {
	border-color: #2271b1;
	background: #f0f6fc;
}
.dk-drop-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px;
	color: #aaa;
	text-align: center;
}
.dk-drop-placeholder .dashicons {
	font-size: 40px;
	width: 40px;
	height: 40px;
	margin-bottom: 10px;
}
.dk-field-row {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #f6f7f7;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 10px 12px;
	margin-bottom: 6px;
	cursor: default;
}
.dk-field-row.sortable-ghost {
	opacity: .4;
	background: #e8f0fe;
}
.dk-field-row-handle {
	cursor: grab;
	color: #aaa;
}
.dk-field-row-handle:active { cursor: grabbing; }
.dk-field-row-info {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
}
.dk-field-type-badge {
	background: #2271b1;
	color: #fff;
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 10px;
	text-transform: uppercase;
}
.dk-field-label-preview {
	font-weight: 600;
	font-size: 13px;
}
.dk-required-badge {
	background: #d63638;
	color: #fff;
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 10px;
}
.dk-field-row-actions {
	display: flex;
	gap: 4px;
}

/* Field Settings Panel */
.dk-field-settings {
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 16px 20px;
	margin-bottom: 20px;
}
.dk-field-settings h4 {
	margin: 0 0 14px;
}
.dk-settings-table th {
	width: 140px;
	font-weight: 600;
}

/* Builder Actions */
.dk-builder-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 16px;
	border-top: 1px solid #eee;
}
.dk-save-status {
	font-size: 13px;
}
.dk-save-status.success { color: #00a32a; }
.dk-save-status.error   { color: #d63638; }

/* ── Submissions ───────────────────────────── */
.dk-filter-bar {
	margin: 12px 0;
}
.dk-data-preview {
	font-size: 12px;
	color: #666;
	max-width: 300px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.dk-submission-header {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}
.dk-meta-table th,
.dk-data-table th {
	width: 160px;
	font-weight: 600;
	text-align: left;
	padding: 8px 12px;
	background: #f6f7f7;
	border: 1px solid #eee;
}
.dk-meta-table td,
.dk-data-table td {
	padding: 8px 12px;
	border: 1px solid #eee;
}
.dk-meta-table, .dk-data-table {
	border-collapse: collapse;
	width: 100%;
}
.dk-export-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* ── Settings ──────────────────────────────── */
.dk-social-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 20px 0 12px;
}
.dk-info-box {
	background: #f0f6fc;
	border-left: 4px solid #2271b1;
	padding: 12px 16px;
	margin-bottom: 20px;
	border-radius: 0 4px 4px 0;
}

/* ── Help Guide ────────────────────────────── */
.dk-help-guide h2 {
	margin-top: 20px;
}
.dk-help-section {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 20px 24px;
	margin-bottom: 20px;
}
.dk-help-section h3 {
	margin-top: 0;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
}
.dk-help-section ol,
.dk-help-section ul {
	margin-left: 20px;
}
.dk-help-section li {
	margin-bottom: 6px;
}
.dk-help-section code {
	display: inline-block;
	margin: 6px 0;
	background: #f6f7f7;
	padding: 4px 10px;
	border-radius: 3px;
}

/* ── Shared ────────────────────────────────── */
.dk-empty-state {
	text-align: center;
	padding: 60px 20px;
	color: #777;
}
.dk-empty-icon {
	font-size: 60px;
	width: 60px;
	height: 60px;
	color: #ccc;
	display: block;
	margin: 0 auto 16px;
}
.dk-btn-danger {
	color: #d63638 !important;
	border-color: #d63638 !important;
}
.dk-btn-danger:hover {
	background: #d63638 !important;
	color: #fff !important;
}
.dk-shortcode-cell {
	cursor: pointer;
}
.dk-forms-table td, .dk-forms-table th {
	vertical-align: middle;
}
