/**
 * Employer Dashboard Styles
 *
 * @package Together_Job_Board
 * @since 1.0.0
 */

/* Dashboard Wrapper with Sidebar */
.tjb-employer-dashboard-wrapper {
	display: flex !important;
	gap: 30px;
	max-width: 1200px !important;
	margin: 0 auto !important;
	padding: 30px 20px;
	min-height: calc(100vh - 200px);
	width: 100% !important;
	box-sizing: border-box;
}

/* Sidebar Styles */
.tjb-employer-sidebar {
	width: 280px;
	flex-shrink: 0;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	padding: 0;
	height: fit-content;
	position: sticky;
	top: 100px;
}

.tjb-sidebar-header {
	padding: 30px 20px;
	border-bottom: 1px solid #f0f0f0;
	text-align: center;
}

.tjb-sidebar-avatar-wrapper {
	margin-bottom: 15px;
	display: flex;
	justify-content: center;
}

.tjb-sidebar-avatar-wrapper .employer-sidebar-avatar,
.tjb-sidebar-avatar-wrapper .employer-sidebar-avatar img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
}

.tjb-sidebar-avatar-wrapper .employer-sidebar-avatar-initials {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: #447AB3;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	font-weight: 700;
}

.tjb-sidebar-user-info {
	margin-bottom: 20px;
}

.tjb-sidebar-user-name {
	font-size: 1.125rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 5px;
}

.tjb-sidebar-user-location {
	font-size: 0.875rem;
	color: #666;
	margin: 0;
}

.tjb-sidebar-profile-buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 15px;
}

.tjb-sidebar-edit-profile-btn,
.tjb-sidebar-view-profile-btn {
	display: inline-block;
	padding: 10px 24px;
	text-decoration: none;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	transition: all 0.3s ease;
	text-align: center;
	width: 100%;
	box-sizing: border-box;
}

.tjb-sidebar-edit-profile-btn {
	background: #447AB3;
	color: #fff !important;
	border: none;
}

.tjb-sidebar-edit-profile-btn:hover {
	background: #3a6a9a;
	color: #fff !important;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(61, 78, 243, 0.3);
}

.tjb-sidebar-view-profile-btn {
	background: #fff;
	color: #447AB3;
	border: 2px solid #3d4ef3;
}

.tjb-sidebar-view-profile-btn:hover {
	background: #447AB3;
	color: #fff !important;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(61, 78, 243, 0.3);
}

.tjb-sidebar-menu {
	padding: 10px 0;
}

.tjb-sidebar-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tjb-sidebar-menu-item {
	margin: 0;
}

.tjb-sidebar-menu-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	color: #666;
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 500;
	transition: all 0.2s ease;
	border-left: 3px solid transparent;
}

.tjb-sidebar-menu-link:hover {
	background: #f8f9fa;
	color: #447AB3;
	text-decoration: none;
}

.tjb-sidebar-menu-item.active .tjb-sidebar-menu-link {
	background: #447AB3;
	color: #fff;
	border-left-color: #447AB3;
	font-weight: 600;
}

.tjb-sidebar-menu-item.active .tjb-sidebar-icon {
	color: #fff;
}

.tjb-sidebar-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: currentColor;
}

.tjb-sidebar-menu-link span {
	flex: 1;
}

/* Main Dashboard Content */
.tjb-employer-dashboard {
	flex: 1;
	min-width: 0;
	padding: 0;
	width: 100%;
}

/* Profile edit page specific styles within dashboard */
.tjb-employer-dashboard .tjb-employer-profile-edit {
	padding: 0;
	width: 100%;
}

.tjb-dashboard-title {
	color: #0066cc;
	font-size: 2em;
	margin-bottom: 30px;
}

.tjb-section-title {
	color: #333;
	font-size: 1.5em;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #e0e0e0;
}

/* Statistics Section */
.tjb-statistics-section {
	margin-bottom: 40px;
}

.tjb-stat-card {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tjb-stat-icon {
	width: 60px;
	height: 60px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.tjb-stat-icon-blue {
	background: rgba(61, 78, 243, 0.1);
	color: #447AB3;
}

.tjb-stat-icon-red {
	background: rgba(220, 53, 69, 0.1);
	color: #dc3545;
}

.tjb-stat-icon-yellow {
	background: rgba(255, 193, 7, 0.1);
	color: #ffc107;
}

.tjb-stat-icon-green {
	background: rgba(40, 167, 69, 0.1);
	color: #97C354;
}

.tjb-stat-content {
	flex: 1;
}

.tjb-stat-number {
	font-size: 28px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.2;
	margin-bottom: 5px;
}

.tjb-stat-label {
	font-size: 14px;
	color: #666;
	font-weight: 500;
}

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

.tjb-stat-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 15px;
	transition: all 0.3s ease;
}

.tjb-stat-card-link {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.tjb-stat-card-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	text-decoration: none;
	color: inherit;
}

.tjb-stat-card-link.tjb-has-notifications {
	border: 2px solid #dc3545;
	background: linear-gradient(to right, #fff, #fff5f5);
}

.tjb-stat-icon {
	position: relative;
}

.tjb-stat-badge {
	position: absolute;
	top: -8px;
	right: -8px;
	background: #dc3545;
	color: #fff;
	border-radius: 12px;
	padding: 3px 8px;
	font-size: 11px;
	font-weight: 600;
	min-width: 20px;
	text-align: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tjb-stat-card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.tjb-stat-icon {
	font-size: 2.5em;
	color: #0066cc;
}

.tjb-stat-content {
	flex: 1;
}

.tjb-stat-number {
	font-size: 2em;
	font-weight: bold;
	color: #333;
	line-height: 1;
	margin-bottom: 5px;
}

.tjb-stat-label {
	color: #666;
	font-size: 0.9em;
}

/* Page Views Section */
.tjb-page-views-section {
	margin-bottom: 40px;
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

.tjb-page-views-controls {
	display: flex;
	gap: 20px;
	margin-bottom: 25px;
	flex-wrap: wrap;
}

.tjb-page-views-control-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tjb-page-views-control-group label {
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

.tjb-select {
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	min-width: 200px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.3s ease;
}

.tjb-select:focus {
	outline: none;
	border-color: #447AB3;
	box-shadow: 0 0 0 2px rgba(61, 78, 243, 0.1);
}

.tjb-page-views-chart {
	height: 300px;
	position: relative;
}

/* Notifications Section */
.tjb-notifications-section {
	margin-bottom: 40px;
}

.tjb-notifications-list {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
}

.tjb-notification-item {
	display: flex;
	gap: 15px;
	padding: 15px 0;
	border-bottom: 1px solid #f0f0f0;
}

.tjb-notification-item:last-child {
	border-bottom: none;
}

.tjb-notification-icon {
	color: #97C354;
	flex-shrink: 0;
	margin-top: 2px;
}

.tjb-notification-content {
	flex: 1;
}

.tjb-notification-content p {
	margin: 0 0 5px 0;
	color: #333;
}

.tjb-notification-date {
	color: #999;
	font-size: 0.875rem;
}

/* Recent Applicants Section */
.tjb-recent-applicants-section {
	margin-bottom: 40px;
}

.tjb-recent-applicants-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.tjb-recent-applicant-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	transition: all 0.3s ease;
}

.tjb-recent-applicant-card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	border-color: #447AB3;
}

.tjb-applicant-info {
	flex: 1;
}

.tjb-applicant-name {
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 10px;
}

.tjb-applicant-meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tjb-applicant-status {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	width: fit-content;
}

.tjb-status-pending {
	background: #fff3cd;
	color: #856404;
}

.tjb-status-approved {
	background: #d4edda;
	color: #155724;
}

.tjb-status-rejected {
	background: #f8d7da;
	color: #721c24;
}

.tjb-applicant-job {
	font-size: 14px;
	color: #666;
	font-weight: 500;
}

.tjb-applicant-date {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #999;
}

.tjb-applicant-date svg {
	flex-shrink: 0;
}

.tjb-applicant-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.tjb-applicant-action-btn {
	width: 36px;
	height: 36px;
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	color: #666;
	text-decoration: none;
}

.tjb-applicant-action-btn:hover {
	background: #f8f9fa;
	border-color: #447AB3;
	color: #447AB3;
	text-decoration: none;
}

.tjb-applicant-action-btn svg {
	width: 18px;
	height: 18px;
}

.tjb-approve-applicant:hover {
	background: #d4edda;
	border-color: #97C354;
	color: #155724;
}

.tjb-remove-applicant:hover {
	background: #f8d7da;
	border-color: #dc3545;
	color: #721c24;
}

/* Candidate Dashboard Wrapper with Sidebar */
.tjb-candidate-dashboard-wrapper {
	display: flex !important;
	gap: 30px;
	max-width: 1200px !important;
	margin: 0 auto !important;
	padding: 30px 20px;
	min-height: calc(100vh - 200px);
	width: 100% !important;
	box-sizing: border-box;
}

/* Candidate Sidebar Styles */
.tjb-candidate-sidebar {
	width: 280px;
	flex-shrink: 0;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	padding: 0;
	height: fit-content;
	position: sticky;
	top: 100px;
}

.tjb-candidate-sidebar .tjb-sidebar-header {
	padding: 30px 20px;
	border-bottom: 1px solid #f0f0f0;
	text-align: center;
}

.tjb-candidate-sidebar .tjb-sidebar-avatar-wrapper .candidate-sidebar-avatar,
.tjb-candidate-sidebar .tjb-sidebar-avatar-wrapper .candidate-sidebar-avatar img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
}

.tjb-candidate-sidebar .tjb-sidebar-avatar-wrapper .candidate-sidebar-avatar-initials {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: #447AB3;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	font-weight: 700;
}

/* Main Candidate Dashboard Content */
.tjb-candidate-dashboard-wrapper .tjb-candidate-dashboard {
	flex: 1;
	min-width: 0;
	padding: 0;
	width: 100%;
}

/* Candidate Quick Actions */
.tjb-quick-actions-section {
	margin-bottom: 40px;
}

.tjb-quick-actions-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 15px;
}

.tjb-quick-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 20px 15px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	text-decoration: none;
	color: #333;
	transition: all 0.3s ease;
	text-align: center;
}

.tjb-quick-action:hover {
	background: #447AB3;
	color: #fff;
	border-color: #447AB3;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(61, 78, 243, 0.3);
	text-decoration: none;
}

.tjb-quick-action .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
}

.tjb-quick-action span {
	font-size: 0.875rem;
	font-weight: 500;
}

/* Application Status Badges */
.tjb-status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
}

.tjb-status-pending {
	background: #fff3e0;
	color: #e65100;
}

.tjb-status-approved {
	background: #e8f5e9;
	color: #2e7d32;
}

.tjb-status-rejected {
	background: #ffebee;
	color: #c62828;
}

/* Recent Applications Section */
.tjb-recent-applications-section {
	margin-bottom: 40px;
}

.tjb-applications-list {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
}

.tjb-application-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	border-bottom: 1px solid #f0f0f0;
}

.tjb-application-item:last-child {
	border-bottom: none;
}

.tjb-application-job h4 {
	margin: 0 0 5px 0;
	font-size: 1rem;
}

.tjb-application-job h4 a {
	color: #333;
	text-decoration: none;
}

.tjb-application-job h4 a:hover {
	color: #447AB3;
}

.tjb-application-date {
	color: #999;
	font-size: 0.875rem;
}

.tjb-section-footer {
	text-align: center;
	margin-top: 20px;
}

.tjb-button {
	display: inline-block;
	padding: 10px 24px;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
}

.tjb-button-secondary {
	background: #f8f9fa;
	color: #333;
	border: 1px solid #e0e0e0;
}

.tjb-button-secondary:hover {
	background: #447AB3;
	color: #fff;
	border-color: #447AB3;
	text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 1200px) {
	.tjb-employer-dashboard-wrapper,
	.tjb-candidate-dashboard-wrapper {
		max-width: 100%;
		padding: 20px 15px;
	}
}

@media (max-width: 1024px) {
	.tjb-employer-dashboard-wrapper,
	.tjb-candidate-dashboard-wrapper {
		flex-direction: column;
		gap: 20px;
	}
	
	.tjb-employer-sidebar,
	.tjb-candidate-sidebar {
		width: 100%;
		position: static;
	}
	
	.tjb-sidebar-menu-list {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: 0;
	}
	
	.tjb-sidebar-menu-item {
		border-bottom: 1px solid #f0f0f0;
	}
	
	.tjb-sidebar-menu-link {
		border-left: none;
		border-bottom: 3px solid transparent;
	}
	
	.tjb-sidebar-menu-item.active .tjb-sidebar-menu-link {
		border-left: none;
		border-bottom-color: #3d4ef3;
	}
}

@media (max-width: 768px) {
	.tjb-employer-dashboard-wrapper,
	.tjb-candidate-dashboard-wrapper {
		padding: 15px 10px;
	}
	
	.tjb-statistics-grid {
		grid-template-columns: 1fr;
	}
	
	.tjb-quick-actions-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.tjb-statistics-grid {
		grid-template-columns: 1fr;
	}

	.tjb-page-views-controls {
		flex-direction: column;
	}
	
	.tjb-select {
		width: 100%;
	}
	
	.tjb-sidebar-menu-list {
		grid-template-columns: 1fr;
	}
	
	.tjb-sidebar-header {
		padding: 20px 15px;
	}
	
	.tjb-application-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}

