/* ===================================================================
   STUDENT AREA (DASHBOARD)
   =================================================================== */

/* Dashboard Tables - Shared Styles */
#resume-manager-candidate-dashboard table,
#job-manager-bookmarks table,
.job-manager-past-applications {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5rem;
}

#resume-manager-candidate-dashboard th,
#resume-manager-candidate-dashboard td,
#job-manager-bookmarks th,
#job-manager-bookmarks td,
.job-manager-past-applications th,
.job-manager-past-applications td {
	padding: 0.75rem 1rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid #e5e5e5;
}

#resume-manager-candidate-dashboard th,
#job-manager-bookmarks th,
.job-manager-past-applications th {
	font-weight: 600;
	color: #333;
	background-color: #f8f8f8;
	border-bottom: 2px solid #ddd;
}

#resume-manager-candidate-dashboard tbody tr:hover,
#job-manager-bookmarks tbody tr:hover,
.job-manager-past-applications tbody tr:hover {
	background-color: #fafafa;
}

/* Resume Table */
.resume-manager-resumes .candidate-dashboard-actions {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	display: flex;
	gap: 0.75rem;
}

.resume-manager-resumes .candidate-dashboard-actions li a {
	font-size: .85em;
	text-decoration: none;
	padding: 0.5rem 0.75rem;
	border-radius: 4px;
	transition: background-color 0.2s;
}

.resume-manager-resumes .candidate-dashboard-actions .candidate-dashboard-action-edit {
	color: #0073aa;
}

.resume-manager-resumes .candidate-dashboard-actions .candidate-dashboard-action-edit:hover {
	background-color: #e5f3ff;
}

.resume-manager-resumes .candidate-dashboard-actions .candidate-dashboard-action-hide {
	color: #666;
}

.resume-manager-resumes .candidate-dashboard-actions .candidate-dashboard-action-hide:hover {
	background-color: #f0f0f0;
}

.resume-manager-resumes .candidate-dashboard-actions .candidate-dashboard-action-delete {
	color: #a00;
}

.resume-manager-resumes .candidate-dashboard-actions .candidate-dashboard-action-delete:hover {
	background-color: #ffe5e5;
}

.resume-manager-resumes tfoot td {
	padding-top: 1rem;
	border-bottom: none;
}

.resume-manager-resumes tfoot a {
	display: inline-flex;
	align-items: center;
	padding: 8px 8px 8px 20px;
	background-color: #E66C1E;
	color: #fff;
	text-decoration: none;
	border-radius: 80px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.72px;
	transition: all 0.5s;
}

.resume-manager-resumes tfoot a::after {
	content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M4.49951 1.87451L8.24951 5.62451L4.49951 9.37451' stroke='%23E66C1E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	width: 36px;
	background-color: #FFFFFF;
	border-radius: 42px;
	min-width: 36px;
	margin-left: 10px;
}

.resume-manager-resumes tfoot a:hover {
	background-color: #333;
}

.resume-manager-resumes tfoot a:hover::after {
	content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M4.49951 1.87451L8.24951 5.62451L4.49951 9.37451' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Bookmarks Table */
.job-manager-bookmarks .company_logo {
	width: 40px;
	height: 40px;
	object-fit: contain;
	vertical-align: middle;
	margin-right: 0.75rem;
	background-color: #f5f5f5;
	border-radius: 4px;
	padding: 4px;
}

.job-manager-bookmarks td > a {
	display: flex;
	align-items: center;
}

.job-manager-bookmark-actions {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	display: flex;
	gap: 0.75rem;
}

.job-manager-bookmark-actions li a {
	font-size: .85em;
	text-decoration: none;
	padding: 0.5rem 0.75rem;
	border-radius: 4px;
	transition: background-color 0.2s;
}

.job-manager-bookmark-actions .job-manager-bookmark-action-delete {
	color: #a00;
}

.job-manager-bookmark-actions .job-manager-bookmark-action-delete:hover {
	background-color: #ffe5e5;
}

.job-manager-bookmarks .no-bookmarks-notice {
	display: none;
}

.job-manager-bookmarks tbody:not(:has(tr:not(.no-bookmarks-notice))) .no-bookmarks-notice {
	display: table-row;
}

.job-manager-bookmarks .no-bookmarks-notice td {
	color: #666;
	font-style: italic;
	text-align: center;
	padding: 2rem;
}

/* Applications History Table */
.job-manager-past-applications .application-message {
	max-width: 400px;
	font-size: 0.8em;
	color: #555;
}

.job-manager-past-applications .application-message p {
	margin: 0 0 0.5rem;
}

.job-manager-past-applications .application-message p:last-child {
	margin-bottom: 0;
}

/* Bookmark form */
	form.wp-job-manager-bookmarks-form {
		border: none;
		margin-bottom: 0px;
		margin-top: 30px;
	}
	form.wp-job-manager-bookmarks-form.has-bookmark .remove-bookmark-wrapper {
		display: inline-flex;
		gap: 4px;
	}
	.single-resume-content form.wp-job-manager-bookmarks-form {
		margin-top: 0px;
	}
	dl.resume-data-list dd {
		margin-bottom: 20px;
	}
	a.bookmark-notice {
		padding: 0px !important;
		font-size: 16px;
		padding-left: 7px;
	}
	a.bookmark-notice::before {
		vertical-align:0px !important;
	}
	span.bookmark-notice.dashicons.dashicons-ellipsis {
		transform: rotate(90deg);
		display: inline-block;
		font-size: 16px;
		margin-top: 4px;
		cursor: pointer;
	}
	span.bookmark-notice.dashicons.dashicons-ellipsis:hover {
		color: #e66c1f;
	}
	div.remove-bookmark-wrapper a.remove-bookmark {
		padding: 0px;
		float: none;
		visibility: visible;
		background-color: transparent;
	}
	div.remove-bookmark-wrapper a.remove-bookmark:hover { 
		background-color: transparent;
	}
	div.remove-bookmark-wrapper a.remove-bookmark:hover span.dashicons-trash {
		color: #e66c1f;
	}
	div.remove-bookmark-wrapper a.remove-bookmark .dashicons-trash {
		vertical-align: -3px;
	}
	div.bookmark-details {
		padding: 0px 5px !important;
		margin-top: 10px;
		font-size: 16px;
	}
	label.bookmark-notes-label {
		font-weight: 300;
	}
	div.bookmark-details input.submit-bookmark-button {
		font-size: 16px;
		padding: 8px 20px;
	}

/* ===================================================================
   LETTERS OF RECOMMENDATION (Resume Preview)
   =================================================================== */

.internship-references {
	margin-top:40px;
	padding-bottom: 20px;
}

/* List reset */
.internship-references__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	overflow: hidden;
}

/* Each referee row */
.internship-references__item {
	border-bottom: 1px solid #e5e5e5;
}

.internship-references__item:last-child {
	border-bottom: none;
}

/* Static items (pending): flex row with consistent padding */
.internship-references__item:not(:has(.internship-references__details)) {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: #fff;
}

/* Expandable items: reset browser defaults on <details> */
.internship-references__details {
	width: 100%;
	margin: 0;
	padding: 0;
}

/* Summary row: same padding as the static row */
.internship-references__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	background: #fff;
	cursor: pointer;
	list-style: none;
	user-select: none;
	transition: background-color 0.15s ease;
}

.internship-references__summary::-webkit-details-marker {
	display: none;
}

.internship-references__summary:hover {
	background-color: #fafafa;
}

/* Right side of summary: badge + chevron */
.internship-references__summary-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

/* Referee name */
.internship-references__name {
	font-size: 1em;
	font-weight: 500;
	color: #222;
}

/* Status badge */
.internship-references__status {
	display: inline-block;
	font-size: 0.60em;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.internship-references__status--pending {
	background-color: #fff3cd;
	color: #7a5c00;
}

.internship-references__status--completed {
	background-color: #d4edda;
	color: #1a5c2e;
}

/* Animated chevron */
.internship-references__chevron {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-right: 2px solid #888;
	border-bottom: 2px solid #888;
	transform: rotate(45deg);
	transition: transform 0.25s ease;
	flex-shrink: 0;
}

.internship-references__details[open] .internship-references__chevron {
	transform: rotate(-135deg);
}

/* Slide-down content */
.internship-references__content {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.35s ease-out;
}

.internship-references__details[open] > .internship-references__content {
	max-height: 3000px;
	transition: max-height 0.5s ease-in;
}

/* Content inner layout */
.internship-references__submitted-date {
	font-size: 0.9em;
	color: #888;
	margin: 0 0 1rem;
	padding-top: 16px;
	padding-left: 16px;
	padding-right: 16px;
}

.internship-references__fields {
	margin: 0;
	padding: 0 16px 20px;
}

.internship-references__fields dt {
    font-weight: 600;
    font-size: 0.65em;
    color: #666;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.internship-references__fields dt:first-child {
	margin-top: 0;
}

.internship-references__fields dd {
	margin: 0;
	color: #333;
	font-size: 1em;
	line-height: 1.6;
	padding-left: 0;
}

/* Likert scale bar */
.internship-references__likert-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 4px;
	width:50%;
}

.internship-references__likert-anchor {
	font-size: 0.8em;
	width: 70px;
	flex-shrink: 0;
}

.internship-references__likert-track {
	flex: 1;
	height: 8px;
	background-color: #e5e5e5;
	border-radius: 4px;
	overflow: hidden;
	min-width: 60px;
}

.internship-references__likert-fill {
	height: 100%;
	background-color: #E66C1E;
	border-radius: 4px;
}

/* Action icons (resend + copy link) */
.internship-references__item-right {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.internship-references__actions {
	display: flex;
	align-items: center;
	gap: 2px;
}

.internship-references__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 4px;
	border: none;
	background: transparent;
	color: #aaa;
	cursor: pointer;
	padding: 0;
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.internship-references__action:hover {
	color: #333;
	background-color: #f0f0f0;
}

.internship-references__action--resend:hover {
	color: #0073aa;
	background-color: #e5f3ff;
}

.internship-references__action--copy:hover {
	color: #0073aa;
	background-color: #e5f3ff;
}

/* ===================================================================
   APPLICATIONS (Practice Portal)
   =================================================================== */

li.job-application header {
	display:flex;
}

li.job-application div.job-application-header-title {
	flex-grow:2;
}

li.job-application div.job-application-header-title p {
	line-height: 10px;
	margin-top: 0px;
	margin-bottom: 0px;
	font-size: 16px;
}
