
    :root {
      --primary: #6F316E;
      --accent: #293C5E;
      --sidebar-bg: #1b1d2a;
      --text: #fff;
      --section: #aab2cc;
      --badge: #FF5C58;
      --active-bg: #2d3142;
      --divider: #2a2c3e;
      --sidebar-width: 260px;
      --sidebar-mini-width: 64px;
      --transition: 0.2s cubic-bezier(.4,0,.2,1);
    }

    body {
      margin: 0;
      font-family: 'Segoe UI', Arial, sans-serif;
      background: #f2f2fa;
      transition: background .3s;
    }
    .app-container {
      display: flex;
      min-height: 100vh;
    }
    .sidebar {
      width: var(--sidebar-width);
      background: var(--sidebar-bg);
      color: var(--text);
      height: 100vh;
      display: flex;
      flex-direction: column;
      box-shadow: 2px 0 16px rgba(41,60,94,0.13);
      position: fixed;
      left: 0; top: 0; bottom: 0;
      z-index: 999;
      transition: width var(--transition), transform var(--transition);
      transform: translateX(0);
    }
    .sidebar.closed {
      transform: translateX(-110%);
    }
    .sidebar.mini {
      width: var(--sidebar-mini-width);
    }
    .sidebar-header {
      padding: 23px 20px 12px 20px;
      display: flex;
      align-items: center;
      gap: 13px;
    }
    .sidebar-logo {
      font-size: 1.7rem;
    }
    .sidebar-title {
      font-size: 1.08rem;
      font-weight: bold;
      letter-spacing: 1px;
      transition: opacity var(--transition);
    }
    .sidebar.mini .sidebar-title {
      opacity: 0;
      pointer-events: none;
    }
    nav { flex: 1; }
    .menu {
      padding: 0;
      margin: 0;
      list-style: none;
    }
    .menu-section {
      margin: 14px 0 3px 20px;
      font-size: 0.91rem;
      letter-spacing: 1px;
      color: var(--section);
      font-weight: 500;
      display: flex;
      align-items: center;
      user-select: none;
      cursor: pointer;
      transition: opacity var(--transition);
    }
    .sidebar.mini .menu-section {
      opacity: 0;
      pointer-events: none;
    }
    .menu-section .bi-chevron-down,
    .menu-section .bi-chevron-up {
      font-size: 1rem;
      margin-left: 7px;
      transition: transform 0.25s;
    }
    .menu-group.collapsed .bi-chevron-down {
      transform: rotate(-90deg);
    }
    .menu-group.collapsed .menu-subgroup {
      max-height: 0;
      overflow: hidden;
      opacity: 0.4;
      pointer-events: none;
      transition: max-height 0.26s, opacity 0.21s;
    }
    .menu-group .menu-subgroup {
      max-height: 500px;
      overflow: hidden;
      transition: max-height 0.24s, opacity 0.23s;
    }
    .menu-item {
      /* No longer cursor:pointer - the <a> is clickable */
      display: flex;
      align-items: center;
      padding: 0;
      position: relative;
      border-radius: 8px 0 0 8px;
      transition: background 0.15s, color 0.18s;
      font-size: 1.05rem;
    }
    .menu-link {
      display: flex;
      align-items: center;
      gap: 13px;
      color: inherit;
      text-decoration: none;
      width: 100%;
      height: 100%;
      padding: 13px 22px;
      border-radius: 8px 0 0 8px;
      transition: background 0.15s, color 0.18s;
      font-size: inherit;
      position: relative;
    }
    .menu-link:visited {
      color: inherit;
    }
    .menu-item.active > .menu-link,
    .menu-link:hover {
      background: var(--active-bg);
      color: var(--primary);
      text-decoration: none;
    }
    .sidebar.mini .menu-item span:not(.badge) {
      display: none;
    }
    .menu-item .icon, .menu-link .icon {
      font-size: 1.12rem;
      opacity: 0.93;
      min-width: 1.3em;
      text-align: center;
    }
    .menu-link .badge,
    .menu-link .badge-new {
      margin-left: auto;
    }
    .menu-link .badge {
      background: var(--badge);
      color: #fff;
      font-size: 0.76em;
      border-radius: 10px;
      padding: 2px 7px;
      margin-right: 0;
    }
    .menu-link .badge-new {
      background: var(--primary);
      color: #fff;
    }
    .divider {
      height: 1px;
      background: var(--divider);
      margin: 12px 0 9px 20px;
      width: 82%;
      border-radius: 2px;
      transition: opacity var(--transition);
    }
    .sidebar.mini .divider { opacity: 0; pointer-events: none; }
    .sidebar-footer {
      padding: 18px 19px;
      border-top: 1px solid var(--divider);
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: opacity var(--transition);
    }
    .toggle-theme, .toggle-mini {
      background: none;
      border: none;
      color: #ccc;
      font-size: 1.24rem;
      cursor: pointer;
      margin-right: 7px;
      transition: color 0.21s;
    }
    .toggle-theme:hover, .toggle-mini:hover { color: var(--primary);}
    .user-profile {
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
    }
    .avatar {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 2px solid var(--primary);
      object-fit: cover;
      transition: opacity var(--transition);
    }
    .sidebar.mini .user-name { display: none; }
    /* Hamburger menu for mobile */
    .hamburger {
      display: none;
      position: fixed;
      left: 20px;
      top: 18px;
      z-index: 1002;
      background: var(--sidebar-bg);
      color: var(--primary);
      border: none;
      font-size: 2rem;
      border-radius: 6px;
      padding: 5px 10px;
      cursor: pointer;
      box-shadow: 0 3px 8px rgba(111,49,110,0.09);
      transition: background .19s;
    }
    .hamburger:active { background: var(--active-bg);}
    /* Overlay for sidebar on mobile */
    .sidebar-overlay {
      display: none;
      position: fixed;
      left: 0; top: 0; width: 100vw; height: 100vh;
      background: rgba(41,49,94,0.18);
      z-index: 998;
      animation: fadeIn 0.2s;
    }
    @keyframes fadeIn { from { opacity:0;} to{opacity:1;}}
    /* Responsive rules */
    @media (max-width: 900px) {
      .sidebar {
        width: var(--sidebar-mini-width);
      }
      .sidebar:not(.open) {
        width: var(--sidebar-mini-width);
      }
      .sidebar.mini {
        width: var(--sidebar-mini-width);
      }
      .app-main {
        margin-left: var(--sidebar-mini-width);
      }
    }
    @media (max-width: 700px) {
      .sidebar {
        position: fixed;
        left: 0; top: 0;
        width: var(--sidebar-width);
        min-width: var(--sidebar-width);
        z-index: 1001;
        transform: translateX(-110%);
      }
      .sidebar.open {
        transform: translateX(0);
      }
      .app-main {
        margin-left: 0 !important;
      }
      .hamburger {
        display: block;
      }
      .sidebar-overlay {
        display: block;
      }
    }
    .app-main {
      flex: 1;
      margin-left: var(--sidebar-width);
      padding: 30px 30px;
      min-height: 100vh;
      transition: margin-left var(--transition);
    }
    @media (max-width: 950px) {
      .dashboard-cards, .dashboard-row { flex-direction: column; gap: 14px;}
      .dashboard-col { min-width: 0; }
    }
    @media (max-width: 900px) {
      .app-main { margin-left: var(--sidebar-mini-width);}
    }
    @media (max-width: 700px) {
      .app-main { margin-left: 0; padding: 16px 7vw;}
    }
    /* Dashboard styles (from previous answer) */
    .dashboard {
      padding: 30px 10px 30px 10px;
      max-width: 1200px;
      margin: auto;
    }
    .dashboard-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 28px;
    }
    .dashboard-header h1 {
      font-size: 2rem;
      font-weight: 700;
      color: #293C5E;
      margin-bottom: 5px;
    }
    .dashboard-greeting {
      color: #888;
      margin-top: 0;
      font-size: 1.05rem;
    }
    .dashboard-action {
      background: #6F316E;
      color: #fff;
      padding: 9px 20px;
      border-radius: 2em;
      border: none;
      font-size: 1rem;
      display: flex;
      align-items: center;
      gap: 8px;
      box-shadow: 0 2px 8px rgba(111,49,110,0.09);
      cursor: pointer;
      transition: background 0.18s;
    }
    .dashboard-action:hover { background: #293C5E; }
    .dashboard-cards {
      display: flex;
      gap: 24px;
      margin-bottom: 30px;
      flex-wrap: wrap;
    }
    .dashboard-card {
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 3px 18px rgba(41,60,94,0.08);
      padding: 24px 30px 20px 30px;
      min-width: 180px;
      flex: 1 1 170px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      margin-bottom: 14px;
    }
    .card-title {
      font-size: 1.04rem;
      color: #6F316E;
      font-weight: 500;
      margin-bottom: 5px;
    }
    .card-value {
      font-size: 2.1rem;
      font-weight: bold;
      color: #293C5E;
    }
    .card-sub {
      margin-top: 7px;
      font-size: 0.98rem;
      color: #888;
    }
    .badge {
      background: #FF5C58;
      color: #fff;
      font-size: 0.83em;
      border-radius: 11px;
      padding: 3px 11px;
    }
    .dashboard-row {
      display: flex;
      gap: 24px;
      flex-wrap: wrap;
    }
    .dashboard-col {
      flex: 1 1 360px;
      min-width: 340px;
    }
    .dashboard-panel {
      background: #fff;
      border-radius: 18px;
      box-shadow: 0 2px 16px rgba(41,60,94,0.08);
      padding: 22px 22px 18px 22px;
      margin-bottom: 18px;
    }
    .panel-title {
      font-size: 1.1rem;
      font-weight: 600;
      color: #293C5E;
      margin-bottom: 15px;
    }
    .dashboard-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 1.02rem;
    }
    .dashboard-table th,
    .dashboard-table td {
      padding: 10px 8px;
      border-bottom: 1px solid #eee;
    }
    .dashboard-table th {
      text-align: left;
      background: #f6f4fa;
      color: #6F316E;
      font-weight: 600;
    }
    .dashboard-table td {
      color: #293C5E;
    }
    .table-action {
      background: #6F316E;
      color: #fff;
      border: none;
      border-radius: 1.6em;
      padding: 5px 15px;
      font-size: 0.98em;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .table-action:hover { background: #293C5E; }

.menu-subgroup {
  max-height: 500px;
  overflow: hidden;
  opacity: 1;
  pointer-events: auto;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.menu-subgroup.collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Sidebar toggle button for mobile */
.sidebar-toggle-button {
  position: fixed;
  top: 15px;
  left: 15px;
  background-color: var(--sidebar-bg);
  color: var(--primary);
  border: none;
  font-size: 1.8rem;
  padding: 6px 12px;
  border-radius: 5px;
  z-index: 1002;
  display: none;
}

/* Show toggle button and hide sidebar initially on mobile */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-110%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle-button {
    display: block;
  }

  .app-main {
    margin-left: 0 !important;
    padding: 20px;
  }
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 8px 12px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-box {
  background: #fff;
  padding: 2rem;
  width: 500px;
  max-width: 90%;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.modal-box {
  max-height: 90vh;
  overflow-y: auto;
}

/* Background */
.login-background {
  /*background: url('/background-image.jpg') no-repeat center center fixed;*/
  background-size: cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Modal container */
.login-container-modal {
  display: flex;
  width: 800px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

/* Left panel */
.login-image-panel {
  flex: 1;
  background: #000;
  color: white;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.login-image-panel h2 {
  font-size: 26px;
  margin-bottom: 15px;
}

.login-image-panel p {
  font-size: 16px;
  line-height: 1.5;
}

/* Right panel */
.login-form-panel {
  flex: 1;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-panel h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 25px;
  text-align: center;
}

/* Form styles */
.styled-login-form input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.styled-login-form input:focus {
  outline: none;
  border-color: #00bcd4;
  box-shadow: 0 0 3px #00bcd4;
}

.form-options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.forgot-password {
  font-size: 13px;
  color: #00bcd4;
  text-decoration: none;
}

.login-button {
  width: 100%;
  padding: 12px;
  background-color: #00bcd4;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-button:hover {
  background-color: #0097a7;
}

.signup-text {
  margin-top: 15px;
  font-size: 14px;
  text-align: center;
}

.signup-text a {
  color: #00bcd4;
  text-decoration: none;
  margin-left: 5px;
}

.error-text {
  color: red;
  font-size: 13px;
  margin-bottom: 10px;
}

.top-banner {
  background-color: #004080;
  color: #fff;
  padding: 8px 20px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
}

.banner-text {
  font-weight: bold;
}

.logout-button {
  background-color: #e74c3c;
  border: none;
  color: white;
  padding: 5px 15px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.logout-button:hover {
  background-color: #c0392b;
}







  