/* ==========================================================================
   Campus — Ask HR / Payroll Frontend (Professional)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.cp-askhr-hero {
	background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e40af 100%);
	border-radius: 20px;
	padding: 40px 36px;
	margin-bottom: 28px;
	color: #fff;
	position: relative;
	overflow: hidden;
}

.cp-askhr-hero::before {
	content: '';
	position: absolute;
	top: -80px;
	right: -40px;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
	pointer-events: none;
}

.cp-askhr-hero::after {
	content: '';
	position: absolute;
	bottom: -60px;
	left: -20px;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
	pointer-events: none;
}

.cp-askhr-hero-inner {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	position: relative;
	z-index: 1;
}

.cp-askhr-hero-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(10px);
	flex-shrink: 0;
}

.cp-askhr-hero-icon .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
	color: #fff;
}

.cp-askhr-hero-text h1 {
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 8px;
	color: #fff;
	letter-spacing: -0.02em;
}

.cp-askhr-hero-text p {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
	line-height: 1.5;
	max-width: 500px;
}

.cp-askhr-hero-stats {
	display: flex;
	gap: 8px;
	margin-top: 20px;
	position: relative;
	z-index: 1;
}

.cp-askhr-hero-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 10px 20px;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	min-width: 60px;
}

.cp-askhr-hero-stat-num {
	font-size: 20px;
	font-weight: 800;
	color: #fff;
	line-height: 1;
}

.cp-askhr-hero-stat-label {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.5);
	margin-top: 4px;
}

.cp-askhr-hero-stat-open .cp-askhr-hero-stat-num { color: #fbbf24; }
.cp-askhr-hero-stat-answered .cp-askhr-hero-stat-num { color: #34d399; }

/* --------------------------------------------------------------------------
   Department quick-select cards
   -------------------------------------------------------------------------- */

.cp-askhr-dept-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-bottom: 28px;
}

.cp-askhr-dept-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 20px 16px;
	background: #fff;
	border: 2px solid #e2e8f0;
	border-radius: 14px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
}

.cp-askhr-dept-card:hover {
	border-color: #93c5fd;
	box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
	transform: translateY(-2px);
}

.cp-askhr-dept-card.is-selected {
	border-color: #3b82f6;
	background: #eff6ff;
	box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.cp-askhr-dept-card-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cp-askhr-dept-card-icon .dashicons {
	font-size: 22px;
	width: 22px;
	height: 22px;
	color: #fff;
}

.cp-askhr-dept-card-hr       { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.cp-askhr-dept-card-payroll  { background: linear-gradient(135deg, #10b981, #059669); }
.cp-askhr-dept-card-benefits { background: linear-gradient(135deg, #f59e0b, #d97706); }
.cp-askhr-dept-card-it       { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.cp-askhr-dept-card-label {
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.cp-askhr-layout {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 28px;
	align-items: start;
}

/* --------------------------------------------------------------------------
   Section header
   -------------------------------------------------------------------------- */

.cp-askhr-section-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.cp-askhr-section-header h2 {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.cp-askhr-section-header h2 .dashicons {
	color: #3b82f6;
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.cp-askhr-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 8px;
	border-radius: 12px;
	background: #e2e8f0;
	color: #475569;
	font-size: 12px;
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   Status tabs
   -------------------------------------------------------------------------- */

.cp-askhr-tabs {
	display: flex;
	gap: 4px;
	background: #f1f5f9;
	border-radius: 12px;
	padding: 4px;
	margin-bottom: 16px;
}

.cp-askhr-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 8px;
	border: none;
	background: transparent;
	color: #64748b;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
	font-family: inherit;
}

.cp-askhr-tab:hover {
	color: #0f172a;
	background: rgba(255,255,255,0.5);
}

.cp-askhr-tab.is-active {
	background: #fff;
	color: #0f172a;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cp-askhr-tab-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.cp-askhr-dot-open     { background: #f59e0b; }
.cp-askhr-dot-answered { background: #10b981; }
.cp-askhr-dot-closed   { background: #94a3b8; }

.cp-askhr-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: #e2e8f0;
	color: #64748b;
	font-size: 11px;
	font-weight: 700;
}

.cp-askhr-tab.is-active .cp-askhr-tab-count {
	background: #dbeafe;
	color: #1d4ed8;
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */

.cp-askhr-empty {
	text-align: center;
	padding: 56px 24px;
	background: #f8fafc;
	border: 2px dashed #e2e8f0;
	border-radius: 16px;
}

.cp-askhr-empty-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f1f5f9;
	border-radius: 50%;
}

.cp-askhr-empty-icon .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
	color: #94a3b8;
}

.cp-askhr-empty h3 {
	font-size: 16px;
	font-weight: 700;
	color: #475569;
	margin: 0 0 8px;
}

.cp-askhr-empty p {
	font-size: 14px;
	color: #94a3b8;
	margin: 0;
	max-width: 360px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.5;
}

.cp-askhr-no-results {
	text-align: center;
	padding: 40px 20px;
	color: #94a3b8;
	font-size: 14px;
}

/* --------------------------------------------------------------------------
   Question cards (My Questions list)
   -------------------------------------------------------------------------- */

.cp-askhr-questions-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cp-askhr-question-card {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 16px 20px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.cp-askhr-question-card:hover {
	border-color: #93c5fd;
	box-shadow: 0 4px 16px rgba(59, 130, 246, 0.08);
	transform: translateY(-1px);
}

.cp-askhr-qc-left {
	flex-shrink: 0;
}

.cp-askhr-qc-icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cp-askhr-qc-icon .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #fff;
}

.cp-askhr-qc-icon-hr       { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.cp-askhr-qc-icon-payroll  { background: linear-gradient(135deg, #10b981, #059669); }
.cp-askhr-qc-icon-benefits { background: linear-gradient(135deg, #f59e0b, #d97706); }
.cp-askhr-qc-icon-it       { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.cp-askhr-qc-body {
	flex: 1;
	min-width: 0;
}

.cp-askhr-qc-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 4px;
}

.cp-askhr-qc-title {
	font-size: 15px;
	font-weight: 600;
	color: #0f172a;
	margin: 0;
	line-height: 1.3;
}

.cp-askhr-question-card:hover .cp-askhr-qc-title {
	color: #2563eb;
}

.cp-askhr-qc-excerpt {
	font-size: 13px;
	color: #64748b;
	margin: 0 0 8px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cp-askhr-qc-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	color: #94a3b8;
}

.cp-askhr-qc-date {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.cp-askhr-qc-replies {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.cp-askhr-qc-replies .dashicons {
	font-size: 13px;
	width: 13px;
	height: 13px;
}

.cp-askhr-qc-arrow {
	flex-shrink: 0;
	color: #cbd5e1;
	transition: color 0.15s ease;
}

.cp-askhr-question-card:hover .cp-askhr-qc-arrow {
	color: #3b82f6;
}

.cp-askhr-qc-arrow .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* --------------------------------------------------------------------------
   Badges (shared)
   -------------------------------------------------------------------------- */

.cp-askhr-dept-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.cp-askhr-dept-hr       { background: #dbeafe; color: #1d4ed8; }
.cp-askhr-dept-payroll  { background: #d1fae5; color: #065f46; }
.cp-askhr-dept-benefits { background: #fef3c7; color: #92400e; }
.cp-askhr-dept-it       { background: #ede9fe; color: #5b21b6; }

.cp-askhr-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
	flex-shrink: 0;
}

.cp-askhr-status-open     { background: #fef3c7; color: #92400e; }
.cp-askhr-status-answered { background: #d1fae5; color: #065f46; }
.cp-askhr-status-closed   { background: #f1f5f9; color: #64748b; }

.cp-askhr-private-badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 8px;
	border-radius: 10px;
	background: #f1f5f9;
	color: #64748b;
	font-size: 11px;
	font-weight: 600;
}

.cp-askhr-private-badge .dashicons {
	font-size: 12px;
	width: 12px;
	height: 12px;
}

.cp-askhr-staff-badge {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 4px;
	background: linear-gradient(135deg, #dbeafe, #ede9fe);
	color: #1d4ed8;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.cp-askhr-ai-badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 1px 7px;
	border-radius: 4px;
	background: linear-gradient(135deg, #fef3c7, #fde68a);
	color: #92400e;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.cp-askhr-status-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.cp-askhr-status-dot.cp-askhr-status-open     { background: #f59e0b; }
.cp-askhr-status-dot.cp-askhr-status-answered { background: #10b981; }
.cp-askhr-status-dot.cp-askhr-status-closed   { background: #94a3b8; }

/* --------------------------------------------------------------------------
   Submit form card
   -------------------------------------------------------------------------- */

.cp-askhr-form-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 24px;
	position: sticky;
	top: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.cp-askhr-form-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f1f5f9;
}

.cp-askhr-form-header-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #eff6ff;
	flex-shrink: 0;
}

.cp-askhr-form-header-icon .dashicons {
	color: #3b82f6;
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.cp-askhr-form-header h3 {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.cp-askhr-form-subtitle {
	font-size: 12px;
	color: #94a3b8;
	margin: 2px 0 0;
}

.cp-askhr-field {
	margin-bottom: 16px;
}

.cp-askhr-field label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 6px;
}

.cp-askhr-field-optional {
	font-weight: 400;
	color: #94a3b8;
	font-size: 11px;
}

.cp-askhr-select-wrap {
	position: relative;
}

.cp-askhr-field select,
.cp-askhr-field input[type="text"],
.cp-askhr-field textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	font-size: 14px;
	font-family: inherit;
	color: #0f172a;
	background: #fff;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cp-askhr-field select:focus,
.cp-askhr-field input[type="text"]:focus,
.cp-askhr-field textarea:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.cp-askhr-field textarea {
	resize: vertical;
	min-height: 90px;
}

.cp-askhr-char-count {
	display: block;
	text-align: right;
	font-size: 11px;
	color: #94a3b8;
	margin-top: 4px;
}

/* Toggle switch */
.cp-askhr-toggle-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}

.cp-askhr-toggle-switch {
	position: relative;
	width: 40px;
	height: 22px;
	flex-shrink: 0;
}

.cp-askhr-toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.cp-askhr-toggle-slider {
	position: absolute;
	inset: 0;
	background: #cbd5e1;
	border-radius: 11px;
	transition: background 0.2s ease;
}

.cp-askhr-toggle-slider::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s ease;
	box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.cp-askhr-toggle-switch input:checked + .cp-askhr-toggle-slider {
	background: #3b82f6;
}

.cp-askhr-toggle-switch input:checked + .cp-askhr-toggle-slider::after {
	transform: translateX(18px);
}

.cp-askhr-toggle-text {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.cp-askhr-toggle-title {
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

.cp-askhr-toggle-desc {
	font-size: 11px;
	color: #94a3b8;
}

.cp-askhr-form-footnote {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 12px 0 0;
	font-size: 11px;
	color: #94a3b8;
}

.cp-askhr-form-footnote .dashicons {
	font-size: 13px;
	width: 13px;
	height: 13px;
}

/* --------------------------------------------------------------------------
   AI Suggestion (Pro)
   -------------------------------------------------------------------------- */

.cp-askhr-ai-suggestion {
	margin-bottom: 16px;
	padding: 16px;
	background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
	border: 1px solid #bfdbfe;
	border-radius: 12px;
}

.cp-askhr-ai-header {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
	font-size: 14px;
	color: #1d4ed8;
}

.cp-askhr-ai-sparkle {
	font-size: 18px;
}

.cp-askhr-ai-body {
	font-size: 14px;
	line-height: 1.7;
	color: #334155;
	margin-bottom: 14px;
	padding: 12px;
	background: rgba(255,255,255,0.6);
	border-radius: 8px;
}

.cp-askhr-ai-body p { margin: 0 0 8px; }
.cp-askhr-ai-body p:last-child { margin-bottom: 0; }

.cp-askhr-ai-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.cp-askhr-ai-loading {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	margin-bottom: 16px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	font-size: 13px;
	color: #475569;
}

.cp-askhr-spinner {
	width: 20px;
	height: 20px;
	border: 2px solid #e2e8f0;
	border-top-color: #3b82f6;
	border-radius: 50%;
	animation: cp-askhr-spin 0.6s linear infinite;
	flex-shrink: 0;
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.cp-askhr-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	border-radius: 10px;
	border: none;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
	text-decoration: none;
	line-height: 1.4;
	font-family: inherit;
}

.cp-askhr-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.cp-askhr-btn-primary {
	background: #3b82f6;
	color: #fff;
}

.cp-askhr-btn-primary:hover:not(:disabled) {
	background: #2563eb;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.cp-askhr-btn-success {
	background: #10b981;
	color: #fff;
}

.cp-askhr-btn-success:hover:not(:disabled) {
	background: #059669;
}

.cp-askhr-btn-outline {
	background: transparent;
	border: 1px solid #e2e8f0;
	color: #475569;
}

.cp-askhr-btn-outline:hover:not(:disabled) {
	background: #f8fafc;
	border-color: #cbd5e1;
	color: #0f172a;
}

.cp-askhr-btn-full {
	width: 100%;
	justify-content: center;
}

.cp-askhr-btn-sm {
	padding: 7px 14px;
	font-size: 13px;
}

.cp-askhr-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* --------------------------------------------------------------------------
   Form success
   -------------------------------------------------------------------------- */

.cp-askhr-form-success {
	text-align: center;
	padding: 28px 16px;
}

.cp-askhr-success-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #d1fae5;
	border-radius: 50%;
}

.cp-askhr-success-icon .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
	color: #10b981;
}

.cp-askhr-form-success h3 {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px;
}

.cp-askhr-form-success p {
	font-size: 13px;
	color: #64748b;
	margin: 0 0 16px;
	line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Info card
   -------------------------------------------------------------------------- */

.cp-askhr-info-card {
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 14px;
	padding: 18px 20px;
	margin-top: 16px;
}

.cp-askhr-info-card h4 {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #92400e;
	margin: 0 0 10px;
}

.cp-askhr-info-card h4 .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #f59e0b;
}

.cp-askhr-info-card ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cp-askhr-info-card li {
	position: relative;
	padding-left: 16px;
	font-size: 13px;
	color: #78350f;
	line-height: 1.5;
	margin-bottom: 6px;
}

.cp-askhr-info-card li::before {
	content: '→';
	position: absolute;
	left: 0;
	color: #d97706;
	font-weight: 600;
}

.cp-askhr-info-card li:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Single question view
   -------------------------------------------------------------------------- */

.cp-askhr-single {
	max-width: 960px;
}

.cp-askhr-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 12px 0;
	margin-bottom: 8px;
	font-size: 13px;
	flex-wrap: wrap;
}

.cp-askhr-breadcrumb-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #64748b;
	text-decoration: none;
	transition: color 0.15s ease;
}

.cp-askhr-breadcrumb-link:hover {
	color: #3b82f6;
}

.cp-askhr-breadcrumb-link .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.cp-askhr-breadcrumb-sep {
	color: #cbd5e1;
}

.cp-askhr-breadcrumb-sep .dashicons {
	font-size: 12px;
	width: 12px;
	height: 12px;
}

.cp-askhr-breadcrumb-current {
	color: #0f172a;
	font-weight: 600;
}

.cp-askhr-single-layout {
	display: grid;
	grid-template-columns: 1fr 260px;
	gap: 24px;
	align-items: start;
}

.cp-askhr-question-detail {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 28px;
	margin-bottom: 16px;
}

.cp-askhr-qd-top-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.cp-askhr-qd-dept-icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cp-askhr-qd-dept-icon .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: #fff;
}

.cp-askhr-qd-badges {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.cp-askhr-qd-title {
	font-size: 22px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 14px;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.cp-askhr-qd-meta {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 18px;
	border-bottom: 1px solid #f1f5f9;
	margin-bottom: 18px;
}

.cp-askhr-qd-author {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.cp-askhr-qd-author img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
}

.cp-askhr-qd-author-info {
	display: flex;
	flex-direction: column;
}

.cp-askhr-qd-author-name {
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
}

.cp-askhr-qd-date {
	font-size: 12px;
	color: #94a3b8;
}

.cp-askhr-qd-body {
	font-size: 15px;
	line-height: 1.8;
	color: #334155;
}

.cp-askhr-qd-body p {
	margin: 0 0 12px;
}

.cp-askhr-qd-body p:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Thread
   -------------------------------------------------------------------------- */

.cp-askhr-thread {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 28px;
}

.cp-askhr-thread-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f1f5f9;
}

.cp-askhr-thread-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.cp-askhr-thread-title .dashicons {
	color: #3b82f6;
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.cp-askhr-thread-awaiting {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	color: #f59e0b;
}

.cp-askhr-pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #f59e0b;
	animation: cp-askhr-pulse 1.5s ease-in-out infinite;
}

@keyframes cp-askhr-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.5; transform: scale(1.3); }
}

.cp-askhr-thread-empty {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 24px 16px;
	text-align: center;
	justify-content: center;
	color: #94a3b8;
	font-size: 14px;
}

.cp-askhr-thread-empty .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.cp-askhr-replies-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cp-askhr-reply {
	display: flex;
	gap: 12px;
	padding: 16px;
	background: #f8fafc;
	border-radius: 12px;
	border: 1px solid #f1f5f9;
}

.cp-askhr-reply-staff {
	background: #eff6ff;
	border-color: #dbeafe;
	border-left: 3px solid #3b82f6;
}

.cp-askhr-reply-ai {
	background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
	border-color: #fde68a;
	border-left: 3px solid #f59e0b;
}

.cp-askhr-reply-avatar img,
.cp-askhr-ai-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.cp-askhr-ai-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #fbbf24, #f59e0b);
	font-size: 18px;
	color: #fff;
}

.cp-askhr-reply-content {
	flex: 1;
	min-width: 0;
}

.cp-askhr-reply-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 12px;
}

.cp-askhr-reply-author {
	font-weight: 600;
	color: #0f172a;
	font-size: 14px;
}

.cp-askhr-reply-date {
	color: #94a3b8;
}

.cp-askhr-reply-body {
	font-size: 14px;
	line-height: 1.7;
	color: #334155;
}

.cp-askhr-reply-body p {
	margin: 0 0 8px;
}

.cp-askhr-reply-body p:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Reply form
   -------------------------------------------------------------------------- */

.cp-askhr-reply-form-wrap {
	display: flex;
	gap: 12px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #f1f5f9;
}

.cp-askhr-reply-form-avatar img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.cp-askhr-reply-form {
	flex: 1;
}

.cp-askhr-reply-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	font-size: 14px;
	font-family: inherit;
	color: #0f172a;
	resize: vertical;
	min-height: 70px;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.15s ease;
	margin-bottom: 10px;
}

.cp-askhr-reply-form textarea:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.cp-askhr-reply-form-actions {
	display: flex;
	justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   Closed notice
   -------------------------------------------------------------------------- */

.cp-askhr-closed-notice {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	padding: 14px 18px;
	background: #f1f5f9;
	border-radius: 10px;
	font-size: 13px;
	color: #64748b;
	font-weight: 500;
}

.cp-askhr-closed-notice .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* --------------------------------------------------------------------------
   Detail sidebar
   -------------------------------------------------------------------------- */

.cp-askhr-detail-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 20px;
	position: sticky;
	top: 20px;
}

.cp-askhr-detail-card h4 {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f1f5f9;
}

.cp-askhr-detail-list {
	margin: 0;
}

.cp-askhr-detail-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid #f8fafc;
}

.cp-askhr-detail-row:last-child {
	border-bottom: none;
}

.cp-askhr-detail-row dt {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.cp-askhr-detail-row dd {
	font-size: 13px;
	color: #334155;
	margin: 0;
}

/* --------------------------------------------------------------------------
   Not found
   -------------------------------------------------------------------------- */

.cp-askhr-not-found {
	text-align: center;
	padding: 80px 20px;
}

.cp-askhr-not-found-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fef3c7;
	border-radius: 50%;
}

.cp-askhr-not-found-icon .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
	color: #f59e0b;
}

.cp-askhr-not-found h2 {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px;
}

.cp-askhr-not-found p {
	font-size: 14px;
	color: #64748b;
	margin: 0 0 20px;
}

/* --------------------------------------------------------------------------
   Widget styles
   -------------------------------------------------------------------------- */

.cp-askhr-widget-empty {
	text-align: center;
	padding: 24px 16px;
	color: #94a3b8;
	font-size: 14px;
}

.cp-askhr-widget-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cp-askhr-widget-item {
	border-bottom: 1px solid #f1f5f9;
}

.cp-askhr-widget-item:last-child {
	border-bottom: none;
}

.cp-askhr-widget-item a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 8px;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.15s ease;
}

.cp-askhr-widget-item a:hover {
	background: #f8fafc;
}

.cp-askhr-widget-title {
	font-size: 14px;
	font-weight: 500;
	color: #1e293b;
}

.cp-askhr-widget-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #94a3b8;
}

.cp-askhr-widget-more {
	display: block;
	text-align: center;
	padding: 10px;
	font-size: 13px;
	font-weight: 600;
	color: #3b82f6;
	text-decoration: none;
	transition: color 0.15s ease;
}

.cp-askhr-widget-more:hover {
	color: #1d4ed8;
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.cp-askhr-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	padding: 12px 22px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	z-index: 99999;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
	box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.cp-askhr-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.cp-askhr-toast-success { background: #10b981; }
.cp-askhr-toast-error   { background: #ef4444; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
	.cp-askhr-layout {
		grid-template-columns: 1fr;
	}

	.cp-askhr-sidebar {
		order: -1;
	}

	.cp-askhr-form-card {
		position: static;
	}

	.cp-askhr-single-layout {
		grid-template-columns: 1fr;
	}

	.cp-askhr-dept-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.cp-askhr-hero {
		padding: 28px 20px;
		border-radius: 14px;
	}

	.cp-askhr-hero-inner {
		flex-direction: column;
		gap: 14px;
	}

	.cp-askhr-hero-text h1 {
		font-size: 20px;
	}

	.cp-askhr-qd-title {
		font-size: 18px;
	}

	.cp-askhr-question-card {
		padding: 14px 16px;
	}

	.cp-askhr-dept-cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}

	.cp-askhr-dept-card {
		padding: 14px 10px;
	}

	.cp-askhr-qd-meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
}
