/* BizBone HRMS - Frontend Portal Styles */

.bizbone-hrms-app,
.bizbone-hrms-app * {
	box-sizing: border-box;
}

/* Hard reset against theme CSS bleeding into the portal - many themes
   style bare a/button/ul/li/input elements globally with their own brand
   colors, which can make text or buttons invisible (e.g. matching the
   background). These resets, combined with color/background !important
   on the specific components below, keep the portal's own palette in
   control regardless of the site's theme. */
.bizbone-hrms-app a,
.bizbone-hrms-app a:link,
.bizbone-hrms-app a:visited,
.bizbone-hrms-app a:hover,
.bizbone-hrms-app a:active {
	text-decoration: none !important;
	background: none !important;
}
.bizbone-hrms-app ul,
.bizbone-hrms-app ol {
	list-style: none;
	margin: 0;
	padding: 0;
}
.bizbone-hrms-app button {
	font-family: inherit;
	line-height: normal;
	box-shadow: none;
	text-shadow: none;
}
.bizbone-hrms-app table {
	background: transparent !important;
}

.bizbone-hrms-app {
	--bb-primary: #2f6fed;
	--bb-primary-dark: #1e4fc4;
	--bb-bg: #f5f7fb;
	--bb-card: #ffffff;
	--bb-border: #e6e9f0;
	--bb-text: #1c2333;
	--bb-muted: #707a8c;
	--bb-ok: #1a9c5c;
	--bb-warn: #c98a1b;
	--bb-danger: #d64545;
	--bb-radius: 12px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--bb-text) !important;
	display: flex;
	min-height: 640px;
	background: var(--bb-bg) !important;
	border-radius: var(--bb-radius);
	overflow: hidden;
	border: 1px solid var(--bb-border) !important;
}

/* Sidebar */
.bizbone-hrms-sidebar {
	width: 230px;
	flex-shrink: 0;
	background: #161c2b !important;
	color: #cfd6e6 !important;
	display: flex;
	flex-direction: column;
	padding: 20px 14px;
}
.bizbone-hrms-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 10px 22px;
}
.bizbone-hrms-brand-mark {
	background: var(--bb-primary) !important;
	color: #fff !important;
	font-weight: 700;
	font-size: 13px;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bizbone-hrms-brand-text {
	font-weight: 700;
	font-size: 16px;
	color: #fff !important;
	letter-spacing: 0.3px;
}
.bizbone-hrms-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
}
.bizbone-hrms-nav-link {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	color: #aeb7cc !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.15s, color 0.15s;
}
.bizbone-hrms-nav-link:hover {
	background: #222b40 !important;
	color: #fff !important;
}
.bizbone-hrms-nav-link.is-active {
	background: var(--bb-primary) !important;
	color: #fff !important;
}
.bizbone-hrms-logout {
	margin-top: 14px;
	background: transparent !important;
	border: 1px solid #333f57 !important;
	color: #cfd6e6 !important;
	padding: 10px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	transition: background 0.15s;
}
.bizbone-hrms-logout:hover {
	background: #222b40 !important;
}

/* Main */
.bizbone-hrms-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.bizbone-hrms-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 28px;
	background: var(--bb-card) !important;
	border-bottom: 1px solid var(--bb-border) !important;
}
.bizbone-hrms-topbar-title {
	font-size: 19px;
	font-weight: 700;
}
.bizbone-hrms-topbar-user {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 500;
}
.bizbone-hrms-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--bb-primary) !important;
	color: #fff !important;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
}
.bizbone-hrms-role-pill {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	background: #eef2ff !important;
	color: var(--bb-primary-dark) !important;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}
.bizbone-hrms-content {
	flex: 1;
	padding: 28px;
	overflow-y: auto;
}

/* Grid & Cards */
.bizbone-hrms-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}
.bizbone-hrms-card {
	background: var(--bb-card) !important;
	border: 1px solid var(--bb-border) !important;
	border-radius: var(--bb-radius);
	padding: 22px;
}
.bizbone-hrms-card-wide {
	grid-column: 1 / -1;
}
.bizbone-hrms-card h3 {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
}
.bizbone-hrms-card-header-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
}

.bizbone-hrms-muted {
	color: var(--bb-muted) !important;
	font-size: 13px;
}
.bizbone-hrms-label {
	display: block;
	font-size: 12px;
	color: var(--bb-muted) !important;
	margin-bottom: 2px;
}
.bizbone-hrms-link {
	display: inline-block;
	margin-top: 10px;
	color: var(--bb-primary) !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
}

/* Attendance status row */
.bizbone-hrms-attendance-status {
	display: flex;
	gap: 30px;
	margin: 16px 0;
}
.bizbone-hrms-attendance-status strong {
	font-size: 18px;
}

/* Buttons */
.bizbone-hrms-btn {
	background: #fff !important;
	border: 1px solid var(--bb-border) !important;
	color: var(--bb-text) !important;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, opacity 0.15s;
}
.bizbone-hrms-btn:hover {
	background: #f1f3f8 !important;
}
.bizbone-hrms-btn.primary {
	background: var(--bb-primary) !important;
	border-color: var(--bb-primary) !important;
	color: #fff !important;
}
.bizbone-hrms-btn.primary:hover {
	background: var(--bb-primary-dark) !important;
}
.bizbone-hrms-btn.small {
	padding: 6px 10px;
	font-size: 12px;
}
.bizbone-hrms-btn.full {
	width: 100%;
}
.bizbone-hrms-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.bizbone-hrms-btn-row {
	display: flex;
	gap: 10px;
}

/* Forms */
.bizbone-hrms-app label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--bb-muted) !important;
	margin: 12px 0 5px;
}
.bizbone-hrms-app input[type="text"],
.bizbone-hrms-app input[type="email"],
.bizbone-hrms-app input[type="password"],
.bizbone-hrms-app input[type="date"],
.bizbone-hrms-app select,
.bizbone-hrms-app textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--bb-border) !important;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	background: #fff !important;
	color: var(--bb-text) !important;
}
.bizbone-hrms-app input:focus,
.bizbone-hrms-app select:focus,
.bizbone-hrms-app textarea:focus {
	outline: none;
	border-color: var(--bb-primary) !important;
	box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}
.bizbone-hrms-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

/* Tables */
.bizbone-hrms-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	margin-top: 8px;
}
.bizbone-hrms-table th {
	text-align: left;
	padding: 10px 8px;
	color: var(--bb-muted) !important;
	font-weight: 600;
	border-bottom: 1px solid var(--bb-border) !important;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.bizbone-hrms-table td {
	padding: 12px 8px;
	border-bottom: 1px solid var(--bb-border) !important;
}

/* Badges */
.bizbone-hrms-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	background: #eef1f7 !important;
	color: var(--bb-muted) !important;
}
.bizbone-hrms-badge.ok { background: #e6f7ee !important; color: var(--bb-ok) !important; }
.bizbone-hrms-badge.active { background: #fff3e0 !important; color: var(--bb-warn) !important; }
.bizbone-hrms-badge.absent { background: #fdeaea !important; color: var(--bb-danger) !important; }
.bizbone-hrms-badge.info { background: #e8f0fe !important; color: var(--bb-primary-dark) !important; }

/* Balance list */
.bizbone-hrms-balance-list {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}
.bizbone-hrms-balance-list li {
	display: flex;
	justify-content: space-between;
	padding: 9px 0;
	border-bottom: 1px solid var(--bb-border) !important;
	font-size: 13px;
}
.bizbone-hrms-balance-list li:last-child {
	border-bottom: none !important;
}

/* Announcements */
.bizbone-hrms-announcement {
	padding: 14px 0;
	border-bottom: 1px solid var(--bb-border) !important;
}
.bizbone-hrms-announcement:last-child {
	border-bottom: none !important;
}
.bizbone-hrms-announcement p {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--bb-text) !important;
}

/* Alerts / Toasts */
.bizbone-hrms-alert {
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
	margin-bottom: 14px;
}
.bizbone-hrms-alert.error {
	background: #fdeaea !important;
	color: var(--bb-danger) !important;
}
.bizbone-hrms-alert.success {
	background: #e6f7ee !important;
	color: var(--bb-ok) !important;
}
.bizbone-hrms-toast {
	position: sticky;
	top: 0;
	z-index: 5;
	padding: 10px 16px;
	border-radius: 8px;
	background: #1c2333 !important;
	color: #fff !important;
	font-size: 13px;
	margin-bottom: 16px;
}
.bizbone-hrms-toast.error {
	background: var(--bb-danger) !important;
}

/* Auth screens */
.bizbone-hrms-auth-screen {
	min-height: 640px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #1c2333 0%, #2f6fed 140%) !important;
	border-radius: var(--bb-radius);
	padding: 40px 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.bizbone-hrms-auth-card {
	background: #fff !important;
	border-radius: 16px;
	padding: 36px;
	max-width: 380px;
	width: 100%;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.bizbone-hrms-auth-card h2 {
	margin: 0 0 6px;
	font-size: 20px;
}
.bizbone-hrms-lock-icon {
	font-size: 36px;
	margin-bottom: 10px;
}

/* Modal */
.bizbone-hrms-modal {
	position: fixed;
	inset: 0;
	background: rgba(15, 20, 32, 0.55) !important;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 20px;
}
.bizbone-hrms-modal-inner {
	background: #fff !important;
	border-radius: 14px;
	padding: 28px;
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Quick-add (Department / Designation) */
.bizbone-hrms-select-row {
	display: flex;
	gap: 8px;
	align-items: center;
}
.bizbone-hrms-select-row select {
	flex: 1;
}
.bizbone-hrms-quickadd-btn {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	border: 1px solid var(--bb-border) !important;
	background: #f6f7fb !important;
	color: var(--bb-primary) !important;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: background 0.15s;
}
.bizbone-hrms-quickadd-btn:hover {
	background: #eef2ff !important;
}
.bizbone-hrms-quickadd-panel {
	display: flex;
	gap: 6px;
	margin-top: 8px;
	padding: 10px;
	background: #f9fafc;
	border: 1px dashed var(--bb-border);
	border-radius: 8px;
	align-items: center;
}
.bizbone-hrms-quickadd-panel .bizbone-hrms-quickadd-input {
	flex: 1;
	margin: 0 !important;
	padding: 8px 10px !important;
	font-size: 13px !important;
}

/* Profile header (Employee Detail page) */
.bizbone-hrms-profile-header {
	background: linear-gradient(135deg, #f9fafc 0%, #eef2ff 100%) !important;
	border: 1px solid var(--bb-border) !important;
	border-radius: var(--bb-radius);
	padding: 24px;
}
.bizbone-hrms-profile-photo {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #fff !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.bizbone-hrms-profile-avatar-lg {
	width: 76px;
	height: 76px;
	font-size: 24px;
	border: 3px solid #fff !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.bizbone-hrms-photo-upload-label {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	color: var(--bb-primary) !important;
	cursor: pointer;
	margin-top: 6px;
}

/* Timeline */
.bizbone-hrms-timeline-item {
	display: flex;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--bb-border);
}
.bizbone-hrms-timeline-item:last-child {
	border-bottom: none;
}
.bizbone-hrms-timeline-icon {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #eef2ff !important;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
}
.bizbone-hrms-timeline-body {
	flex: 1;
	min-width: 0;
}
.bizbone-hrms-timeline-title {
	font-weight: 600;
	font-size: 13px;
}
.bizbone-hrms-timeline-date {
	font-size: 12px;
	color: var(--bb-muted) !important;
}
.bizbone-hrms-timeline-desc {
	font-size: 13px;
	margin: 4px 0 0;
	color: var(--bb-text) !important;
}

/* Resignation card */
.bizbone-hrms-card.danger-zone {
	border-color: #f3d3d3 !important;
	background: #fffafa !important;
}


@media (max-width: 780px) {
	.bizbone-hrms-app {
		flex-direction: column;
	}
	.bizbone-hrms-sidebar {
		width: 100%;
		flex-direction: row;
		align-items: center;
		overflow-x: auto;
	}
	.bizbone-hrms-nav {
		flex-direction: row;
	}
	.bizbone-hrms-logout {
		margin: 0 0 0 10px;
		white-space: nowrap;
	}
	.bizbone-hrms-form-row {
		grid-template-columns: 1fr;
	}
}
