:root {
	--primary-main: #01ccff;
	--primary-dark: #02b4df;
	--secondary-main: #01ccff;
	--secondary-active-btn: #8056f7;
	--info-main: #08afc6;
	--success-main: #02b781;
	--warning-main: #ffc531;
	--error-main: #ec2f46;
	--background-main: #e4ebf6;
	--text-primary: #1c1d24;
	--text-secondary: #7e8799;
	--text-disabled: #999fa8;
	--font-primary: "Inter", sans-serif;
}

#popup-buttons {
	display: flex;
	justify-content: right;
}

#popup-buttons button {
	width: auto;
}

#bulk-actions {
}

#login-message,
#otp-message {
	margin-top: 20px;
	font-size: 14.5px;
	text-align: center;
}

header {
	display: flex;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 80px;
	line-height: 60px;
	justify-content: space-between;
	align-items: center; /* Ensure vertical alignment */
	padding: 50px;
	box-sizing: border-box; /* Ensure padding doesn't affect width */
}

#main-body {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	width: 100%;
}

header img {
	width: 200px;
	height: auto;
	max-width: none;
}

.solid {
	background-color: rgb(0, 0, 0);
	border-color: black;
	z-index: 100;
	border-bottom: 1px solid #000000;
}

body {
	background: url("../images/mps-background.jpeg") no-repeat center center fixed;
	background-size: cover;
	position: relative;
	font-family: var(--font-primary);
	color: var(--text-primary);
	margin: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100vh;
	width: 100vw;
}

body::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.75);
	z-index: -1;
}

.container {
	background: white;
	padding: 30px;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	width: 350px;
	margin: auto;
	height: 100%;
	/* margin-top: 200px; */
}

img {
	max-width: 150px;
}

.input-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

button#send-otp,
button#verify-otp {
	margin-top: 15px;
	width: calc(100% - 20px);
}

.row-button {
	width: 120px;
	padding: 10px 16px;
	background-color: #ffffff;
	border-color: var(--primary-main);
	border-style: solid;
	border-width: 1px;
	color: var(--primary-main);
}

.row-button:hover {
	background-color: #e1edff;
	border-color: var(--primary-dark);
	color: var(--primary-dark);
}

button {
	width: auto;
	height: auto;
	padding: 10px 16px;
	border-radius: 5px;
	font-size: 0.925rem;
	box-sizing: border-box;
	background-color: var(--primary-main);
	color: rgb(0, 0, 0);
	border: none;
	cursor: pointer;
	font-weight: bold;
}

input {
	width: calc(100% - 20px);
	padding: 12px;
	margin: 5px 0;
	border-radius: 5px;
	font-size: 16px;
	box-sizing: border-box;
}

button.loading {
	cursor: wait;
	opacity: 0.6;
	background-color: #d6d6d6 !important;
	color: #888 !important;
	border-color: #ccc !important;
}

#heading-button-container {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
}

input {
	border: 1px solid var(--text-disabled);
}

button:hover {
	background-color: var(--primary-dark);
}

table {
	width: 100%;
	border-collapse: collapse;
	border-radius: 10px;
	background: white;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

thead {
	background: var(--primary-main);
	color: black;
	border-radius: 5px;
}

th,
td {
	padding: 12px 16px;
	text-align: left;
	border-bottom: 1px solid var(--background-main);
}

tr:nth-child(even) {
	background: var(--background-main);
}

.hidden {
	display: none !important;
}

#login-microfrontend {
	height: auto;
	max-height: 450;
	overflow-y: auto;
	overflow-x: hidden;
}

#timesheet-microfrontend {
	width: 100%;
	height: calc(100% - 150px);
	margin: auto;
	overflow-y: auto;
	background: white;
	padding: 50px;
	padding-top: 100px;
}

.table-container {
	border-radius: 5px;
	overflow: hidden;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.mui-checkbox {
	width: 14px;
	height: 14px;
	border-radius: 2px;
	border: 1px solid var(--text-secondary);
}

.mui-checkbox:checked {
	background-color: var(--primary-main);
	border-color: var(--primary-main);
}

.mui-checkbox:checked::after {
	left: 3px;
	top: 1px;
	width: 4px;
	height: 8px;
}

.mui-checkbox:hover {
	border-color: var(--primary-dark);
}

.button-group {
	height: 40px;
	width: auto;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 8px;
	margin-bottom: 10px;
}

#approve-all,
#reject-all {
	width: auto;
	min-width: 130px;
	padding: 10px 16px;
}

button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	background-color: #d6d6d6 !important;
	color: #888 !important;
	border-color: #ccc !important;
}

#accordion-container {
	width: 100%;
}

.accordion-item {
	border-bottom: 1px solid var(--background-main);
	border-radius: 8px;
	margin-bottom: 10px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.accordion-table-header {
	background: rgb(236, 240, 244);
}

.accordion-header {
	background: rgb(226, 226, 226);
	color: black;
	padding: 15px;
	cursor: pointer;
	font-size: 16px;
	border: none;
	outline: none;
	display: flex;
	justify-content: left;
	align-items: center;
	font-weight: bold;
}

.accordion-header:hover {
	background: rgb(219, 219, 219);
}

.accordion-content {
	display: none;
	padding: 15px;
	background: white;
	border-top: 1px solid var(--background-main);
}

.active {
	display: block;
}

.select-all-container {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 50px;
	width: 50px;
}

#select-all {
	width: 50%;
	height: 50%;
}

.comment-submit,
.comment-cancel {
	width: 120px;
	padding: 10px 16px;
	min-width: 64px;
}

.comment-row {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: center; /* Ensures vertical alignment */
}

.comment-warning {
	color: red;
}

.comment-input {
	flex: 1;
}

#no-timesheets {
	color: rgb(144, 151, 166);
	display: flex;
	flex-direction: column;
	justify-content: center; /* Centers horizontally */
	align-items: center; /* Centers vertically */
	height: calc(100% - 100px);
}

/* #no-timesheets img {
    filter: invert(66%) sepia(91%) saturate(200%) hue-rotate(60deg);
} */

#overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dim effect */
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 999;
}

#popup {
	display: flex;
	flex-direction: column;
	background-color: white;
	font-size: 16px;
	padding: 7px 20px 10px 20px;
	border-radius: 15px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
	text-align: left;
	min-width: 300px;
	position: relative;
}

#popup.success {
	border: 2px solid green;
	color: green;
}

#popup.error {
	border: 2px solid red;
	color: red;
}

#popupMessage {
	margin-top: 0;
	margin-bottom: 30px;
}

/* Account Menu */
#account-menu {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	padding: 8px 12px;
	border-radius: 5px;
}

#email-link {
	background: none;
	border: none;
	color: rgb(255, 255, 255);
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	text-decoration: none;
}

#email-link:hover {
	color: rgb(179, 179, 179);
}

#account-dropdown-icon {
	width: 14px;
	height: 14px;
	transition: transform 0.3s ease;
}

/* Rotate the dropdown icon when active */
#account-menu.active #account-dropdown-icon {
	transform: rotate(180deg);
}

/* Logout Button */
#logout-button {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 120px;
	height: 40px;
	padding: 0px 5px;
	position: absolute;
	top: 100%;
	right: 0;
	background: rgb(240, 240, 240);
	border-radius: 5px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	white-space: nowrap;
	font-size: 14px;
	font-weight: bold;
	color: var(--text-primary);
}

#logout-button:hover {
	background: var(--background-main);
}

.pill {
	background-color: #000000;
	border-radius: 50px;
	width: auto;
	height: auto;
	padding: 5px 7px;
	font-size: 12px;
	color: rgb(255, 255, 255);
	font-weight: normal;
	margin-left: 17px;
}

.accordion-down-icon {
	width: 14px;
	height: 14px;
	transition: transform 0.3s ease;
}

.accordion-content:active .accordion-down-icon {
	transform: rotate(180deg);
}

#bulk-approve-comment-input {
	padding: 10px;
	font-family: var(--font-primary);
	font-size: 14px;
	height: 100px;
	margin-bottom: 20px;
	border-radius: 10px;
	outline: none;
}

.tooltip {
	position: relative;
	display: inline-block;
	border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

.tooltip .tooltiptext {
	visibility: hidden;
	width: 120px;
	background-color: black;
	color: #fff;
	text-align: center;
	padding: 5px 0;
	border-radius: 6px;

	/* Position the tooltip text - see examples below! */
	position: absolute;
	z-index: 1;
}

.tooltip:hover .tooltiptext {
	visibility: visible;
}

#search-bar {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
	border-radius: 50px;
	height: 20px;
	padding: 10px;
	border: 1.5px solid #000000; /* This shorthand is more common */
	background-color: transparent; /* Ensures the background doesn't hide the border */
}

#search-bar img {
	margin-right: 8px; /* Adds some space between the icon and the input field */
	width: 20px;
	height: 20px;
}

#search-bar input {
	padding-left: 10px; /* Optional, to give some space on the left side of the input */
	border-width: 0px;
	height: 100%;
}

#search-bar input:focus {
	outline: none;
}

#search[data-disabled="true"] {
	opacity: 0.5;
	pointer-events: none;
}

#loading-screen {
	position: fixed;
	width: 100%;
	height: 100%;
	background: #ffffff;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

.loader {
	border: 6px solid #f3f3f3;
	border-top: 6px solid #3498db;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: spin 1s linear infinite;
}

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