﻿.my-background-div {
    width: 100%; /* Or a specific width */
    height: 300px; /* Or a specific height */
    background-image: url('../Image/bg.jpg'); /* Specify the image path */
    background-repeat: no-repeat; /* Prevent image from repeating */
    background-position: center; /* Center the image */
    background-size: cover; /* Scale the image to cover the div, maintaining aspect ratio */
}


.roleListCard:hover {
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
    box-shadow: 5px 5px 10px rgba(10, 20, 40, 0.3);
}

.a_mem {
    color: black; /* Sets the link color to black */
    text-decoration: none; /* Removes the underline */
}

    /* You might also need to address pseudo-classes for different link states */
    .a_mem:visited {
        color: black; /* Ensures visited links are also black */
    }

    .a_mem:hover {
        color: black; /* Changes color on hover */
        font-weight: bold;
        font-size: 15px;
    }

    .a_mem:active {
        color: darkgray; /* Changes color when clicked */
    }

.btnDeleteStyle_hiden {
    display: none;
}

.btnDeleteStyle {
    display: inline-block;
}

.vertical-header {
    writing-mode: vertical-rl;
    text-orientation: upright;
    height: 150px;
    padding: 10px; /* Adjust as needed for spacing */
    white-space: pre-wrap; /* Prevents wrapping, keeps text in one column */
    text-align: center; /* Horizontally centers the text within the column */
}






/*aside Bar CSS*/



body {
    font-family: Arial, sans-serif;
    margin: 0;
}


/* Sidebar styling */
.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* pushes logout to bottom */
    width: 200px; /* was 250px */
    height: 100vh;
    background: #2c3e50;
    transition: width 0.6s; /* slower collapse */
    position: fixed;
    top: 0;
    left: 0;
    overflow-x: hidden;
    padding-top: 20px;
}


.logout-section .nav-link {
    color: #e74c3c; /* red for logout */
    font-weight: bold;
}

    .logout-section .nav-link:hover {
        background: #c0392b;
        color: #fff;
    }

.sidebar.collapsed {
    width: 60px; /* was 70px */
}

.sidebar .nav-link {
    color: #ecf0f1;
    padding: 12px 20px;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

    /* Hover effect */
    .sidebar .nav-link:hover {
        background: #34495e;
        border-left: 3px solid #1abc9c;
        color: #1abc9c;
        box-shadow: inset 0 0 10px #1abc9c;
    }

/* Submenus */
.sidebar .submenu {
    display: none;
    list-style: none;
    padding-left: 20px;
}

.sidebar li:hover > .submenu {
    display: block;
}

/* 3rd level submenu */
.sidebar .submenu .submenu {
    padding-left: 20px;
}

/* Content area */
.content {
    margin-left: 200px; /* match expanded sidebar */
    padding: 60px 20px 20px; /* top padding so content starts below button */
    transition: margin-left 0.3s ease-in-out; /* match sidebar timing */
}

.sidebar.collapsed ~ .content {
    margin-left: 60px; /* match collapsed sidebar */
}

.sidebar.collapsed ~ .toggle-btn {
    left: 70px; /* collapsed width (60px) + 10px gap */ /* shift closer when sidebar collapses */
}

/* Collapse button */
/*.toggle-btn {
    position: absolute;
    top: 10px;
    right: -40px;
    background: #2c3e50;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}*/
.toggle-btn {
    position: fixed;
    top: 10px;
    left: 210px; /* sidebar width (200px) + 10px gap */ /* aligned with sidebar edge */
    width: 30px;
    height: 30px;
    background: #007bff;
    border: none;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 5px;
    transition: left 0.3s, background 0.3s;
}

    .toggle-btn span {
        display: block;
        width: 20px;
        height: 2px;
        background: white;
        border-radius: 2px;
        transition: all 0.6s ease-in-out; /* slower and smoother */
    }

    .toggle-btn:hover {
        background-color: #0056b3;
        border: 1px solid #fff;
        box-shadow: 0 0 8px #00f;
    }


    /* Animate to X when active */
    .toggle-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .toggle-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .toggle-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

/* Style nav links with icon + text */
.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 10px; /* space between icon and text */
}

/* When collapsed, hide text */
.sidebar.collapsed .menu-text {
    display: none;
}

/* When collapsed, center the icon */
.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 12px 0; /* tighter padding */
}



.chart-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: auto;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin: 40px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

    .chart-container canvas {
        width: 100% !important;
        height: 400px !important;
    }




.scrollable-view_chart {
    margin-top: 20px; /* 👈 space between top element and charts */
    max-height: 85vh; /* or any height you want visible at once */
    overflow-y: auto; /* enables vertical scrolling */
    overflow-x: hidden; /* hide sideways scroll */
    padding-right: 10px;
    scrollbar-width: thin; /* for Firefox */
}

/* optional for Chrome scroll styling */
    .scrollable-view_chart::-webkit-scrollbar {
        width: 8px;
    }

    .scrollable-view_chart::-webkit-scrollbar-thumb {
        background-color: #999;
        border-radius: 4px;
    }

        .scrollable-view_chart::-webkit-scrollbar-thumb:hover {
            background-color: #666;
        }



.responsive-table-container {
    width: 100%;
    max-height: 80vh; /* never exceed screen height */
    overflow-x: auto; /* horizontal scroll */
    overflow-y: auto; /* vertical scroll */
    border: 1px solid #ccc;
    padding: 10px;
}