.smarthr-board-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #333;
	max-width: 100%;
}

.smarthr-dashboard-header {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.smarthr-card {
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.smarthr-card h4 {
	margin: 0 0 10px 0;
	font-size: 14px;
	color: #666;
	font-weight: 500;
}

.smarthr-stat {
	font-size: 28px;
	font-weight: 700;
	color: #111;
}

.smarthr-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 20px;
	background: #fdfdfd;
	padding: 15px;
	border-radius: 8px;
	border: 1px solid #eaeaea;
}

.smarthr-filters {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.smarthr-filters input,
.smarthr-filters select {
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	outline: none;
}

.smarthr-filters input:focus,
.smarthr-filters select:focus {
	border-color: #007bff;
}

.smarthr-btn {
	padding: 8px 16px;
	border: none;
	border-radius: 6px;
	background: #eee;
	color: #333;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.2s;
}

.smarthr-btn:hover {
	background: #ddd;
}

.smarthr-btn-primary {
	background: #007bff;
	color: #fff;
}

.smarthr-btn-primary:hover {
	background: #0056b3;
}

.smarthr-btn-sm {
	padding: 4px 10px;
	font-size: 12px;
}

.smarthr-table-container {
	overflow-x: auto;
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 8px;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.smarthr-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.smarthr-table th,
.smarthr-table td {
	padding: 15px;
	border-bottom: 1px solid #eaeaea;
	vertical-align: middle;
}

.smarthr-table th {
	background: #fafafa;
	font-weight: 600;
	font-size: 14px;
	color: #555;
}

.smarthr-user-meta {
	display: flex;
	align-items: center;
	gap: 12px;
}

.smarthr-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	background: #eee;
}

.smarthr-badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}

.smarthr-badge-role {
	background: #e3f2fd;
	color: #1976d2;
}

.smarthr-badge-dept {
	background: #f3e5f5;
	color: #7b1fa2;
}

.smarthr-progress {
	width: 100%;
	height: 6px;
	background: #e0e0e0;
	border-radius: 4px;
	margin-bottom: 4px;
	overflow: hidden;
}

.smarthr-progress-bar {
	height: 100%;
	background: #4caf50;
	transition: width 0.3s ease;
}

.smarthr-pagination {
	margin-top: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
}

/* Modal */
.smarthr-modal {
	display: none;
	position: fixed;
	z-index: 99999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.5);
}

.smarthr-modal-content {
	background-color: #fefefe;
	margin: 10% auto;
	padding: 30px;
	border: 1px solid #888;
	width: 90%;
	max-width: 600px;
	border-radius: 10px;
}

.smarthr-close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
}

.smarthr-close:hover {
	color: #000;
}

#smarthr-csv-input {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	margin-bottom: 15px;
	font-family: monospace;
}

.smarthr-loading {
	text-align: center;
	color: #888;
	padding: 30px !important;
}

.smarthr-skeleton {
	display: block;
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: skeletonLoading 1.5s infinite;
	border-radius: 4px;
}

.smarthr-skeleton-text {
	height: 20px;
	width: 60px;
}

@keyframes skeletonLoading {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}
