:root {
	/* Adjusted theme to match theme */
	--sidebar-bg: #115577; /* TEAL */
	--sidebar-text: #A7F3D0;
	--sidebar-active: #46b3db; /* Emerald TEAL */
	--sidebar-hover: #0d68ad;
	--bg-color: #F3F4F6;
	--text-main: #1F2937;
	--text-light: #6B7280;
	--card-bg: #FFFFFF;
	--accent-blue: #D1FAE5;
	--accent-gold: #F59E0B;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif; 
}

body {
display: flex;
height: 100vh;
background-color: var(--bg-color);
overflow: hidden;
color: var(--text-main);
}

/* --- SIDEBAR --- */
.sidebar {
width: 280px;
background-color: var(--sidebar-bg);
color: white;
display: flex;
flex-direction: column;
box-shadow: 2px 0 10px rgba(0,0,0,0.1);
z-index: 20;
transition: transform 0.3s ease;
}

.sidebar-top {
flex: 1;
overflow-y: auto;
}

.brand {
padding: 30px 20px;
border-bottom: 1px solid rgba(255,255,255,0.1);
display: flex;
align-items: center;
gap: 15px;
}

.brand-logo {
width: 48px;
height: 48px;
border-radius: 4px;
object-fit: cover;
background-color: transparent;
padding: 2px;
}

.brand h1 {
font-size: 24px;
color: #FFFFFF;
font-weight: 700;
margin-bottom: 2px;
}

.brand h1 span { color: var(--sidebar-active); }

.brand p {
font-size: 11px;
color: var(--sidebar-text);
text-transform: uppercase;
font-weight: 500;
letter-spacing: 0.5px;
}

.nav-menu {
list-style: none;
margin-top: 20px;
}

.nav-item {
padding: 16px 25px;
cursor: pointer;
color: var(--sidebar-text);
font-weight: 500;
transition: all 0.3s ease;
display: flex;
align-items: center;
}

.nav-item:hover { background-color: var(--sidebar-hover); color: white; }
.nav-item.active { background-color: var(--sidebar-hover); color: white; border-left: 4px solid var(--sidebar-active); }

.sidebar-footer {
padding: 20px;
text-align: center;
font-size: 12px;
color: var(--sidebar-text);
border-top: 1px solid rgba(255,255,255,0.1);
background-color: rgba(0,0,0,0.15);
line-height: 1.6;
}

/* --- MOBILE HEADER & OVERLAY --- */
.mobile-header {
display: none;
align-items: center;
justify-content: space-between;
padding: 15px 20px;
background: var(--card-bg);
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
z-index: 10;
}

.mobile-header-brand {
display: flex;
align-items: center;
gap: 10px;
}
.mobile-header-brand h1 {
font-size: 20px;
color: var(--sidebar-bg);
font-weight: 700;
}
.mobile-header-brand h1 span { color: var(--sidebar-active); }

.menu-btn {
background: none;
border: none;
cursor: pointer;
padding: 5px;
}
.menu-btn svg {
width: 28px;
height: 28px;
fill: var(--sidebar-bg);
}

.sidebar-overlay {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0,0,0,0.5);
z-index: 15;
display: none;
opacity: 0;
transition: opacity 0.3s ease;
}

/* --- MAIN CONTENT --- */
.main-wrapper {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}

.main-content {
flex: 1;
overflow-y: auto;
padding: 40px;
}

.content-section {
display: none;
animation: fadeIn 0.4s ease-in-out;
}

.content-section.active { display: block; }

@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}

.sub-heading {
font-size: 13px;
text-transform: uppercase;
letter-spacing: 1.5px;
color: var(--accent-gold);
font-weight: 600;
display: block;
margin-bottom: 5px;
}

.section-header h2 {
font-size: 32px;
color: var(--sidebar-bg);
margin-bottom: 40px;
font-weight: 700;
}

/* --- DASHBOARD CHARTS --- */
.dashboard-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 25px;
}

.chart-card {
background: var(--card-bg);
padding: 25px;
border-radius: 12px;
box-shadow: 0 4px 15px rgba(0,0,0,0.03);
border: 1px solid rgba(0,0,0,0.04);
width: 100%;
}

.chart-card.full-width { grid-column: 1 / -1; }
.chart-card h3 {
margin-bottom: 20px;
font-size: 15px;
color: var(--text-light);
text-align: center;
font-weight: 600;
}

.chart-container {
position: relative;
height: 280px; 
width: 100%;
}

/* --- EMPLOYEE GRID --- */
.employee-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 25px;
}

.employee-card {
background: #FFFFFF;
border-radius: 16px;
overflow: hidden;
border: 1px solid rgba(0,0,0,0.05);
box-shadow: 0 4px 15px rgba(0,0,0,0.04);
cursor: pointer;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.employee-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.thumbnail-wrapper { position: relative; height: 200px; width: 100%; }
.thumbnail-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.badge {
position: absolute;
padding: 5px 12px;
border-radius: 20px;
font-size: 11px;
font-weight: 600;
color: white;
z-index: 2;
}
.status-badge { top: 15px; left: 15px; }
.notif-badge {
top: 15px; right: 15px; background-color: #EF4444; width: 25px; height: 25px;
display: flex; align-items: center; justify-content: center; border-radius: 50%; padding: 0;
}

.card-info { padding: 20px; }
.card-info h3 { font-size: 18px; font-weight: 600; margin-bottom: 5px; color: var(--sidebar-bg); }
.card-info p { color: var(--text-light); font-size: 13px; }

.mini-info-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px dashed #E5E7EB;
}
.mini-info-card {
background: #F9FAFB; padding: 8px; border-radius: 8px; border: 1px solid #F3F4F6; text-align: center;
}
.mini-info-card span { display: block; font-size: 9px; color: #9CA3AF; text-transform: uppercase; margin-bottom: 4px; }
.mini-info-card strong { display: block; font-size: 13px; font-weight: 600; color: var(--sidebar-bg); }

/* --- MODAL --- */
.modal-overlay {
position: fixed; top: 0; left: 0; right: 0; bottom: 0;
background: rgba(15, 23, 42, 0.7); display: none; justify-content: center; align-items: center;
z-index: 100; opacity: 0; transition: opacity 0.3s ease; padding: 20px;
}
.modal-overlay.show { display: flex; opacity: 1; }
.modal-content {
background: var(--card-bg); width: 100%; max-width: 500px; border-radius: 16px; padding: 40px 30px;
text-align: center; position: relative; transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
max-height: 90vh; overflow-y: auto;
}
.modal-overlay.show .modal-content { transform: scale(1); }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: var(--text-light); border: none; background: none; }
.close-btn:hover { color: #EF4444; }
.modal-content img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 15px auto; border: 4px solid var(--accent-blue); }
.modal-caption { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--sidebar-active); font-weight: 600; margin-bottom: 10px; }

/* --- LOGIN FORM --- */
.login-container {
max-width: 400px; margin: 40px auto 0; background: var(--card-bg); padding: 40px 30px; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--text-main); text-align: left; }
.form-group input { width: 100%; padding: 12px 15px; border: 1px solid #E5E7EB; border-radius: 8px; outline: none; font-family: 'Poppins', sans-serif; }
.form-group input:focus { border-color: var(--sidebar-active); }
.btn-group { display: flex; gap: 15px; margin-top: 30px; }
.btn { flex: 1; padding: 12px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; font-family: 'Poppins', sans-serif; }
.btn-primary { background-color: var(--sidebar-active); color: white; }
.btn-secondary { background-color: #E5E7EB; color: var(--text-main); }


/* =========================================================
RESPONSIVE MEDIA QUERIES (MOBILE FIXES)
========================================================= */
@media (max-width: 992px) {
.employee-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
body { flex-direction: column; }

/* Sidebar becomes a sliding drawer */
.sidebar {
	position: fixed;
	top: 0; left: 0; bottom: 0;
	transform: translateX(-100%); /* Hidden by default */
}
.sidebar.open { transform: translateX(0); } /* Shown via JS */

/* Mobile Header visible */
.mobile-header { display: flex; }

/* Content adjustments */
.main-content { padding: 25px 20px; }
.section-header h2 { font-size: 26px; margin-bottom: 25px; }

/* Grids turn to 1 column */
.dashboard-grid, .employee-grid { grid-template-columns: 1fr; }
.chart-card.full-width { grid-column: auto; }
.chart-container { height: 250px; }

.modal-content { padding: 30px 20px; }
}
a {
  font-size: 14px;
  color: #ffffff;
  font-weight: 100;
  line-height: 25px;
}
a:hover { color: cyan; text-decoration: none}
.lnkfooter       {  font-size: 13px; color: #2C5C94; text-decoration: none; font-weight: normal}
.lnkfooter:hover {  font-size: 13px; color: #BC8F8F; text-decoration: none; font-weight: normal}