﻿
/* ------------------------------------------------------------------------- */
/* 1. CSS STYLES (Bootstrap Padding Integration) */
/* ------------------------------------------------------------------------- */
:root {
    --acghrs-sidebar-width: 65px;
    --acghrs-main-color: #fff;
    --acghrs-dark-bg: #394453;
}

/* Reset/Base Styles */
.acghrs-root {
    display: flex;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

/* 3️⃣ SIDEBAR STYLES (Fixed and Narrow) */
.acghrs-sidebar {
    width: var(--acghrs-sidebar-width);
    background-color: var(--acghrs-dark-bg);
    color: #fff;   
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}

.acghrs-sidebar-inner {
    padding-top: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.acghrs-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
    margin-bottom: 20px;
}

.acghrs-logo {
    font-size: 28px;
    color: var(--acghrs-main-color);
}

/* Tinanggal ang text sa narrow sidebar */
.acghrs-logo-text, .acghrs-sidebar-text {
    display: none !important;
}

.acghrs-collapse-btn {
    display: none;
}

/* 4️⃣ NAV MENU STYLES */
#acghrs-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.acghrs-nav-item {
    position: relative;
    cursor: pointer;
}

.acghrs-sidebar-link {
    display: flex;
    align-items: center;
    padding: 15px 0;
    justify-content: center;
    color: #ccc !important;
    text-decoration: none;
    transition: background-color 0.2s;
}

    .acghrs-sidebar-link i {
        font-size: 18px;
    }

    .acghrs-nav-item:hover .acghrs-sidebar-link,
    .acghrs-sidebar-link.active {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff !important;
    }

/* --- FLOATING SUB-MENU STYLES (Content-Based Width) --- */
.acghrs-submenu {
    position: fixed;
    left: 0;
    width: max-content;
    min-width: 150px;
    max-width: 300px;
    background-color: #33475b;
    border-radius: 5px;
    padding: 8px 0;
    z-index: 90;
    list-style: none;
    margin: 0;
    display: block;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

    /* JS-controlled visibility class */
    .acghrs-submenu.acghrs-visible {
        opacity: 1;
        pointer-events: auto;
    }

/* 🎯 Main Title sa Tuktok ng Floating Menu (Acronym Only) */
.acghrs-submenu-category {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    /* Ginamit ang 10px padding for safety */
    padding: 8px 10px 10px 10px;
    display: block;
    text-transform: uppercase;
    cursor: default;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

/* 🎯 Level 1 Menu Item (e.g., 'Employee Core) */
.acghrs-submenu > li > a.acghrs-submenu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Manual padding removed; relies on nav-link px-2 */
    text-decoration: none;
    color: #cccccc;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.1s, color 0.1s;
}

    .acghrs-submenu > li > a.acghrs-submenu-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }

/* 🎯 NESTED Sub-menu (Level 2 UL) */
.acghrs-submenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 5px;
    padding-left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* Gawing visible ang nested UL kapag naka-hover sa parent LI */
.acghrs-submenu > li:hover > ul {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
    margin-bottom: 8px;
}

/* 🎯 Level 2 Link Items (e.g., 'Add Employee') */
.acghrs-submenu ul li {
    /* PADDING REMOVED from LI */
    padding: 0;
    font-size: 13px;
    cursor: pointer;
}

    .acghrs-submenu ul li a {
        color: #aebecd;
        text-decoration: none;
        /* Gawing block para sakupin ang buong LI at maging effective ang px-2 */
        display: block;
    }

        .acghrs-submenu ul li a:hover {
            color: #fff;
        }

/* Divider */
.acghrs-submenu-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 12px 10px;
}

/* 5️⃣ MAIN CONTENT STYLES */
.acghrs-main {
    flex-grow: 1;
    margin-left: var(--acghrs-sidebar-width);
    padding-top: 20px;
}

.acghrs-page-header {
    margin-bottom: 20px;
    padding: 0 15px;
}

.acghrs-dashboard-cards {
    padding: 0 15px;
}

.acghrs-stat-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.acghrs-stat-icon {
    color: var(--acghrs-main-color);
}

.acghrs-form-card {
    margin: 0 15px;
}

.input-acghrs {
    border: 1px solid #ccc;
}

