/* CMNITY HIRE Candidate Manager - front-end & admin styles */

.cm-dashboard {
	max-width: 900px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.6;
}

.cm-dashboard-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
	border-bottom: 1px solid #ddd;
	padding-bottom: 10px;
}

.cm-menu-link,
.cm-tab-link {
	display: inline-block;
	padding: 8px 14px;
	background: #f3f3f3;
	color: #333;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 500;
}

.cm-menu-link.active,
.cm-tab-link.active {
	background: #2271b1;
	color: #fff;
}

.cm-menu-logout {
	margin-left: auto;
	background: #d63638;
	color: #fff;
}

.cm-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
}

.cm-form p {
	margin-bottom: 14px;
}

.cm-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.cm-form input[type="text"],
.cm-form input[type="email"],
.cm-form input[type="password"],
.cm-form input[type="url"],
.cm-form input[type="file"],
.cm-form input[type="number"],
.cm-form textarea {
	width: 100%;
	max-width: 480px;
	padding: 8px 10px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	box-sizing: border-box;
}

.cm-btn {
	display: inline-block;
	padding: 10px 18px;
	background: #2271b1;
	color: #fff !important;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

.cm-btn:hover {
	background: #135e96;
}

.cm-btn-small {
	padding: 5px 10px;
	font-size: 12px;
	margin-right: 6px;
}

.cm-btn-applied {
	background: #8c8f94;
	cursor: not-allowed;
}

.cm-apply-wrap {
	margin: 30px 0;
	text-align: center;
}

.cm-apply-wrap .cm-btn-apply {
	display: inline-block;
	background: #28a745;
	color: #ffffff !important;
	font-size: 18px;
	font-weight: 700;
	padding: 14px 60px;
	border: none;
	border-radius: 35px;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
	transition: all 0.2s ease-in-out;
}

.cm-apply-wrap .cm-btn-apply:hover {
	background: #218838;
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(40, 167, 69, 0.45);
}

.cm-apply-summary {
	margin-bottom: 14px;
	font-size: 14px;
	color: #333;
}

.cm-radio-label {
	display: inline-block;
	margin-right: 18px;
	font-weight: 400;
}

.cm-candidate-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 14px 0 18px;
}

.cm-candidate-filters select,
.cm-candidate-filters input[type="search"] {
	padding: 5px 8px;
}

.cm-notice {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 16px;
}

.cm-notice-success {
	background: #edfaef;
	border-left: 4px solid #00a32a;
}

.cm-notice-error {
	background: #fcf0f1;
	border-left: 4px solid #d63638;
}

.cm-notice-info {
	background: #f0f6fc;
	border-left: 4px solid #2271b1;
}

.cm-table,
.cm-profile-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.cm-table th,
.cm-table td,
.cm-profile-table th,
.cm-profile-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid #eee;
}

.cm-profile-table th {
	width: 220px;
	background: #f9f9f9;
}

.cm-table thead th {
	background: #f3f3f3;
	font-weight: 600;
}

.cm-help-text {
	color: #666;
	font-size: 13px;
}

.cm-link-delete {
	color: #d63638;
}

.cm-admin-wrap .wp-list-table {
	margin-top: 14px;
}

@media (max-width: 600px) {
	.cm-table,
	.cm-profile-table {
		display: block;
		overflow-x: auto;
	}

	.cm-dashboard-menu {
		flex-direction: column;
	}

	.cm-menu-logout {
		margin-left: 0;
	}
}

/* Admin: at-a-glance stats bar */
.cm-stats-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 14px 0 20px;
}

.cm-stat-box {
	background: #fff;
	border: 1px solid #dcdcde;
	border-left: 4px solid #2271b1;
	border-radius: 4px;
	padding: 14px 20px;
	min-width: 160px;
	box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.cm-stat-box a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.cm-stat-box.cm-stat-alert {
	border-left-color: #d63638;
}

.cm-stat-number {
	display: block;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	color: #1d2327;
}

.cm-stat-box.cm-stat-alert .cm-stat-number {
	color: #d63638;
}

.cm-stat-label {
	display: block;
	font-size: 12px;
	color: #646970;
	margin-top: 2px;
}

.cm-forgot-password {
	text-align: center;
	margin-top: -6px;
	font-size: 13px;
}

.cm-admin-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 16px 20px;
	margin: 14px 0;
	max-width: 800px;
}

.cm-admin-card h2 {
	margin-top: 0;
}

.cm-company-careers-link {
	text-align: center;
	font-size: 14px;
	margin-top: -10px;
}

.cm-company-job-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cm-company-job-list li {
	display: flex;
	justify-content: space-between;
	padding: 12px 16px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	margin-bottom: 8px;
}

.cm-company-job-list .cm-job-date {
	color: #888;
	font-size: 13px;
}

.cm-company-about {
	max-width: 640px;
}

.cm-stage-note {
	font-size: 12px;
	color: #666;
	font-style: italic;
}

.cm-stage-update {
	margin: 6px 4px 6px 0;
	font-size: 13px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 0;
	background: #fafafa;
	display: inline-block;
	vertical-align: top;
}

.cm-stage-update summary {
	cursor: pointer;
	color: #1d2327;
	font-weight: 600;
	padding: 6px 12px;
	list-style: none;
}

.cm-stage-update summary::-webkit-details-marker {
	display: none;
}

.cm-stage-update summary::before {
	content: "▸ ";
}

.cm-stage-update[open] summary::before {
	content: "▾ ";
}

.cm-stage-update[open] {
	display: block;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.cm-stage-update form {
	margin-top: 8px;
	padding: 10px;
	background: #f6f7f7;
	border-radius: 4px;
	max-width: 320px;
}

.cm-stage-update textarea,
.cm-stage-update select {
	width: 100%;
}

.cm-resend-verification {
	margin-top: 10px;
	font-size: 13px;
	background: #f6f7f7;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 8px 12px;
	display: inline-block;
}

.cm-resend-verification summary {
	cursor: pointer;
	color: #2271b1;
}

.cm-review-timeline-note {
	background: #f0f6fc;
	border-left: 3px solid #2271b1;
	padding: 10px 14px;
	font-size: 13px;
	color: #444;
	max-width: 640px;
}

.cm-avatar-preview {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #e0e0e0;
	display: block;
	margin: 0 auto 10px;
}

.cm-dashboard-header {
	text-align: center;
	margin-bottom: 20px;
}

.cm-phone-split {
	display: inline-flex;
	gap: 6px;
	align-items: center;
}

.cm-phone-split .cm-phone-cc {
	max-width: 220px;
}

.cm-phone-split .cm-phone-number {
	max-width: 160px;
}

.cm-application-card {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 18px;
	background: #fff;
}

.cm-application-card-header h3 {
	margin: 0 0 4px;
}

.cm-application-card-header p {
	margin: 2px 0;
	font-size: 13px;
	color: #555;
}

.cm-note-thread {
	margin: 14px 0;
	border-top: 1px solid #eee;
	padding-top: 10px;
}

.cm-note {
	padding: 8px 12px;
	border-radius: 6px;
	margin-bottom: 8px;
	background: #f6f7f7;
	max-width: 85%;
}

.cm-note-candidate {
	background: #e8f0fe;
	margin-left: auto;
}

.cm-note-admin {
	background: #fff4e5;
}

.cm-note-employer {
	background: #eafaf1;
}

.cm-note-meta {
	font-size: 11px;
	color: #666;
	margin-bottom: 3px;
}

.cm-note-message {
	font-size: 14px;
	white-space: pre-wrap;
}

.cm-reply-form textarea {
	width: 100%;
	max-width: 500px;
}
