
.employee-stats-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.stats-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 30px;
	padding: 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.08);
	align-items: center;
	border-left: 4px solid #2271b1;
}

.stats-filters select, 
.stats-filters input {
	width: fit-content;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	min-width: 180px;
	background-color: #f9f9f9;
	transition: all 0.2s ease;
}

.stats-filters select:focus,
.stats-filters input:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

.stats-filters .button {
	padding: 10px 20px;
	background: #2271b1;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
	transition: background 0.2s ease;
}

.stats-filters .button:hover {
	background: #135e96;
}

#custom-date-range {
	display: flex;
	gap: 15px;
	align-items: center;
	padding: 10px;
	/* background: #f0f7ff; */
	border-radius: 6px;
}

#custom-date-range label {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	color: #555;
}

.employee-card {
	background: white;
	border-radius: 8px;
	box-shadow: 0 3px 12px rgba(0,0,0,0.08);
	margin-bottom: 25px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border: 1px solid #eee;
}

.employee-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.employee-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 24px;
	background: linear-gradient(to right, #f0f7ff, #f8fbff);
	border-bottom: 1px solid #e0e0e0;
}

.employee-name {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
	color: #1d2327;
}

.total-count, .running-count {
	font-size: 16px;
	font-weight: 600;
	color: #2271b1;
	background: rgba(34, 113, 177, 0.1);
	padding: 6px 12px;
	border-radius: 20px;
}

.employee-details {
	padding: 5px 24px 20px;
}

.form-breakdown {
	margin-top: 15px;
}

.form-item {
	display: flex;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
	position: relative;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.form-item:hover {
	background-color: #f9f9f9;
}

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

.form-name {
	font-weight: 500;
	color: #3c434a;
}

.form-count {
	color: #555;
	font-weight: 500;
}

.toggle-status {
	font-size: 12px;
	color: #2271b1;
	text-decoration: underline;
	margin-left: 10px;
	cursor: pointer;
	/* opacity: 0; */
	/* transition: opacity 0.2s ease; */
}

/* .form-item:hover .toggle-status {
	opacity: 1;
} */

/* Status Breakdown Styles */
.status-breakdown-container {
	margin-top: 15px;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 6px;
	border: 1px solid #eee;
	position: relative;
}

.status-breakdown-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.status-breakdown-header h4 {
	margin: 0;
	color: #2271b1;
	font-size: 16px;
}

.close-status {
	font-size: 24px;
	color: #999;
	cursor: pointer;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.2s ease;
}

.close-status:hover {
	background-color: #eee;
	color: #555;
}

/* Status tabs */
.status-tabs {
	display: flex;
	border-bottom: 1px solid #ddd;
	margin-bottom: 15px;
}

.status-tab {
	padding: 8px 15px;
	cursor: pointer;
	margin-right: 5px;
	border-radius: 4px 4px 0 0;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
	border: 1px solid transparent;
	border-bottom: none;
	position: relative;
	top: 1px;
}

.status-tab:hover {
	background-color: #f0f0f0;
}

.status-tab.active {
	background-color: #fff;
	border-color: #ddd;
	border-bottom-color: #fff;
}

.status-tab.visa-tab {
	color: #2271b1;
}

.status-tab.esta-tab {
	color: #46b450;
}

.status-tab.visa-tab.active {
	color: #2271b1;
	border-top-color: #2271b1;
}

.status-tab.esta-tab.active {
	color: #46b450;
	border-top-color: #46b450;
}

/* Status content */
.status-content {
	display: none;
}

.status-content.active {
	display: block;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.status-section {
	margin-bottom: 20px;
}

.status-section h5 {
	margin: 0 0 10px 0;
	font-size: 14px;
	color: #555;
	font-weight: 600;
	padding-bottom: 5px;
	border-bottom: 1px solid #eee;
}

.status-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
}

.status-item {
	background: white;
	padding: 10px;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-left: 3px solid #2271b1;
	transition: transform 0.2s ease;
}

.status-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.visa-status .status-item {
	border-left-color: #2271b1;
}

.esta-status .status-item {
	border-left-color: #46b450;
}

.status-label {
	font-size: 13px;
	color: #555;
	font-weight: 500;
}

.status-count {
	font-size: 15px;
	font-weight: 600;
	color: #2271b1;
	background: rgba(34, 113, 177, 0.1);
	padding: 3px 8px;
	border-radius: 12px;
}

.esta-status .status-count {
	color: #46b450;
	background: rgba(70, 180, 80, 0.1);
}

.loading-spinner {
	border: 4px solid rgba(34, 113, 177, 0.1);
	border-top: 4px solid #2271b1;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 30px auto;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

#loading-stats {
	text-align: center;
	padding: 20px;
}

#loading-stats p {
	color: #555;
	margin-top: 10px;
	font-size: 15px;
}

.no-stats {
	padding: 30px;
	text-align: center;
	background: #f9f9f9;
	border-radius: 8px;
	margin-top: 20px;
	color: #555;
	font-size: 15px;
	border: 1px dashed #ddd;
}

.stats-summary {
	margin-top: 40px;
	padding: 25px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 3px 12px rgba(0,0,0,0.08);
	border-top: 4px solid #2271b1;
}

.summary-title {
	font-weight: 600;
	margin-bottom: 20px;
	font-size: 18px;
	color: #1d2327;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

.summary-item {
	background: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	border: 1px solid #f0f0f0;
	transition: transform 0.2s ease;
}

.summary-item:hover {
	transform: translateY(-3px);
}

.summary-label {
	font-size: 14px;
	color: #555;
	margin-bottom: 8px;
}

.summary-value {
	font-size: 28px;
	font-weight: 700;
	color: #2271b1;
}

.error {
	background: #f8d7da;
	color: #842029;
	padding: 15px;
	border-radius: 5px;
	margin-bottom: 20px;
	border-left: 4px solid #842029;
}

/* Animation for card visibility */
.employee-card {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.employee-card.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Button loading state */
.button.loading {
	position: relative;
	color: transparent !important;
}

.button.loading:after {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	top: 50%;
	left: 50%;
	margin-top: -8px;
	margin-left: -8px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: white;
	animation: spin 0.8s linear infinite;
}
