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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 300px;
    background: linear-gradient(180deg, #1a3a6b 0%, #18447B 60%, #1a4f8f 100%);
    z-index: 200;
    transition: width 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

    .sidebar.close {
        width: 0;
    }

    .sidebar .logo-details {
        height: 64px;
        min-height: 64px;
        width: 300px;
        display: flex;
        align-items: center;
        padding: 0 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        flex-shrink: 0;
    }

        .sidebar .logo-details .logo_name {
            font-size: 18px;
            color: #fff;
            font-weight: 700;
            letter-spacing: 1.5px;
            white-space: nowrap;
        }

    .sidebar .nav-links {
        flex: 1;
        padding: 12px 0 8px 0;
        overflow-y: auto;
        overflow-x: hidden;
        width: 300px;
    }

        .sidebar .nav-links::-webkit-scrollbar {
            width: 4px;
        }

        .sidebar .nav-links::-webkit-scrollbar-track {
            background: transparent;
        }

        .sidebar .nav-links::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 4px;
        }

        .sidebar .nav-links li {
            position: relative;
            list-style: none;
            transition: background 0.2s ease;
            white-space: nowrap;
        }

            .sidebar .nav-links li:hover {
                background: rgba(255, 255, 255, 0.1);
            }

            .sidebar .nav-links li .iocn-link {
                display: flex;
                align-items: center;
                justify-content: space-between;
            }

        .sidebar .nav-links li i {
            height: 48px;
            min-width: 64px;
            text-align: center;
            line-height: 48px;
            color: rgba(255, 255, 255, 0.85);
            font-size: 17px;
            cursor: pointer;
            transition: color 0.2s ease;
            flex-shrink: 0;
        }

        .sidebar .nav-links li:hover i {
            color: #fff;
        }

        .sidebar .nav-links li.showMenu i.arrow {
            transform: rotate(-180deg);
        }

        .sidebar .nav-links li i.arrow {
            min-width: 40px;
            font-size: 13px;
            transition: transform 0.3s ease, color 0.2s ease;
        }

        .sidebar .nav-links li a {
            display: flex;
            align-items: center;
            text-decoration: none;
        }

            .sidebar .nav-links li a .link_name {
                font-size: 14px;
                font-weight: 500;
                color: rgba(255, 255, 255, 0.9);
                transition: color 0.2s ease;
            }

            .sidebar .nav-links li a:hover .link_name {
                color: #fff;
            }

        .sidebar .nav-links li .sub-menu {
            padding: 4px 0 8px 64px;
            background: rgba(0, 0, 0, 0.15);
            display: none;
        }

        .sidebar .nav-links li.showMenu .sub-menu {
            display: block;
        }

            .sidebar .nav-links li .sub-menu li {
                list-style: none;
            }

            .sidebar .nav-links li .sub-menu a {
                color: rgba(255, 255, 255, 0.7);
                font-size: 13px;
                padding: 8px 16px 8px 0;
                display: block;
                transition: color 0.2s ease, padding-left 0.2s ease;
                border-left: 2px solid transparent;
            }

            .sidebar .nav-links li .sub-menu a:hover {
                color: #fff;
                padding-left: 6px;
                border-left-color: rgba(255, 255, 255, 0.5);
            }

            .sidebar .nav-links li .sub-menu .link_name {
                display: none;
            }

    .sidebar .profile-details {
        width: 300px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(0, 0, 0, 0.2);
        padding: 14px 16px;
        flex-shrink: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

        .sidebar .profile-details .profile_name {
            color: #fff;
            font-size: 15px;
            font-weight: 600;
            white-space: nowrap;
        }

        .sidebar .profile-details .job {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.7);
            white-space: nowrap;
        }

            .sidebar .profile-details .job a {
                font-size: 11px !important;
                color: orange !important;
                padding: 0 !important;
                display: inline !important;
                background: none !important;
                border: none !important;
                font-weight: normal !important;
            }

        .sidebar .profile-details a.logout-btn {
            color: rgba(255, 255, 255, 0.7);
            font-size: 18px;
            display: flex;
            align-items: center;
            padding: 6px 8px;
            border-radius: 6px;
            transition: background 0.2s ease, color 0.2s ease;
            flex-shrink: 0;
        }

        .sidebar .profile-details a.logout-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            color: #fff;
        }

.home-section {
    position: relative;
    left: 300px;
    width: calc(100% - 300px);
    transition: left 0.4s ease, width 0.4s ease;
    z-index: 100;
}

.sidebar.close ~ .home-section {
    left: 0;
    width: 100%;
}

.sidebar.close ~ .pusher {
    margin-left: 0 !important;
}

.home-section .home-content {
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
    background: #ffffff;
    border-bottom: 1px solid #e0e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

    .home-section .home-content .sidebar-toggle {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: #18447B;
        cursor: pointer;
        border-radius: 8px;
        transition: background 0.2s ease, color 0.2s ease;
        flex-shrink: 0;
    }

    .home-section .home-content .sidebar-toggle:hover {
        background: #eef3fb;
        color: #1a3a6b;
    }

    .home-section .home-content .text {
        color: #1a3a6b;
        font-size: 18px;
        font-weight: 600;
        letter-spacing: 0.3px;
        flex: 1;
    }

    .home-section .home-content .theme-toggle {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: #18447B;
        cursor: pointer;
        border-radius: 8px;
        transition: background 0.2s ease, color 0.2s ease;
        flex-shrink: 0;
        margin-left: auto;
    }

    .home-section .home-content .theme-toggle:hover {
        background: #eef3fb;
        color: #1a3a6b;
    }

@media (max-width: 768px) {
    .sidebar {
        width: 260px;
    }

    .home-section {
        left: 260px;
        width: calc(100% - 260px);
    }

    .pusher {
        margin-left: 260px !important;
    }

    .sidebar.close ~ .home-section {
        left: 0;
        width: 100%;
    }

    .sidebar.close ~ .pusher {
        margin-left: 0 !important;
    }
}
