:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #1E5128;
    --text-secondary: #475569;
    --accent-1: #22c55e; 
    --accent-2: #16a34a; 
    --accent-3: #fcd34d; 
    --accent-admin: #1E5128;
    --nav-icon-on-dark: #8BE58A;
    --nav-icon-on-active: #ffffff;
    --nav-icon-on-light: #1E5128;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(30, 81, 40, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: var(--bg-primary);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Green top bar — full width, title left / welcome right */
header,
header.ati-app-header {
    background: #1E5128 !important;
    border-bottom: none !important;
    padding: 0.85rem 1.5rem !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1020 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important;
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
}

header span {
    color: rgba(255, 255, 255, 0.9) !important;
}

header nav,
header.ati-app-header nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
}

header .logo,
header.ati-app-header .logo {
    margin-right: auto !important;
    margin-left: 0 !important;
}

header .logo span,
header.ati-app-header .logo span {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.65) !important;
    font-weight: 400 !important;
}

header .header-actions,
header .header-actions .nav-links,
header .nav-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    gap: 0.75rem;
}

header .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

header .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

header .btn-admin {
    background: #ffffff;
    color: var(--accent-admin);
}

header .btn-admin:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-outline {
    border: 1px solid var(--accent-admin);
    color: var(--accent-admin);
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent-admin);
    color: #ffffff;
}

.btn-primary {
    background: var(--accent-1);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-admin);
    box-shadow: 0 0 15px rgba(30, 81, 40, 0.2);
}

.btn-admin {
    background: var(--accent-admin);
    color: white;
}

.btn-admin:hover {
    box-shadow: 0 0 15px rgba(30, 81, 40, 0.3);
    transform: translateY(-2px);
}

/* Main Layout */
.hero {
    text-align: center;
    padding: 5rem 2rem 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-admin);
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Modules Grid */
.modules-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.module-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.module-card:hover {
    transform: translateY(-10px);
    border-color: rgba(30, 81, 40, 0.3);
    box-shadow: 0 10px 30px rgba(30, 81, 40, 0.1);
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-admin);
}

.card-hris::before,
.card-accounting::before,
.card-supply::before { background: var(--accent-admin); }

.module-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-2);
}
.module-icon .nav-icon {
    color: var(--accent-2);
}
.module-icon .nav-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.module-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-admin);
}

.module-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.module-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.module-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-features li::before {
    content: '✓';
    color: var(--accent-1);
    font-weight: bold;
}

.card-btn {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* Authentication */
.auth-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    margin: 4rem auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--accent-admin);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-1);
    background: rgba(0, 0, 0, 0.05);
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 0.8rem;
    font-size: 1.1rem;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    flex-grow: 1;
    background:
        radial-gradient(ellipse 70% 55% at 0% 0%, rgba(93, 214, 44, 0.22), transparent 52%),
        radial-gradient(ellipse 55% 45% at 8% 100%, rgba(51, 116, 24, 0.16), transparent 48%),
        #F8F8F8;
}

/* Green sidebar theme — all panels */
.sidebar,
.sidebar.app-sidebar,
.sidebar.hris-sidebar,
#sidebar {
    width: 260px;
    background: #1E5128 !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-right: 1px solid rgba(93, 214, 44, 0.55) !important;
    padding: 0 !important;
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: inset -1px 0 0 rgba(93, 214, 44, 0.45), 8px 0 28px rgba(0, 0, 0, 0.28);
}

.sidebar-brand,
.hris-sidebar-brand {
    padding: 1.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(248, 248, 248, 0.14);
    background: linear-gradient(180deg, rgba(248, 248, 248, 0.1) 0%, transparent 100%);
    box-shadow: inset 0 1px 0 rgba(248, 248, 248, 0.18);
}

.sidebar-brand h2,
.hris-sidebar-brand h2 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.35rem;
}

.sidebar-brand p,
.hris-sidebar-brand p {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.sidebar .brand h5,
.sidebar .brand p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.sidebar-nav,
.hris-sidebar-nav,
#sidebar ul.components {
    list-style: none;
    padding: 1rem 0.75rem;
    flex: 1;
    margin: 0;
}

.sidebar-nav > li,
.hris-sidebar-nav > li,
#sidebar ul.components > li {
    margin-bottom: 0.15rem;
}

.sidebar-nav > li.sidebar-section-label {
    margin: 0.85rem 0 0.2rem;
    padding: 0.35rem 0.85rem 0.2rem;
    list-style: none;
    pointer-events: none;
}

.sidebar-nav > li.sidebar-section-label:first-child {
    margin-top: 0.15rem;
}

.sidebar-nav > li.sidebar-section-label span {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.sidebar-nav li a,
.hris-sidebar-nav > li > a,
.hris-sidebar-submenu a,
.admin-sidebar .sidebar-nav > li > a,
.admin-sidebar .admin-nav-group summary,
#sidebar ul li a,
.nav-links .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    color: rgba(255, 255, 255, 0.88) !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    border: 1px solid transparent;
    box-shadow: inset 3px 0 0 transparent;
    transition: background 0.32s ease, color 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
    border-right: none !important;
}

.sidebar-nav li a .nav-icon,
.hris-sidebar-nav .nav-icon,
.admin-sidebar .nav-icon,
.btn-back-admin .nav-icon {
    width: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    line-height: 1;
    color: var(--nav-icon-on-dark);
}
.sidebar-nav li a .nav-icon svg,
.hris-sidebar-nav .nav-icon svg,
.admin-sidebar .nav-icon svg,
.btn-back-admin .nav-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: none;
    stroke: var(--nav-icon-on-dark);
    stroke-width: 2.05;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.32s ease;
}
.sidebar-nav li a:hover .nav-icon svg,
.sidebar-nav li a.active .nav-icon svg,
.hris-sidebar-nav a:hover .nav-icon svg,
.hris-sidebar-nav a.active .nav-icon svg,
.hris-sidebar-nav a.open .nav-icon svg,
.admin-sidebar a:hover .nav-icon svg,
.admin-sidebar a.active .nav-icon svg,
.admin-sidebar summary:hover .nav-icon svg,
.admin-sidebar details[open] > summary .nav-icon svg,
.btn-back-admin:hover .nav-icon svg {
    stroke: var(--nav-icon-on-active);
}
.dashboard-header h1 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--nav-icon-on-light);
}
.dashboard-header h1 .nav-icon {
    color: var(--accent-2);
}
.dashboard-header h1 .nav-icon svg {
    width: 26px;
    height: 26px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active,
.hris-sidebar-nav > li > a:hover,
.hris-sidebar-nav > li > a.active,
#sidebar ul li a:hover,
#sidebar ul li.active > a,
.nav-links .nav-item:hover,
.nav-links .nav-item.active {
    background: rgba(93, 214, 44, 0.55) !important;
    color: #F8F8F8 !important;
    box-shadow: inset 3px 0 0 #5DD62C, inset 0 1px 0 rgba(248, 248, 248, 0.2);
    border: 1px solid rgba(93, 214, 44, 0.7);
    transform: none;
}

.sidebar-nav > li > a.nav-group-toggle,
.hris-sidebar-nav > li > a.nav-group-toggle {
    justify-content: space-between;
}

.sidebar-nav > li > a.nav-group-toggle .nav-group-label,
.hris-sidebar-nav > li > a.nav-group-toggle .nav-group-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-nav > li > a.nav-group-toggle .chevron,
.hris-sidebar-nav > li > a.nav-group-toggle .chevron {
    font-size: 0.75rem;
    opacity: 0.75;
    transition: transform 0.2s ease;
}

.sidebar-nav > li > a.nav-group-toggle.open .chevron,
.hris-sidebar-nav > li > a.nav-group-toggle.open .chevron {
    transform: rotate(180deg);
}

.admin-sidebar,
.hris-sidebar {
    overflow-y: auto;
}

.admin-sidebar {
    background: #1E5128 !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-right: 1px solid rgba(142, 214, 79, 0.55) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        12px 0 36px rgba(0, 0, 0, 0.22);
}

.hris-sidebar {
    background: #1E5128 !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-right: 1px solid rgba(142, 214, 79, 0.55) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        12px 0 36px rgba(0, 0, 0, 0.22);
}

.admin-sidebar .sidebar-brand h2,
.hris-sidebar .sidebar-brand h2 {
    font-size: 0.88rem;
}

.admin-sidebar .sidebar-brand p,
.hris-sidebar .sidebar-brand p {
    font-size: 1.2rem;
}

.admin-sidebar,
.admin-sidebar .sidebar-nav,
.admin-sidebar .admin-nav-group details {
    color: #ffffff;
}

.admin-sidebar .sidebar-nav > li > a,
.hris-sidebar .hris-sidebar-nav > li > a {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(27, 67, 24, 0.4);
    border-radius: 10px;
    font-size: 1.08rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #ffffff !important;
}

.admin-sidebar .sidebar-nav > li > a.active,
.admin-sidebar .sidebar-nav > li > a:hover {
    background: #5DD62C !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.hris-sidebar .hris-sidebar-nav > li > a.nav-group-toggle.open {
    background: rgba(93, 214, 44, 0.55) !important;
    color: #F8F8F8 !important;
    font-weight: 600;
    border: 1px solid rgba(93, 214, 44, 0.7);
    box-shadow: inset 3px 0 0 #5DD62C;
}

.hris-sidebar .hris-sidebar-submenu {
    margin: 0.35rem 0 0.55rem 0.35rem;
    padding: 0.3rem 0.25rem 0.3rem 0.55rem;
    border-left: 1px solid rgba(93, 214, 44, 0.5);
    background: rgba(51, 116, 24, 0.5);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(93, 214, 44, 0.2);
}

.admin-sidebar .admin-nav-group details {
    margin: 0;
}

.admin-sidebar .admin-nav-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    list-style: none;
    cursor: pointer;
    padding: 0.8rem 1rem;
    color: #ffffff !important;
    border-radius: 10px;
    background: rgba(27, 67, 24, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.admin-sidebar .admin-nav-group summary::-webkit-details-marker {
    display: none;
}

.admin-sidebar .admin-nav-group summary::after {
    content: '';
    width: 0.42rem;
    height: 0.42rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.7;
    flex-shrink: 0;
    margin-right: 0.15rem;
    transition: transform 0.2s ease;
}

.admin-sidebar .admin-nav-group details[open] > summary {
    background: #5DD62C !important;
    color: #ffffff !important;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.admin-sidebar .admin-nav-group details[open] > summary::after {
    transform: rotate(225deg);
    margin-top: 0.2rem;
}

.admin-sidebar .admin-nav-group summary:hover {
    background: #5DD62C !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.admin-sidebar .admin-nav-group .sidebar-submenu {
    display: block;
    margin: 0.35rem 0 0.55rem 0.35rem;
    padding: 0.3rem 0.25rem 0.3rem 0.55rem;
    position: static;
    z-index: auto;
    border-left: 1px solid rgba(93, 214, 44, 0.5);
    background: rgba(51, 116, 24, 0.5);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(93, 214, 44, 0.2);
}

.admin-sidebar .sidebar-nav .sidebar-submenu a {
    font-size: 1.02rem;
    color: #ffffff !important;
}

.sidebar-submenu,
.hris-sidebar-submenu {
    list-style: none;
    margin: 0.2rem 0 0.5rem 0;
    padding: 0.25rem 0 0.25rem 0.75rem;
    border-left: 2px solid rgba(255, 255, 255, 0.22);
    margin-left: 1.5rem;
}

.sidebar-nav .sidebar-submenu a,
.hris-sidebar-submenu a {
    display: block;
    padding: 0.55rem 0.85rem;
    color: rgba(255, 255, 255, 0.78) !important;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 6px;
}

.sidebar-nav .sidebar-submenu a:hover,
.sidebar-nav .sidebar-submenu a.active,
.hris-sidebar-submenu a:hover,
.hris-sidebar-submenu a.active {
    background: rgba(93, 214, 44, 0.35) !important;
    color: #ffffff !important;
    box-shadow: none;
    font-weight: 600;
}

.hris-sidebar-footer,
.sidebar-footer {
    padding: 1rem 0.75rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hris-sidebar-footer .btn-back-admin,
.sidebar-footer .btn-back-admin,
.sidebar .btn-back-admin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(248, 248, 248, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(248, 248, 248, 0.22) !important;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(248, 248, 248, 0.2);
}

.hris-sidebar-footer .btn-back-admin:hover,
.sidebar-footer .btn-back-admin:hover {
    background: rgba(255, 255, 255, 0.22) !important;
}

.sidebar-submissions {
    margin-top: 0.5rem;
    padding: 0 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1rem;
    flex-shrink: 0;
}

.sidebar-submissions h4,
.sidebar-submissions-toggle {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 1rem;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 0 0 0.5rem;
    width: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    text-align: left;
}

.sidebar-submissions-toggle .chevron {
    font-size: 0.7rem;
    opacity: 0.75;
    transition: transform 0.2s ease;
}

.sidebar-submissions-toggle.open .chevron {
    transform: rotate(180deg);
}

.sidebar-submissions-toggle:not(.open) {
    margin-bottom: 0;
}

.sidebar-submissions-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: min(42vh, 22rem);
    overflow-y: auto;
    padding-right: 0.15rem;
}

.sidebar-submissions-list[hidden] {
    display: none !important;
}

.sidebar-submissions .submission-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.8rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--accent-1);
}

.sidebar-submissions .submission-card .title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.sidebar-submissions .submission-card .meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
}

.sidebar-submissions .submission-card a {
    font-size: 0.75rem;
    color: #86efac !important;
    font-weight: bold;
}

#sidebar ul li .text-muted.small {
    color: rgba(255, 255, 255, 0.5) !important;
}

.hris-layout header a,
.hris-layout header span {
    color: #ffffff !important;
}

.hris-layout header #profileDropdownMenu a,
.hris-layout header .profile-dropdown-menu a,
.hris-layout header .profile-dropdown-menu .profile-dropdown-item {
    color: #1f2937 !important;
}
.hris-layout header .profile-dropdown-menu .nav-logout:hover {
    color: #dc2626 !important;
    background: #fef2f2 !important;
}

.hris-layout header .btn-outline {
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
}

.hris-layout header .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.main-content {
    flex-grow: 1;
    padding: 2rem;
}

/* Dashboard Panels */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2.5rem;
    padding: 1rem;
    background: rgba(30, 81, 40, 0.1);
    border-radius: 0.5rem;
    color: var(--accent-admin);
}

.stat-details h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.stat-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.data-table th {
    background: rgba(30, 81, 40, 0.05);
    color: var(--text-secondary);
    font-weight: 500;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.lp-signin {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 14000;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
html.lp-show-form .lp-signin,
body.lp-show-form .lp-signin {
    display: flex !important;
}
.lp-signin[hidden] {
    display: none !important;
}
html.lp-show-form .lp-signin[hidden],
body.lp-show-form .lp-signin[hidden] {
    display: flex !important;
}
html.lp-show-form .lp-login-btn,
body.lp-show-form .lp-login-btn {
    display: none !important;
}
.lp-signin-scrim {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}
.lp-signin-x {
    position: absolute;
    top: 1rem;
    right: 1.1rem;
    z-index: 2;
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}
.lp-signin-x:hover {
    color: #bbf7d0;
}
.lp-signin-card {
    position: relative;
    z-index: 1;
    width: min(100%, 400px);
    background: #ffffff;
    border-radius: 1.35rem;
    padding: 0 0 1.25rem;
    overflow: hidden;
    border: none;
    outline: none;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}
.lp-signin-head {
    text-align: center;
    margin: 0 0 1.2rem;
    padding: 1.45rem 1.6rem 1.2rem;
    background: var(--accent-admin);
}
.lp-signin-lock {
    display: inline-flex;
    margin-bottom: 0.35rem;
    color: #8BE58A;
}
.lp-signin-lock .nav-icon svg {
    width: 28px;
    height: 28px;
    stroke: #8BE58A;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.lp-signin-head h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}
.lp-signin-head p {
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
}
.lp-signin-alert {
    margin: 0 1.6rem 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.7rem;
    font-size: 0.88rem;
    text-align: center;
}
.lp-signin-alert--err { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.4); color: #b91c1c; }
.lp-signin-alert--ok { background: rgba(5, 150, 105, 0.1); border: 1px solid rgba(5, 150, 105, 0.35); color: var(--accent-admin); }
.lp-signin-alert--warn { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.4); color: #b45309; }
.lp-signin-card form {
    padding: 0 1.6rem;
}
.lp-field {
    position: relative;
    display: block;
    margin-bottom: 0.75rem;
}
.lp-field .form-control {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 2.6rem 0.7rem 2.65rem;
    border: 1px solid rgba(30, 81, 40, 0.18);
    border-radius: 999px;
    background: #eef6f0;
    color: var(--accent-admin);
    font-size: 0.95rem;
}
.lp-field .form-control::placeholder {
    color: #6f8576;
}
.lp-field .form-control:focus {
    outline: 2px solid rgba(34, 197, 94, 0.35);
    border-color: var(--accent-2);
    background: #fff;
}
.lp-field-ico {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-admin);
    pointer-events: none;
}
.lp-field-ico .nav-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
}
.lp-field .password-toggle {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: var(--accent-admin);
    cursor: pointer;
    padding: 0.3rem 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lp-field .password-toggle .nav-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.lp-signin-go {
    width: 100%;
    min-height: 48px;
    margin-top: 0.35rem;
    border: 0;
    border-radius: 999px;
    background: var(--accent-admin) !important;
    color: #fff !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}
.lp-signin-go:hover {
    background: #166534 !important;
}
.lp-signin-go .nav-icon svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}
.lp-signin-links {
    margin-top: 0.95rem;
    padding: 0 1.6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.lp-signin-links a {
    color: var(--accent-admin);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
}
.lp-signin-links a:hover { text-decoration: underline; }

.badge-success { background: rgba(16, 185, 129, 0.2); color: #059669; }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #d97706; }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #dc2626; }
.badge-info { background: rgba(16, 185, 129, 0.2); color: #059669; }

@media (max-width: 820px) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    body {
        overflow-x: hidden;
        max-width: 100%;
    }
    img { max-width: 100%; height: auto; }
    .hero {
        padding: 1.5rem 1rem 1.25rem;
        max-width: 100%;
    }
    .hero h1 { font-size: clamp(1.35rem, 7vw, 2.2rem); }
    .hero p { font-size: clamp(0.88rem, 3.6vw, 1.05rem); }
    .modules-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: clamp(0.75rem, 4vw, 1.25rem);
        max-width: 100%;
    }
    .module-card { min-width: 0; padding: 1.15rem 1rem; }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .main-content {
        padding: clamp(0.75rem, 3.5vw, 1.25rem);
        min-width: 0;
    }
}

@media (max-width: 360px) {
    .logo { font-size: 1.05rem; }
}
