:root {
      --purple: #a259ff;
      --bg-dark: #261E35;
      --card-dark: #3C354A;
      --text-light: #f5f5f5;
      --text-muted: #ccc;
      --success: #4caf50;
      --danger: #f44336;
    }

   /* Reset & base styles */
* {
    box-sizing: border-box;
  }
  body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--bg-dark);
    font-family: sans-serif;
  }

  /* Dashboard layout */
  .dashboard-layout {
    display: flex;
    height: 100vh;
    background: var(--bg-dark);
    width: 100%;
    overflow: hidden;
  }

  /* Sidebar */
  .user-sidebar {
    width: 250px;
    display: flex;
    background-color: #000000;
    color: white;
    padding: 1rem;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
    transition: all 0.3s ease-in-out;
    position: relative;
    border-right: 0.5px solid #9A9A9A;
  }

  .user-sidebar.collapsed {
    width: 80px;
  }

  .user-sidebar .label {
    display: inline-block;
    transition: opacity 0.2s;
  }

  .user-sidebar.collapsed .label {
    opacity: 0;
    width: 0;
    overflow: hidden;
    display: none;
  }

  .toggle-btn {
    padding: 10px;
    cursor: pointer;
    color: white;
    font-size: 27px;
  }

  .logo {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    flex-grow: 1;
    width: 100%;
  }

  .nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .nav-item {
    display: flex;
    align-items: center;
  }

  .nav-item a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
  }

  .nav-icon {
    width: 48px;
    height: 48px;
    display: flex;
    margin-top: 3px;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    color: var(--sidebar-icon-color);
    transition: all 0.2s ease;
  }

  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 900;
  }

  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-item.active {
    background-color: #145629;
    color: var(--sidebar-active-icon-color);
    border-radius: 10px;
  }

  .nav-item:hover {
    color: var(--sidebar-active-icon-color);
  }

  .logout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    gap: 1rem;
    background: #145629;
    padding: 0.5rem;
    border-radius: 10px;
  }

  .user-sidebar.collapsed .logout {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .logout .nav-icon {
    color: white;
  }

  .logout:hover .nav-icon {
    color: var(--sidebar-active-icon-color);
  }

  @media (max-width: 768px) {
    .user-sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100%;
        padding: 20px;
        transition: left 0.3s ease;
        z-index: 1000;
      }

      .user-sidebar.active {
        left: 0;
      }

      .floating-button {
        position: fixed;
        right: 30px;
        top: 15%;
        transform: translateY(-50%);
        padding: 1px 6px 3px 6px;
        font-size: 24px;
        background-color: #000000;
        color: white;
        border: none;
        border-radius: 10%;
        cursor: pointer;
        z-index: 1000;
        box-shadow: 0 2px 8px rgb(45 141 12);
      }

      .toggle-btn {
        display: none;
      }

      .logout {
        padding: 0;
      }
}

@media (min-width: 768px) {
    .floating-button {
      display: none;
    }
  }


  /* Main area */
  .main-area {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: #000000;
    overflow: hidden;
  }

  /* Navbar */
  .user-navbar {
    height: 100px;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }

  .nav-logo {
    width: 150px;
  }


  /* Page content */
  .page-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    padding-top: 0px;
  }
