/* Xtreme HRM Frontend Portal Styles */

.hrm-portal-wrapper {
	max-width: 1200px;
	margin: 20px auto;
	padding: 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hrm-portal-header {
	border-bottom: 2px solid #0073aa;
	padding-bottom: 15px;
	margin-bottom: 20px;
}

.hrm-portal-header h2 {
	margin: 0 0 10px 0;
	color: #23282d;
}

.hrm-portal-header p {
	margin: 0;
	color: #666;
}

.hrm-portal-message {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
	padding: 12px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.hrm-portal-nav {
	display: flex;
	gap: 10px;
	margin-bottom: 30px;
	border-bottom: 1px solid #ddd;
	flex-wrap: wrap;
}

.hrm-portal-nav a {
	padding: 10px 20px;
	text-decoration: none;
	color: #555;
	border-bottom: 3px solid transparent;
	transition: all 0.3s;
}

.hrm-portal-nav a:hover {
	color: #0073aa;
	background: #f5f5f5;
}

.hrm-portal-nav a.active {
	color: #0073aa;
	border-bottom-color: #0073aa;
	font-weight: 600;
}

.hrm-portal-content {
	padding: 20px 0;
}

/* Dashboard */
.hrm-dashboard h3 {
	margin-top: 0;
	color: #23282d;
}

.hrm-dashboard-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.hrm-card {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	padding: 20px;
	border-radius: 8px;
	text-align: center;
}

.hrm-card:nth-child(2) {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.hrm-card:nth-child(3) {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.hrm-card:nth-child(4) {
	background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.hrm-card h4 {
	margin: 0 0 10px 0;
	font-size: 14px;
	opacity: 0.9;
}

.hrm-card-value {
	font-size: 36px;
	font-weight: bold;
	margin: 10px 0;
}

.hrm-card-label {
	font-size: 12px;
	opacity: 0.8;
	margin: 0;
}

.hrm-quick-info {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
}

.hrm-quick-info h4 {
	margin-top: 0;
}

.hrm-quick-info table {
	width: 100%;
	border-collapse: collapse;
}

.hrm-quick-info th {
	text-align: left;
	padding: 8px;
	width: 200px;
	color: #666;
}

.hrm-quick-info td {
	padding: 8px;
	color: #23282d;
}

/* Messages & Announcements */
.hrm-dashboard-messages {
	margin-bottom: 30px;
}

.hrm-dashboard-messages h4 {
	margin-top: 0;
	color: #23282d;
	font-size: 18px;
}

.hrm-message-item {
	background: #fff;
	border: 1px solid #ddd;
	border-left: 4px solid #0073aa;
	padding: 15px;
	margin-bottom: 15px;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.hrm-message-item.hrm-announcement {
	border-left-color: #ff9800;
	background: #fff8e1;
}

.hrm-message-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #eee;
}

.hrm-message-header strong {
	color: #0073aa;
	font-size: 14px;
}

.hrm-announcement .hrm-message-header strong {
	color: #ff9800;
}

.hrm-message-date {
	font-size: 12px;
	color: #999;
}

.hrm-message-subject {
	font-weight: 600;
	color: #23282d;
	margin-bottom: 8px;
	font-size: 16px;
}

.hrm-message-body {
	color: #555;
	line-height: 1.6;
	margin-bottom: 10px;
}

.hrm-message-from {
	font-size: 12px;
	color: #999;
	font-style: italic;
}

/* Profile */
.hrm-profile-view {
	display: flex;
	gap: 30px;
	margin-bottom: 30px;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 8px;
}

.hrm-profile-image img {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hrm-profile-placeholder {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	background: #0073aa;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	font-weight: bold;
	border: 4px solid #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hrm-profile-info h4 {
	margin-top: 0;
	font-size: 24px;
	color: #23282d;
}

.hrm-profile-info p {
	margin: 8px 0;
	color: #555;
}

.hrm-profile-edit {
	background: #fff;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 8px;
}

.hrm-profile-edit h4 {
	margin-top: 0;
}

/* Forms */
.hrm-input {
	width: 100%;
	max-width: 400px;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.hrm-input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 1px #0073aa;
}

.hrm-button {
	background: #0073aa;
	color: #fff;
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
}

.hrm-button:hover {
	background: #005a87;
}

/* Leave */
.hrm-leave-balance {
	background: #0073aa;
	color: #fff;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.hrm-leave-balance h4 {
	margin-top: 0;
	color: #fff;
}

.hrm-leave-balance p {
	color: #fff;
	margin: 10px 0;
}

.hrm-leave-request {
	background: #fff;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 8px;
	margin-bottom: 20px;
}

.hrm-leave-request h4 {
	margin-top: 0;
}

.hrm-leave-history h4 {
	margin-bottom: 15px;
}

/* Tables */
.hrm-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.hrm-table thead {
	background: #f5f5f5;
}

.hrm-table th {
	padding: 12px;
	text-align: left;
	border-bottom: 2px solid #ddd;
	font-weight: 600;
	color: #23282d;
}

.hrm-table td {
	padding: 12px;
	border-bottom: 1px solid #eee;
	color: #555;
}

.hrm-table tbody tr:hover {
	background: #f9f9f9;
}

/* Status badges */
.hrm-status-pending {
	background: #fff3cd;
	color: #856404;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

.hrm-status-approved {
	background: #d4edda;
	color: #155724;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

.hrm-status-denied {
	background: #f8d7da;
	color: #721c24;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

.hrm-status-received {
	background: #d1ecf1;
	color: #0c5460;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

.hrm-status-present {
	background: #d4edda;
	color: #155724;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

.hrm-status-absent {
	background: #f8d7da;
	color: #721c24;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

.hrm-status-late {
	background: #fff3cd;
	color: #856404;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

.hrm-status-completed,
.hrm-status-reviewed {
	background: #d4edda;
	color: #155724;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

.hrm-status-draft,
.hrm-status-assigned {
	background: #d1ecf1;
	color: #0c5460;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

/* Login/Error messages */
.hrm-portal-login,
.hrm-portal-error {
	padding: 20px;
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: 4px;
	color: #721c24;
	text-align: center;
}

.hrm-portal-login a {
	color: #0073aa;
	text-decoration: none;
	font-weight: 600;
}

.hrm-portal-login a:hover {
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
	.hrm-portal-wrapper {
		padding: 10px;
	}
	
	.hrm-portal-nav {
		flex-direction: column;
	}
	
	.hrm-portal-nav a {
		width: 100%;
		text-align: center;
	}
	
	.hrm-dashboard-cards {
		grid-template-columns: 1fr;
	}
	
	.hrm-profile-view {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	
	.hrm-table {
		font-size: 12px;
	}
	
	.hrm-table th,
	.hrm-table td {
		padding: 8px 4px;
	}
}

/* Job Board Styles */
.hrm-jobs-board {
	max-width: 1000px;
	margin: 20px auto;
	padding: 20px;
}

.hrm-jobs-board h2 {
	color: #23282d;
	margin-bottom: 30px;
	text-align: center;
}

.hrm-success-message {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
	text-align: center;
}

.hrm-success-message p {
	margin: 0;
	font-size: 16px;
}

.hrm-jobs-list {
	display: grid;
	gap: 20px;
}

.hrm-job-card {
	background: #fff;
	padding: 25px;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	transition: all 0.3s;
}

.hrm-job-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	border-color: #0073aa;
}

.hrm-job-card h3 {
	margin-top: 0;
	color: #0073aa;
	font-size: 22px;
}

.hrm-job-meta {
	color: #666;
	font-size: 14px;
	margin: 8px 0;
}

.hrm-job-description {
	margin: 15px 0;
	color: #555;
	line-height: 1.6;
}

.hrm-application-form {
	background: #fff;
	padding: 30px;
	border: 1px solid #ddd;
	border-radius: 8px;
	max-width: 600px;
	margin: 0 auto;
}

.hrm-application-form h3 {
	margin-top: 0;
	color: #23282d;
	margin-bottom: 20px;
}

.hrm-application-form label {
	display: block;
	margin-bottom: 5px;
	color: #23282d;
	font-weight: 600;
}

.hrm-application-form input[type="text"],
.hrm-application-form input[type="email"],
.hrm-application-form input[type="tel"],
.hrm-application-form input[type="file"] {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

.hrm-application-form input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 1px #0073aa;
}

.hrm-application-form p {
	margin-bottom: 15px;
}

.hrm-button-secondary {
	background: #f0f0f0;
	color: #555;
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	display: inline-block;
	margin-left: 10px;
}

.hrm-button-secondary:hover {
	background: #e0e0e0;
}

@media (max-width: 768px) {
	.hrm-jobs-board {
		padding: 10px;
	}
	
	.hrm-job-card,
	.hrm-application-form {
		padding: 15px;
	}
}

/* Certifications & Clearances */
.hrm-credentials {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
	margin: 20px 0;
}

.hrm-credentials h4 {
	margin-top: 0;
	color: #23282d;
}

.hrm-credential-section {
	margin-bottom: 20px;
}

.hrm-credential-section h5 {
	color: #0073aa;
	margin-bottom: 10px;
	font-size: 16px;
}

.hrm-credential-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.hrm-credential-list li {
	background: #fff;
	padding: 12px 15px;
	margin-bottom: 8px;
	border-radius: 4px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border: 1px solid #ddd;
}

.hrm-credential-name {
	flex: 1;
	color: #23282d;
	font-weight: 500;
}

.hrm-credential-list .hrm-button {
	margin-left: 15px;
	padding: 6px 12px;
	font-size: 13px;
}

/* Small buttons */
.hrm-button-small {
	padding: 5px 12px;
	font-size: 13px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	background: #0073aa;
	color: #fff;
	transition: background 0.3s;
}

.hrm-button-small:hover {
	background: #005a87;
}

.hrm-button-danger {
	background: #dc3545;
}

.hrm-button-danger:hover {
	background: #c82333;
}

.hrm-button-success {
	background: #28a745;
}

.hrm-button-success:hover {
	background: #218838;
}

/* Attendance actions */
.hrm-attendance-actions {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.hrm-attendance-actions form {
	margin: 0;
}

/* Upload sections */
.hrm-upload-section {
	background: #f8f9fa;
	border: 2px dashed #ddd;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 30px;
}

.hrm-upload-section h4 {
	margin-top: 0;
	color: #0073aa;
}

.hrm-upload-section form p {
	margin-bottom: 15px;
}

.hrm-upload-section label {
	display: block;
	font-weight: 600;
	margin-bottom: 5px;
	color: #333;
}

.hrm-upload-section small {
	display: block;
	color: #666;
	font-size: 12px;
	margin-top: 5px;
}


/* Profile Form Styling */
.hrm-profile-edit label {
	display: block;
	font-weight: 600;
	color: #23282d;
	margin-bottom: 5px;
	font-size: 14px;
}

.hrm-profile-edit small {
	display: block;
	color: #666;
	font-size: 12px;
	margin-top: 5px;
	font-style: italic;
}

.hrm-profile-edit p {
	margin-bottom: 20px;
}

.hrm-profile-edit h4 {
	color: #23282d;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #0073aa;
}


/* Leave Form Styling */
.hrm-leave-form label {
	display: block;
	font-weight: 600;
	color: #23282d;
	margin-bottom: 5px;
	font-size: 14px;
}

.hrm-leave-form input[type="date"],
.hrm-leave-form select,
.hrm-leave-form textarea {
	width: 100%;
	max-width: 400px;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	background-color: #fff;
	color: #23282d;
}

.hrm-leave-form input[type="date"]:focus,
.hrm-leave-form select:focus,
.hrm-leave-form textarea:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 1px #0073aa;
}

.hrm-leave-form p {
	margin-bottom: 20px;
}

/* Training Courses */
.hrm-training-courses {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.hrm-course-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	transition: transform 0.2s, box-shadow 0.2s;
}

.hrm-course-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.hrm-course-card h4 {
	margin-top: 0;
	color: #0073aa;
	font-size: 18px;
}

.hrm-course-card p {
	color: #666;
	font-size: 14px;
	line-height: 1.5;
	margin: 10px 0;
}

.hrm-course-meta {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	margin: 15px 0;
	font-size: 13px;
	color: #555;
}

.hrm-course-status {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	align-items: center;
	margin: 15px 0;
	padding: 10px 0;
	border-top: 1px solid #eee;
}

.hrm-course-actions {
	margin-top: 15px;
}

.hrm-button-primary {
	background: #0073aa !important;
	color: #fff !important;
	font-weight: 600;
}

.hrm-button-primary:hover {
	background: #005a87 !important;
}

/* Course Player */
.hrm-course-player {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
}

.hrm-course-header {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 2px solid #0073aa;
}

.hrm-course-header h3 {
	margin: 15px 0 10px 0;
	color: #23282d;
	font-size: 24px;
}

.hrm-course-completed {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 30px;
	text-align: center;
}

.hrm-course-completed h4 {
	margin-top: 0;
	color: #155724;
	font-size: 20px;
}

.hrm-course-video,
.hrm-course-materials,
.hrm-course-quiz {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 30px;
}

.hrm-course-video h4,
.hrm-course-materials h4,
.hrm-course-quiz h4 {
	margin-top: 0;
	color: #23282d;
}

.hrm-course-video video {
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Quiz */
.hrm-quiz-question {
	background: #fff;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 8px;
	margin-bottom: 20px;
}

.hrm-quiz-question h5 {
	margin-top: 0;
	color: #0073aa;
	font-size: 16px;
}

.hrm-quiz-question p {
	font-size: 15px;
	color: #23282d;
	margin: 10px 0 15px 0;
	line-height: 1.6;
}

.hrm-quiz-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hrm-quiz-options label {
	display: flex;
	align-items: center;
	padding: 12px;
	background: #f5f5f5;
	border: 2px solid #ddd;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
}

.hrm-quiz-options label:hover {
	background: #e8f4f8;
	border-color: #0073aa;
}

.hrm-quiz-options input[type="radio"] {
	margin-right: 10px;
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.hrm-quiz-options span {
	flex: 1;
	font-size: 14px;
	color: #23282d;
}

.hrm-status-in.progress {
	background: #fff3cd;
	color: #856404;
}

/* Forms Section */
.hrm-forms {
	background: #fff !important;
	padding: 20px;
	border-radius: 8px;
}

.hrm-forms h3 {
	margin-top: 0;
	color: #23282d !important;
	font-size: 24px;
	margin-bottom: 20px;
	font-weight: 700;
}

.hrm-forms h4 {
	color: #23282d !important;
	font-size: 18px;
	margin-bottom: 15px;
	font-weight: 600;
}

.hrm-forms p {
	color: #333 !important;
	line-height: 1.6;
	margin-bottom: 15px;
}

.hrm-forms label {
	display: block;
	color: #23282d;
	font-weight: 600;
	margin-bottom: 5px;
}

.hrm-forms .description,
.hrm-forms span.description {
	color: #666;
	font-size: 13px;
	font-style: italic;
	display: block;
	margin-top: 5px;
}

.hrm-forms-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.hrm-form-card {
	background: #ffffff !important;
	border: 2px solid #0073aa;
	border-radius: 8px;
	padding: 20px;
	transition: transform 0.2s, box-shadow 0.2s;
}

.hrm-form-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,115,170,0.3);
}

.hrm-form-card h4 {
	margin-top: 0;
	color: #0073aa !important;
	font-size: 18px;
	font-weight: 700;
}

.hrm-form-card p {
	color: #23282d !important;
	font-size: 14px;
	margin: 10px 0 15px 0;
	min-height: 40px;
	line-height: 1.6;
}

.hrm-form-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.hrm-success-message {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
	padding: 15px;
	border-radius: 6px;
	margin-bottom: 20px;
	font-weight: 600;
}

/* PDF Viewer Container */
.hrm-pdf-viewer-container {
	background: #f5f5f5;
	border: 2px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
}

.hrm-pdf-viewer-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 2px solid #0073aa;
}

.hrm-pdf-viewer-header h4 {
	margin: 0;
	color: #23282d;
}

.hrm-pdf-controls {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.hrm-pdf-viewer {
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	min-height: 600px;
	overflow: auto;
}

.hrm-pdf-canvas-wrapper {
	display: flex;
	justify-content: center;
	padding: 20px;
	background: #525659;
}

.hrm-pdf-page-info {
	text-align: center;
	padding: 10px;
	background: #fff;
	border-top: 1px solid #ddd;
	color: #555;
	font-size: 14px;
}

/* Signature Pad */
.hrm-signature-pad {
	border: 2px solid #0073aa;
	border-radius: 8px;
	background: #fff;
	margin: 15px 0;
	padding: 15px;
}

.hrm-signature-pad h5 {
	margin-top: 0;
	color: #23282d;
}

.hrm-signature-canvas {
	border: 2px dashed #ccc;
	border-radius: 4px;
	cursor: crosshair;
	display: block;
	margin: 10px 0;
	background: #fff;
}

.hrm-signature-actions {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

/* Training Course Player */
.hrm-course-player {
	background: #fff !important;
	padding: 20px;
	border-radius: 8px;
}

.hrm-course-header h3 {
	color: #23282d !important;
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 10px;
}

.hrm-course-header p {
	color: #555 !important;
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 20px;
}

.hrm-course-completed {
	background: #d4edda !important;
	border: 2px solid #28a745;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
}

.hrm-course-completed h4 {
	color: #155724 !important;
	font-size: 22px;
	margin-top: 0;
}

.hrm-course-completed p {
	color: #155724 !important;
	font-size: 16px;
	margin: 8px 0;
}

.hrm-course-video {
	background: #f9f9f9 !important;
	border: 2px solid #0073aa;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
}

.hrm-course-video h4 {
	color: #0073aa !important;
	font-size: 20px;
	margin-top: 0;
	margin-bottom: 15px;
}

.hrm-course-video video {
	border-radius: 4px;
	background: #000;
}

.hrm-course-materials {
	background: #fff3cd !important;
	border: 2px solid #ffc107;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
}

.hrm-course-materials h4 {
	color: #856404 !important;
	font-size: 20px;
	margin-top: 0;
	margin-bottom: 15px;
}

.hrm-course-quiz {
	background: #ffffff !important;
	border: 2px solid #17a2b8;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
}

.hrm-course-quiz h4 {
	color: #17a2b8 !important;
	font-size: 22px;
	margin-top: 0;
	margin-bottom: 10px;
}

.hrm-course-quiz > p {
	color: #333 !important;
	font-size: 16px;
	margin-bottom: 20px;
}

.hrm-quiz-question {
	background: #f8f9fa !important;
	border-left: 4px solid #17a2b8;
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 4px;
}

.hrm-quiz-question h5 {
	color: #23282d !important;
	font-size: 18px;
	font-weight: 600;
	margin-top: 0;
	margin-bottom: 10px;
}

.hrm-quiz-question p {
	color: #333 !important;
	font-size: 16px;
	font-weight: 500;
	margin-bottom: 15px;
	line-height: 1.5;
}

.hrm-quiz-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hrm-quiz-options label {
	display: flex;
	align-items: center;
	padding: 12px;
	background: #fff !important;
	border: 2px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s;
}

.hrm-quiz-options label:hover {
	border-color: #17a2b8;
	background: #e7f7f9 !important;
}

.hrm-quiz-options input[type="radio"] {
	margin-right: 10px;
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.hrm-quiz-options span {
	color: #333 !important;
	font-size: 15px;
	line-height: 1.4;
}

.hrm-quiz-options label:has(input:checked) {
	border-color: #17a2b8;
	background: #d1ecf1 !important;
}

.hrm-quiz-options label:has(input:checked) span {
	color: #0c5460 !important;
	font-weight: 600;
}

/* Official Government Form Styling */
.hrm-form-official {
	background: #ffffff;
	max-width: 850px;
	margin: 0 auto;
	padding: 40px;
	font-family: 'Times New Roman', Times, serif;
	color: #000;
	line-height: 1.4;
}

.hrm-form-official h1 {
	font-size: 48px;
	font-weight: bold;
	margin: 0;
	text-align: center;
}

.hrm-form-official h2 {
	font-size: 20px;
	margin: 5px 0;
	text-align: center;
	font-weight: normal;
}

.hrm-form-official .form-header {
	text-align: center;
	border-bottom: 3px solid #000;
	padding-bottom: 15px;
	margin-bottom: 30px;
}

.hrm-form-official .section-header {
	background: #f5f5f5;
	border-left: 5px solid #0073aa;
	padding: 12px 15px;
	margin: 25px 0 15px 0;
	font-size: 18px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.hrm-form-official .tip-box {
	background-color: #e7f3ff;
	border: 2px solid #0073aa;
	padding: 15px;
	margin: 20px 0;
	border-radius: 4px;
}

.hrm-form-official .tip-box p {
	margin: 0 0 10px 0;
	font-weight: bold;
}

.hrm-form-official .tip-box ul {
	margin: 0;
	padding-left: 20px;
}

.hrm-form-official .caution-box {
	background-color: #fff3cd;
	border-left: 4px solid #ffc107;
	padding: 12px 15px;
	margin: 15px 0;
}

.hrm-form-official .caution-box p {
	margin: 0;
}

.hrm-form-official .info-box {
	background-color: #f0f9ff;
	border-left: 4px solid #3b82f6;
	padding: 12px 15px;
	margin: 15px 0;
}

.hrm-form-official .legal-notice {
	background-color: #f9fafb;
	border: 1px solid #e5e7eb;
	padding: 15px;
	margin: 20px 0;
	font-size: 11px;
	color: #666;
}

.hrm-form-official .form-field {
	margin-bottom: 20px;
}

.hrm-form-official .form-field label {
	display: block;
	margin-bottom: 5px;
	font-weight: normal;
	font-size: 14px;
	color: #000;
}

.hrm-form-official .form-field label strong {
	font-weight: bold;
}

.hrm-form-official .form-field input[type="text"],
.hrm-form-official .form-field input[type="number"],
.hrm-form-official .form-field input[type="email"],
.hrm-form-official .form-field input[type="tel"],
.hrm-form-official .form-field input[type="date"],
.hrm-form-official .form-field select,
.hrm-form-official .form-field textarea {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #000;
	border-radius: 0;
	font-family: Arial, sans-serif;
	font-size: 14px;
	background: #fff;
}

.hrm-form-official .form-field input[type="checkbox"] {
	margin-right: 8px;
	width: 18px;
	height: 18px;
	vertical-align: middle;
}

.hrm-form-official .checkbox-label {
	display: inline;
	font-weight: normal;
	margin-left: 5px;
}

.hrm-form-official .field-letter {
	font-weight: bold;
	margin-right: 5px;
}

.hrm-form-official .calculation-field {
	background-color: #f9fafb;
	border: 2px solid #000;
	padding: 10px;
	margin: 10px 0;
}

.hrm-form-official .calculation-field input {
	background-color: #fff;
	border: 1px solid #000;
	padding: 8px;
	font-weight: bold;
	text-align: right;
}

.hrm-form-official .signature-line {
	border-bottom: 2px solid #000;
	min-height: 50px;
	margin: 20px 0;
}

.hrm-form-official .employer-section {
	background-color: #f5f5f5;
	padding: 20px;
	margin-top: 30px;
	border: 1px solid #ddd;
}

.hrm-form-official .form-number {
	font-size: 48px;
	font-weight: bold;
	text-align: center;
	margin: 10px 0;
}

.hrm-form-official .form-year {
	font-size: 32px;
	font-weight: bold;
	text-align: right;
}

.hrm-form-official .omb-number {
	text-align: right;
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 5px;
}

.hrm-form-official .form-instructions {
	text-align: center;
	margin: 10px 0;
	font-size: 14px;
}

.hrm-form-official .form-instructions strong {
	font-weight: bold;
}

.hrm-form-official .form-warning {
	text-align: center;
	font-style: italic;
	font-size: 12px;
	color: #666;
	margin: 5px 0;
}

.hrm-form-official .step-header {
	background: #f5f5f5;
	border-left: 5px solid #0073aa;
	padding: 12px 15px;
	margin: 25px 0 15px 0;
	font-size: 18px;
	font-weight: bold;
}

.hrm-form-official .step-content {
	margin-left: 20px;
	margin-bottom: 20px;
}

.hrm-form-official .display-content {
	margin: 15px 0;
	line-height: 1.6;
}

.hrm-form-official .display-content p {
	margin: 10px 0;
}

.hrm-form-official .display-content ul {
	margin: 10px 0;
	padding-left: 30px;
}

.hrm-form-official .display-content li {
	margin: 5px 0;
}

/* Make section headers stand out like official forms */
.hrm-form-field-section_header {
	background: #f5f5f5 !important;
	border-left: 5px solid #0073aa !important;
	padding: 12px 15px !important;
	margin: 25px 0 15px 0 !important;
	font-size: 18px !important;
	font-weight: bold !important;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Display fields for instructions and legal text */
.hrm-form-field-display {
	margin: 0;
	padding: 0;
	background: none !important;
	border: none !important;
	line-height: 1.6;
}

.hrm-form-field-display .display-content {
	margin: 0;
	padding: 0;
	background: none !important;
	border: none !important;
}

.hrm-form-field-display p {
	margin: 10px 0;
}

.hrm-form-field-display h4 {
	display: none; /* Hide the label for display fields since content has its own headers */
}

/* ============================================================
   OFFICIAL FORM VIEWER — wrapper, header, badge, buttons
   ============================================================ */

.hrm-official-form-wrapper {
	max-width: 900px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #111827 !important;
}

/* Force all text inside the form wrapper to be visible */
.hrm-official-form-wrapper *,
.hrm-custom-html-form *,
.hrm-custom-form * {
	color: inherit;
}

.hrm-official-form-wrapper p,
.hrm-official-form-wrapper li,
.hrm-official-form-wrapper label,
.hrm-official-form-wrapper span,
.hrm-official-form-wrapper td,
.hrm-official-form-wrapper th,
.hrm-official-form-wrapper h1,
.hrm-official-form-wrapper h2,
.hrm-official-form-wrapper h3,
.hrm-official-form-wrapper h4,
.hrm-official-form-wrapper h5,
.hrm-official-form-wrapper h6 {
	color: #111827 !important;
}

.hrm-form-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #1e3a5f;
	color: #ffffff !important;
	padding: 20px 25px;
	border-radius: 8px 8px 0 0;
	margin-bottom: 0;
}

.hrm-form-header h2 {
	margin: 0 0 4px 0;
	font-size: 20px;
	font-weight: 700;
	color: #ffffff !important;
}

.hrm-form-header p {
	margin: 0;
	font-size: 14px;
	color: #cbd5e1 !important;
	opacity: 0.9;
}

.hrm-form-badge {
	background: rgba(255,255,255,0.15);
	color: #ffffff !important;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	border: 1px solid rgba(255,255,255,0.3);
}

.hrm-form-notice {
	background: #fff3cd;
	border-left: 4px solid #f59e0b;
	padding: 14px 18px;
	margin: 0 0 20px 0;
	border-radius: 0 4px 4px 0;
	color: #92400e !important;
}

.hrm-form-notice * { color: #92400e !important; }

.hrm-form-instructions {
	background: #eff6ff;
	border-left: 4px solid #3b82f6;
	padding: 14px 18px;
	margin: 20px 0;
	border-radius: 0 4px 4px 0;
	color: #1e40af !important;
}

.hrm-form-instructions * { color: #1e40af !important; }

.hrm-form-instructions ol {
	margin: 8px 0 0 0;
	padding-left: 20px;
}

.hrm-form-instructions li {
	margin-bottom: 4px;
	color: #1e40af !important;
}

/* Custom HTML form body area */
.hrm-custom-html-form,
.hrm-custom-form {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 0 0 8px 8px;
	padding: 30px;
	color: #111827 !important;
}

.hrm-custom-html-form p,
.hrm-custom-html-form li,
.hrm-custom-html-form label,
.hrm-custom-html-form span,
.hrm-custom-html-form h1,
.hrm-custom-html-form h2,
.hrm-custom-html-form h3,
.hrm-custom-html-form h4,
.hrm-custom-html-form h5,
.hrm-custom-html-form h6,
.hrm-custom-form p,
.hrm-custom-form li,
.hrm-custom-form label,
.hrm-custom-form span,
.hrm-custom-form h1,
.hrm-custom-form h2,
.hrm-custom-form h3,
.hrm-custom-form h4,
.hrm-custom-form h5,
.hrm-custom-form h6 {
	color: #111827 !important;
}

/* Form fields inside custom HTML forms */
.hrm-custom-html-form input[type="text"],
.hrm-custom-html-form input[type="email"],
.hrm-custom-html-form input[type="tel"],
.hrm-custom-html-form input[type="date"],
.hrm-custom-html-form input[type="number"],
.hrm-custom-html-form select,
.hrm-custom-html-form textarea,
.hrm-custom-form input[type="text"],
.hrm-custom-form input[type="email"],
.hrm-custom-form input[type="tel"],
.hrm-custom-form input[type="date"],
.hrm-custom-form input[type="number"],
.hrm-custom-form select,
.hrm-custom-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	color: #111827 !important;
	background: #ffffff !important;
	box-sizing: border-box;
	margin-top: 4px;
}

.hrm-custom-html-form input:focus,
.hrm-custom-form input:focus,
.hrm-custom-html-form select:focus,
.hrm-custom-form select:focus,
.hrm-custom-html-form textarea:focus,
.hrm-custom-form textarea:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* Submit and cancel buttons */
.hrm-submit-btn {
	display: inline-block;
	background: #1e3a5f;
	color: #ffffff !important;
	padding: 12px 28px;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s;
}

.hrm-submit-btn:hover {
	background: #2d5282;
	color: #ffffff !important;
}

.hrm-cancel-btn {
	display: inline-block;
	background: #f3f4f6;
	color: #374151 !important;
	padding: 12px 24px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	margin-left: 12px;
	transition: background 0.2s;
}

.hrm-cancel-btn:hover {
	background: #e5e7eb;
	color: #111827 !important;
}

.hrm-form-submit-section {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}

/* Success message */
.hrm-form-success {
	display: none;
	background: #f0fdf4;
	border: 2px solid #16a34a;
	border-radius: 8px;
	padding: 30px;
	text-align: center;
	margin: 20px 0;
}

.hrm-form-success h3 {
	color: #15803d !important;
	font-size: 22px;
	margin: 0 0 10px 0;
}

.hrm-form-success p {
	color: #166534 !important;
	margin: 0 0 20px 0;
}

/* Error message */
.hrm-form-error {
	display: none;
	background: #fef2f2;
	border: 1px solid #fca5a5;
	border-radius: 6px;
	padding: 12px 16px;
	color: #dc2626 !important;
	margin-top: 15px;
	font-size: 14px;
}

/* ============================================================
   OVERLAY FORM — field alignment fix
   ============================================================ */

.hrm-form-image-container {
	position: relative;
	display: inline-block;
	width: 100%;
}

.hrm-form-bg-image {
	display: block;
	width: 100%;
	height: auto;
}

/* Overlay input fields — positioned absolutely relative to the image */
.hrm-overlay-field,
.hrm-overlay-checkbox-item,
.hrm-overlay-radio-item,
.hrm-overlay-signature-item {
	position: absolute;
	transform-origin: top left;
}

.hrm-overlay-field input[type="text"],
.hrm-overlay-field input[type="number"],
.hrm-overlay-field input[type="email"],
.hrm-overlay-field input[type="date"],
.hrm-overlay-field select,
.hrm-overlay-field textarea {
	background: rgba(219, 234, 254, 0.7) !important;
	border: 1px solid #3b82f6 !important;
	border-radius: 2px;
	font-size: 12px;
	padding: 1px 4px;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	color: #111827 !important;
}

.hrm-overlay-field input:focus,
.hrm-overlay-field select:focus,
.hrm-overlay-field textarea:focus {
	background: rgba(219, 234, 254, 0.95) !important;
	outline: none;
	border-color: #1d4ed8 !important;
}

/* Page navigation */
.hrm-page-nav {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	padding: 10px 16px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
}

.hrm-page-nav button {
	background: #1e3a5f;
	color: #ffffff;
	border: none;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
}

.hrm-page-nav button:disabled {
	background: #9ca3af;
	cursor: not-allowed;
}

#hrm-page-indicator {
	color: #374151 !important;
	font-size: 14px;
	font-weight: 500;
}

/* Forms library cards */
.hrm-forms-library {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	margin-bottom: 30px;
}

.hrm-form-card {
	display: block;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 20px;
	text-decoration: none;
	color: #111827 !important;
	transition: box-shadow 0.2s, border-color 0.2s;
	cursor: pointer;
}

.hrm-form-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	border-color: #3b82f6;
	color: #111827 !important;
	text-decoration: none;
}

.hrm-form-card h4 {
	margin: 10px 0 6px 0;
	font-size: 15px;
	font-weight: 600;
	color: #111827 !important;
}

.hrm-form-card p {
	margin: 0 0 12px 0;
	font-size: 13px;
	color: #6b7280 !important;
	line-height: 1.5;
}

.hrm-form-card-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.hrm-form-card-badge.federal { background: #dbeafe; color: #1d4ed8 !important; }
.hrm-form-card-badge.pennsylvania { background: #dcfce7; color: #15803d !important; }
.hrm-form-card-badge.pa-clearance { background: #fef3c7; color: #b45309 !important; }
.hrm-form-card-badge.osha { background: #fee2e2; color: #dc2626 !important; }
.hrm-form-card-badge.custom { background: #ede9fe; color: #7c3aed !important; }

.hrm-form-card-status {
	font-size: 12px;
	font-weight: 500;
	padding: 4px 0;
}

.hrm-form-card-status.not-submitted { color: #6b7280 !important; }
.hrm-form-card-status.pending { color: #d97706 !important; }
.hrm-form-card-status.submitted { color: #16a34a !important; }

.hrm-forms-category h3 {
	font-size: 16px;
	font-weight: 700;
	color: #374151 !important;
	margin: 24px 0 12px 0;
	padding-bottom: 8px;
	border-bottom: 2px solid #e5e7eb;
}
