/* WP Smart Attendance Pro - shared styles */

/* ---------- Admin ---------- */
.wasp-wrap .wasp-cards {
	display: flex;
	gap: 16px;
	margin: 20px 0;
	flex-wrap: wrap;
}
.wasp-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-left: 4px solid #2271b1;
	border-radius: 4px;
	padding: 16px 20px;
	min-width: 160px;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
.wasp-card-green { border-left-color: #00a32a; }
.wasp-card-red { border-left-color: #d63638; }
.wasp-card-label { display: block; font-size: 12px; color: #646970; text-transform: uppercase; }
.wasp-card-value { display: block; font-size: 28px; font-weight: 600; margin-top: 4px; }

.wasp-panel {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 20px;
	margin: 16px 0;
	max-width: 700px;
}

.wasp-badge { padding: 2px 10px; border-radius: 10px; font-size: 12px; }
.wasp-badge-active { background: #edfaef; color: #00a32a; }
.wasp-badge-inactive { background: #fcedee; color: #d63638; }

.wasp-filter-form { margin: 16px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wasp-absent-list { columns: 3; }

/* ---------- Frontend (staff dashboard) ---------- */
.wasp-container {
	max-width: 480px;
	margin: 40px auto;
	padding: 0 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Bengali", Arial, sans-serif;
}
.wasp-card-box {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,.08);
	padding: 28px 24px;
}
.wasp-title { margin: 0 0 4px; font-size: 20px; }
.wasp-subtitle { margin: 0 0 16px; color: #666; font-size: 14px; }

.wasp-dash-header { display: flex; justify-content: space-between; align-items: flex-start; }

.wasp-message {
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 14px;
}
.wasp-message.success { background: #eafaf0; color: #157347; }
.wasp-message.error { background: #fdecea; color: #b02a37; }

.wasp-form .wasp-field { margin-bottom: 14px; }
.wasp-form label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.wasp-form input[type="text"],
.wasp-form input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
}

.wasp-btn {
	display: inline-block;
	border: none;
	border-radius: 6px;
	padding: 12px 18px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
}
.wasp-btn-primary { background: #2271b1; color: #fff; width: 100%; }
.wasp-btn-success { background: #00a32a; color: #fff; }
.wasp-btn-danger { background: #d63638; color: #fff; }
.wasp-btn-secondary { background: #f0f0f1; color: #1d2327; }
.wasp-btn-link { background: none; color: #d63638; padding: 6px 8px; }

.wasp-action-buttons { display: flex; gap: 10px; margin: 18px 0; }
.wasp-action-buttons .wasp-btn { flex: 1; }

.wasp-timer-box {
	display: flex;
	justify-content: space-between;
	background: #f6f7f7;
	border-radius: 8px;
	padding: 14px;
	margin: 16px 0;
}
.wasp-timer-item { text-align: center; flex: 1; }
.wasp-timer-label { display: block; font-size: 12px; color: #666; }
.wasp-timer-value { display: block; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wasp-timer-overtime .wasp-timer-value { color: #d63638; }
.wasp-timer-caption { font-size: 12px; color: #888; text-align: center; margin: -8px 0 12px; }

.wasp-photo-box { text-align: center; margin: 14px 0; }
#wasp-camera, #wasp-photo-preview { width: 100%; max-width: 280px; border-radius: 8px; margin-bottom: 8px; }

.wasp-history-title { margin-top: 24px; font-size: 15px; }
#wasp-history-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
#wasp-history-table th, #wasp-history-table td { border-bottom: 1px solid #eee; padding: 6px 4px; text-align: left; }
