@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
	--primary-color: #4361ee;
	--primary-hover: #3a56d4;
	--sidebar-bg: #ffffff;
	--sidebar-width: 280px;
	--content-bg: #f8f9fa;
	--header-height: 60px;
	--border-color: #e9ecef;
}

body {
	font-family: 'Poppins', sans-serif !important;
	background-color: var(--content-bg);
	overflow: hidden;
}

/* Layout */
.app-container {
	width: 100%;
	height: 100vh;
}

.sidebar {
	position: fixed;
	width: var(--sidebar-width) !important;
	height: 100vh;
	background-color: var(--sidebar-bg);
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
	z-index: 1000;
	overflow-y: auto;
}

.content {
	margin-left: var(--sidebar-width);
	width: calc(100% - var(--sidebar-width));
	height: 100vh;
	overflow-y: auto;
	background-color: var(--content-bg);
	padding: 0;
}

.login-content {
	margin-left: 0 !important;
	width: 100% !important;
}

/* Sidebar components */
.brand-container {
	padding: 1rem 0;
}

.brand-logo {
	border-radius: 12px;
}

.brand-name {
	color: var(--primary-color);
	display: block;
}

.avatar-circle {
	width: 40px;
	height: 40px;
	color: white;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	text-transform: uppercase;
}


.nav-header {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--text-secondary);
	margin: 1.5rem 0 0.75rem 0.5rem;
	letter-spacing: 0.5px;
}

.nav-link {
	color: var(--text-primary) !important;
	display: flex;
	align-items: center;
	padding: 10px 12px;
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	border-radius: 10px;
	margin-bottom: 6px;
	position: relative;
}

.nav-link:hover {
	color: var(--primary-color) !important;
	background-color: rgba(67, 97, 238, 0.05);
}

.nav-link:focus,
.nav-link.active {
	background-color: rgba(67, 97, 238, 0.1);
	color: var(--primary-color) !important;
	font-weight: 600;
}

.material-icons {
	margin-right: 10px;
	font-size: 20px;
}

.chevron {
	margin-right: 0;
	transition: transform 0.3s ease;
	font-size: 18px;
}

.footer-section {
	padding: 1rem 0;
	border-top: 3px solid var(--border-color);
	margin-top: 1rem;
}

.btn-logout {
	color: #de1d2f;
	display: flex;
	align-items: center;
	padding: 6px;
	font-size: 16px;
	border-radius: 8px;
	font-weight: 500;
}

.btn-logout:hover {
	background-color: rgba(67, 97, 238, 0.05);
	color: #b02a37;
}

.btn-logout .material-icons {
	margin-right: 8px;
	font-size: 18px;
}

/* Content area */
.top-navbar {
	height: var(--header-height);
	background-color: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	padding: 0 1.5rem;
}

.sidebar-toggler {
	display: none;
	background: none;
	border: none;
	padding: 0.5rem;
	color: var(--text-primary);
}

.page-title {
	color: var(--text-primary);
}

.content-wrapper {
	padding: 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
	.sidebar {
		transform: translateX(-100%);
	}

	.content {
		margin-left: 0;
		width: 100%;
	}

	.sidebar-toggler {
		display: block;
	}

	.sidebar.show {
		transform: translateX(0);
	}
}

/* Table styles */
td a {
	text-decoration: none;
	color: var(--primary-color);
}

td a:hover {
	text-decoration: underline;
}

.cursor-pointer {
	cursor: pointer;
	user-select: none;
}

/* customer file upload */
.custom-file-upload {
	position: relative;
}

.custom-file-upload input[type=file] {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
	height: 100%;
	z-index: 10;
}

.file-upload-label {
	display: block;
	border: 2px dashed #ced4da;
	padding: 10px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s;
}

.file-upload-label:hover {
	border-color: #007bff;
}


@keyframes rowPulse {
	0% {
		background-color: #e8f5e9;
		/* Light green */
	}

	50% {
		background-color: #c8e6c9;
		/* Softer green */
	}

	100% {
		background-color: #e8f5e9;
		/* Light green */
	}
}

.animate-validation td {
	animation: rowPulse 3s ease-in-out infinite alternate;
}
