/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #f4f4f9;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    width: 100%;
}

.dashboard {
    width: 95%;
    margin: 0 auto;
}

/* Sidebar */
.sidebar {
    width: 60px;

    /* Default to collapsed width */
    background-color: #fff;
    background-image: url('');
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
    color: #41485a;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    transition: width 0.3s ease;
}

.logo-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.sidebar .menu {
    width: 100%;
    transition: opacity 0.3s ease;
}

.sidebar .logo-container {
    text-align: center;
}

.sidebar .logo {
    height: 30px;
}

.sidebar #logo {
    display: none;

    /* Hidden in collapsed state */
    max-width: 55%;
    margin-bottom: 20px;
    margin-top: 20px;
    margin-left: 10px;
}

.sidebar #logo-small {
    display: block;

    /* Visible in collapsed state */
    width: 40px;
    height: 20px;
    margin-top: 6px;
    margin-left: 10px;
    margin-right: 10px;

    /* Centers horizontally */
    text-align: center;
}

.sidebar .menu ul {
    list-style: none;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar .menu li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 90%;
    height: 50px;
    margin: 10px 0;
    padding: 0 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.sidebar .menu li:hover {
    background-color: #ecf7ee;
}

.sidebar .menu li a {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: #41485a;
}

.sidebar .menu li .menu-icon {
    flex: 0 0 50%;
    max-width: 35px;
    height: auto;
    margin-right: 10px;
    display: block;
}

.sidebar .menu li .menu-text {
    flex: 1;
    text-align: left;
    font-size: 18px;
    white-space: nowrap;
    margin-left: 40px;
}

.sidebar .logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    padding: 10px;
}

.sidebar .logout a {
    text-decoration: none;
    color: #41485a;
    display: flex;
    align-items: center;
    font-size: 18px;
    margin-left: 10px;
}

/* Search Styling */
.search-bar {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.search-bar input {
    padding: 15px;
    border-radius: 30px;
    border: 1px solid #ccc;
    width: 90%;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    background-image: url('../assets/icons/searchicon.ico');
    background-size: 25px 25px;
    background-repeat: no-repeat;
    background-position: 20px center;
    padding-left: 70px;
    font-size: 17px;
}

#search-icon {
    display: block;

    /* Visible in collapsed state */
    margin-top: 30px;
}

#log-text {
    display: none;

    /* Hidden in collapsed state */
}

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: linear-gradient(0deg, #78be43 25%, #394053 25%);
}

.header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
}

.logout-icon {
    width: 35px;
    height: auto;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    width: 30px;
    height: auto;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    width: 30px;
    height: 20px;
    margin-bottom: 20px;
    margin-top: 20px;
    margin-right: 10px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: black;
    border-radius: 2px;
}

.hamburger span:nth-child(1) {
    width: 75%;
    margin-left: auto;
}

.hamburger span:nth-child(3) {
    width: 55%;
    margin-left: auto;
}

.user-info {
    display: flex;
    align-items: center;
    color: #fff;
}

.user-info .icons i {
    margin: 0 10px;
    font-size: 18px;
    cursor: pointer;
}

.user-info .icons img {
    width: 30px;
    cursor: pointer;
}

.user-info .user-profile {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.user-profile img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    background-color: #fff;
}

.user-profile a {
    text-decoration: none;
    display: flex;
    color: #fff;
    font-size: 18px;
    align-items: center;
}

.dashboard h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 200;
    letter-spacing: 1.5px;
}

.dashboard .highlight {
    color: #fff;
    font-weight: 1000;
}

.dark-text {
    color: #000;
}

.stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    margin-top: 40px;
}

.stat {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.stat .value {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.stat .change {
    font-size: 14px;
}

.stat .change.positive {
    color: #48c78e;
}

.stat .change.negative {
    color: #ff6b6b;
}

.charts {
    display: flex;
    gap: 30px;
}

.chart {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.chart h3 {
    margin-bottom: 10px;
}

.chart-container {
    width: 100%;
    height: 200px;
}

.report-container{
    background:white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding:10px;
    border-radius:15px;
    
}
.width{width:75%;}
.sidebar {
    transition: width 0.3s ease;
}

.menu {
    transition: opacity 0.3s ease;
}


.submenu {
    display: none;
}

.submenu a,
.submenu p {
    text-decoration: none;
    color: #41485a;
    font-size: 16px;
    padding: 15px;
    width: 90%;
    border-radius: 5px;
}

.submenu p:hover {
    background-color: #ecf7ee;
}


.submenu.open {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    height: 100px;
    width: 100%;
}

#users-menu.active-green {
    background-color: #ecf7ee;
    color: #000;
}

.current-page {
    background-color: #ecf7ee;
}

#pr-details {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.0); 
    padding: 20px;
    border-radius: 10px; 
    width: auto;
    text-align: center;
    display:none;
}

/* Sidebar - Collapsed State */
.sidebar-collapsed .sidebar {
    width: 60px;
}

.sidebar-collapsed #logo {
    display: none;
}

.sidebar-collapsed #logo-small {
    display: block;
}

.sidebar-collapsed #search-icon {
    display: block;
}

.sidebar-collapsed #search-box {
    display: none;
}

.sidebar-collapsed #log-text {
    display: none;
}

/* Sidebar - Expanded State */
.sidebar-expanded .sidebar {
    width: 300px;
}

.sidebar-expanded #logo {
    display: block;
}

.sidebar-expanded #logo-small {
    display: none;
}

.sidebar-expanded #search-icon {
    display: none;
}

.sidebar-expanded #search-box {
    display: block;
}

.sidebar-expanded #log-text {
    display: inline;
}
/* Collapsed Sidebar */
.sidebar-collapsed #search-box {
    display: none; /* Hide the search input in collapsed state */
}

.sidebar-collapsed #search-icon {
    display: block; /* Show the search icon in collapsed state */
}

/* Expanded Sidebar */
.sidebar-expanded #search-box {
    display: block; /* Show the search input in expanded state */
}

.sidebar-expanded #search-icon {
    display: none; /* Hide the search icon in expanded state */
}

.height {
    height: 700px !important;
    overflow-y: auto; /* Ensure vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    border-radius: 15px; /* Apply border radius */
    position: relative; /* Necessary for proper clipping */
    clip-path: inset(0 round 15px); /* Clips the content, including scrollbar, to border radius */
}

.chart-container{
    position: relative;
    clip-path: inset(0 round 20px);
}

/* Style the scrollbar */
.height::-webkit-scrollbar , .chart-container::-webkit-scrollbar {
    width: 10px; /* Width of the scrollbar */
}

.height::-webkit-scrollbar-track , .chart-container::-webkit-scrollbar-track {
    background: #f1f1f1; /* Background of the scrollbar track */
    border-radius: 15px; /* Match the border radius */
}

.height::-webkit-scrollbar-thumb , .chart-container::-webkit-scrollbar-thumb {
    background: #888; /* Color of the scrollbar handle */
    border-radius: 15px; /* Match the border radius */
    margin: 2px; /* Adds some space to prevent thumb overlap */
}

.height::-webkit-scrollbar-thumb:hover , .chart-container::-webkit-scrollbar-thumb:hover {
    background: #555; /* Handle color on hover */
}



/*TEMP STYLES*/

.bell , .help{
    display:none;
}
