/**
 * CBS eRecruit - Applicant Dashboard Styles
 *
 * Role-specific styles for applicant (frontend) dashboard.
 * Extends dashboard-common.css with profile and application tracking components.
 *
 * @package CBSERecruit
 */

/* ==========================================================================
   Profile Completeness Widget
   ========================================================================== */

.cbs-progress-bar {
	height: 12px;
	background: #e2e8f0;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 10px;
}

.cbs-progress-bar__fill {
	height: 100%;
	background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
	border-radius: 6px;
	transition: width 0.5s ease;
}

.cbs-progress-bar + .description {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 15px;
}

/* ==========================================================================
   Profile Checklist
   ========================================================================== */

.cbs-checklist {
	list-style: none;
	margin: 15px 0 0 0;
	padding: 0;
}

.cbs-checklist__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #f1f5f9;
}

.cbs-checklist__item:last-child {
	border-bottom: none;
}

.cbs-checklist__item .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.cbs-checklist__item--complete .dashicons {
	color: #16a34a;
}

.cbs-checklist__item--incomplete .dashicons {
	color: #e74c3c;
}

.cbs-checklist__item a {
	color: #1e293b;
	text-decoration: none;
	font-size: 14px;
}

.cbs-checklist__item a:hover {
	color: #2563eb;
	text-decoration: underline;
}

/* ==========================================================================
   Success Message
   ========================================================================== */

.cbs-success-message {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px;
	background: #dcfce7;
	border: 1px solid #bbf7d0;
	border-radius: 6px;
	color: #16a34a;
	font-size: 14px;
	font-weight: 600;
}

.cbs-success-message .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

/* ==========================================================================
   Job Cards for Applicants
   ========================================================================== */

.cbs-job-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.cbs-job-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 20px;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
}

.cbs-job-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.cbs-job-card__header {
	margin-bottom: 12px;
}

.cbs-job-card__title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 6px 0;
}

.cbs-job-card__title a {
	color: #1e293b;
	text-decoration: none;
}

.cbs-job-card__title a:hover {
	color: #2563eb;
}

.cbs-job-card__company {
	font-size: 13px;
	color: #64748b;
}

.cbs-job-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
	font-size: 12px;
	color: #64748b;
}

.cbs-job-card__location,
.cbs-job-card__type {
	display: flex;
	align-items: center;
	gap: 4px;
}

.cbs-job-card__location .dashicons,
.cbs-job-card__type .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.cbs-job-card__description {
	font-size: 13px;
	line-height: 1.6;
	color: #475569;
	margin-bottom: 15px;
	flex: 1;
}

.cbs-job-card__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 12px;
	border-top: 1px solid #f1f5f9;
}

.cbs-job-card__posted {
	font-size: 11px;
	color: #94a3b8;
}

/* ==========================================================================
   Application Status Badges
   ========================================================================== */

.cbs-status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.cbs-status-pending {
	background: #fef3c7;
	color: #92400e;
}

.cbs-status-reviewing {
	background: #dbeafe;
	color: #1e40af;
}

.cbs-status-shortlisted {
	background: #e0e7ff;
	color: #4338ca;
}

.cbs-status-interviewed {
	background: #e9d5ff;
	color: #7c3aed;
}

.cbs-status-offered {
	background: #dcfce7;
	color: #166534;
}

.cbs-status-accepted {
	background: #d1fae5;
	color: #065f46;
}

.cbs-status-rejected {
	background: #fee2e2;
	color: #991b1b;
}

.cbs-status-withdrawn {
	background: #f1f5f9;
	color: #475569;
}

/* ==========================================================================
   Application Tips
   ========================================================================== */

.cbs-tips p {
	margin-bottom: 12px;
}

.cbs-tips p:last-child {
	margin-bottom: 0;
}

.cbs-tips strong {
	color: #1e293b;
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
}

.cbs-tips .description {
	font-size: 13px;
	color: #64748b;
	line-height: 1.5;
}

/* ==========================================================================
   Resource List
   ========================================================================== */

.cbs-resource-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cbs-resource-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #f1f5f9;
}

.cbs-resource-list li:last-child {
	border-bottom: none;
}

.cbs-resource-list .dashicons {
	color: #3498db;
	font-size: 18px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.cbs-resource-list a {
	color: #1e293b;
	text-decoration: none;
	font-size: 14px;
}

.cbs-resource-list a:hover {
	color: #2563eb;
}

/* ==========================================================================
   Upcoming Interviews Widget
   ========================================================================== */

.cbs-upcoming-interviews .cbs-widget__title {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cbs-upcoming-interviews .cbs-widget__title .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #9333ea;
}

.cbs-interviews-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cbs-interview-item {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-left: 3px solid #9333ea;
	border-radius: 8px;
	padding: 20px;
	transition: all 0.2s ease;
}

.cbs-interview-item:hover {
	border-color: #9333ea;
	box-shadow: 0 4px 12px rgba(147, 51, 234, 0.12);
	transform: translateY(-2px);
}

.cbs-interview-header {
	display: flex;
	justify-content: space-between;
	align-items: start;
	margin-bottom: 16px;
	gap: 12px;
}

.cbs-interview-job {
	font-size: 16px;
	font-weight: 600;
	color: #1e293b;
	margin: 0;
	flex: 1;
	line-height: 1.4;
}

.cbs-interview-countdown {
	font-size: 11px;
	font-weight: 700;
	padding: 6px 12px;
	background: #f3e8ff;
	color: #7c3aed;
	border-radius: 16px;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	flex-shrink: 0;
}

.cbs-interview-details {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 16px;
	padding: 12px;
	background: #f8fafc;
	border-radius: 6px;
}

.cbs-interview-date,
.cbs-interview-location {
	display: flex;
	align-items: start;
	gap: 10px;
	font-size: 13px;
}

.cbs-interview-date .dashicons,
.cbs-interview-location .dashicons {
	flex-shrink: 0;
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: #9333ea;
	margin-top: 1px;
}

.cbs-interview-date-info,
.cbs-interview-location-info {
	flex: 1;
}

.cbs-interview-date-info strong {
	display: block;
	color: #1e293b;
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 14px;
}

.cbs-interview-time {
	display: block;
	color: #64748b;
	font-size: 13px;
}

.cbs-interview-location-info a {
	color: #2563eb;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.cbs-interview-location-info a:hover {
	text-decoration: underline;
}

.cbs-interview-location-info .dashicons-video-alt3 {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.cbs-interview-actions {
	display: flex;
	gap: 8px;
}

.cbs-interview-actions .button {
	flex: 1;
	text-align: center;
	justify-content: center;
	background: #2563eb;
	color: #fff;
	padding: 10px 16px;
	border-radius: 6px;
	font-weight: 500;
	font-size: 13px;
	transition: all 0.2s ease;
	border: none;
}

.cbs-interview-actions .button:hover {
	background: #1d4ed8;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Widget footer for view all link */
.cbs-upcoming-interviews .cbs-widget__footer {
	text-align: center;
	padding-top: 15px;
	border-top: 1px solid #f1f5f9;
	margin-top: 15px;
}

.cbs-upcoming-interviews .cbs-widget__footer a {
	color: #2563eb;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
}

.cbs-upcoming-interviews .cbs-widget__footer a:hover {
	text-decoration: underline;
}
