@font-face {
  font-family: 'Futura PT';
  src: url('FuturaPT-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Futura PT';
  src: url('FuturaPT-Book.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root[data-theme="light"] {
  --background-50: #f7f8f8;
  --sidebar-width: 246px;
  --primary: #0893A5;
  --primary-bg: #F2F5F7;
  --shadow: 0 4px 18px 0 rgba(36,55,108,0.10);
  --white: #fff;
  --border: #e5e7eb;
  --card-outline: #e0e7ef;
  --green-pill: #33AD62;
  --blue: #0893A5;
  --blue-faint: #e6f2f5;
  --blue-border: #b3dae4;
  --text-main: #181C23;
}

:root[data-theme="dark"] {
  --background-50: #1b1e23;
  --sidebar-width: 246px;
  --primary: #26cdf2;
  --primary-bg: #23272f;
  --shadow: 0 4px 18px 0 rgba(20,38,66,0.21);
  --white: #191c20;
  --border: #2c2f38;
  --card-outline: #293043;
  --green-pill: #33AD62;
  --blue: #36c9ff;
  --blue-faint: #23374d;
  --blue-border: #63b9d7;
  --text-main: #ebf4fa;
}

/* ----------- LAYOUT: STICKY SIDEBAR, SCROLLABLE MAIN ----------- */
html, body {
  font-family: 'Futura PT', Arial, sans-serif;
  background: var(--background-50);
  color: var(--text-main);
  width: 100vw;
  min-height: 100vh;
  font-size: 16px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  /* vertical scroll handled by main-content */
}

#app-container {
  width: 100vw;
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  background: var(--white);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  box-shadow: none;
  border-right: 1.5px solid var(--border);
}

.main-content,
.profile-main-content,
.project-detail-content,
.create-user-content,
.dresult-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  width: calc(100vw - var(--sidebar-width));
  background: var(--background-50);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

body::-webkit-scrollbar,
.main-content::-webkit-scrollbar,
.profile-main-content::-webkit-scrollbar,
.project-detail-content::-webkit-scrollbar,
.create-user-content::-webkit-scrollbar,
.dresult-content::-webkit-scrollbar {
  width: 8px;
  background: transparent;
}
body::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb,
.profile-main-content::-webkit-scrollbar-thumb,
.project-detail-content::-webkit-scrollbar-thumb,
.create-user-content::-webkit-scrollbar-thumb,
.dresult-content::-webkit-scrollbar-thumb {
  background: #e4e4e4;
  border-radius: 6px;
}

/* ==== THE REST OF YOUR CSS CONTINUES UNCHANGED ==== */

/* Sidebar */
.sidebar-logo {
  display: flex; 
  justify-content: center;
  align-items: center;
}
.sidebar-section {
  padding-left: 26px;
  display: flex; flex-direction: column;
  margin-bottom: 12px;
  gap: 0.5rem;
}
.sidebar-title {
  font-size: 1.06rem;
  font-weight: 600;
  /*margin: 22px 0 7px 0;*/
  color: #222;
}
.sidebar-section a, .sidebar-logout {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.08rem;
  color: var(--text-main);
  text-decoration: none;
  background: none;
  padding: 8px 0 8px 2px;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
}
.sidebar-section a.selected {
  background: var(--blue-faint);
  color: var(--blue);
}
.sidebar-section svg {
  width: 24px; 
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  overflow: hidden;
}
.sidebar-logout {
  margin-top: auto;
  margin-left: 0;
  margin-bottom: 36px;
  color: var(--text-main);
  font-size: 1.08rem;
  font-weight: 500;
  gap: 14px;
  padding-left: 26px;
}
.sidebar-logout svg {
  width: 24px; height: 24px; flex-shrink: 0;
}

/* -- (Paste the rest of your unchanged CSS here! For space, this section is truncated) -- */

/* ... all your cards, pills, carousel, project grid, tables, dark mode overrides, etc. ... */
/* (This can be very long, but do not change any of it) */


/* Main Content */
.main-content {
  flex: 1 1 0;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--background-50);
  height: 100vh;
  overflow: hidden;
}
.page-header {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 36px 0 24px 46px;
  letter-spacing: -1.2px;
  color: var(--text-main);
}
.map-main-bg {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.map-img-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
}
/* Carousel Overlay (floating card) */
.carousel-overlay {
  position: absolute;
  left: 50%;
  top: 320px;
  transform: translate(-50%, 44%);
  background: var(--white);
  width: 91%;
  min-width: 880px;
  max-width: 1240px;
  box-shadow: var(--shadow);
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  padding: 30px 30px 24px 30px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.carousel-controls {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 18px;
}
.carousel-label {
  font-size: 1rem;
  color: #636e7d;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.carousel-search {
  border: 1.2px solid var(--border);
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 1rem;
  background: #fcfdff;
  color: var(--text-main);
  width: 220px;
}
.carousel-dropdown {
  border: 1.2px solid var(--border);
  border-radius: 8px;
  padding: 9px 24px 9px 12px;
  font-size: 1rem;
  background: #fff;
  color: var(--text-main);
  min-width: 160px;
}
.carousel-row {
  display: flex;
  flex-direction: row;
  gap: 25px;
  width: 100%;
  justify-content: center;
  align-items: stretch;
  /* Allow overflow so injected cards are always visible */
  overflow: visible;
  position: relative;
}
.carousel-btn {
  /* Remove all box styles, padding, min sizes */
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 12px !important;
  min-width: unset !important;
  min-height: unset !important;
  width: auto !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

.carousel-btn:active,
.carousel-btn:focus,
.carousel-btn:hover {
  background: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.carousel-btn[disabled] {
  opacity: 0.33;
  cursor: default;
}

.carousel-btn svg {
  width: 32px;
  height: 32px;
  color: #212b45;
  stroke-width: 2.1px;
  background: none !important;
  border-radius: 0 !important;
  display: block;
}
:root[data-theme="dark"] .carousel-btn svg {
  color: #f5f6fa;
}


/* Carousel Card */
.carousel-card {
  min-width: 172px;
  max-width: 172px;
  height: 192px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(36,55,108,0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 17px 11px 11px 11px;
  border: 2px solid var(--card-outline);
  /* Make sure JS-injected cards don't get flex: 0 or hidden */
  flex-shrink: 0;
  flex-grow: 0;
  z-index: 2;
}
.carousel-result-pill {
  background: var(--green-pill);
  border-radius: 7px;
  color: #fff;
  width: 100%;
  text-align: center;
  padding: 13px 0 8px 0;
  font-size: 1.13rem;
  font-weight: 700;
  margin-bottom: 11px;
  letter-spacing: 0.4px;
}
.carousel-card-labels {
  width: 100%;
  font-size: 1.02rem;
  font-weight: 500;
  color: #313648;
  margin-bottom: 10px;
  text-align: center;
}
.carousel-card-footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.carousel-card-footer .btn {
  width: 100%;
  padding: 7px 0;
  font-size: 1.02rem;
  background: #fff;
  color: var(--blue);
  border: 1.7px solid var(--blue-border);
  border-radius: 8px;
  font-weight: 600;
  margin-top: 4px;
  transition: background .15s;
}
.carousel-card-footer .btn:active {
  background: #eaf6fb;
}
.carousel-dots {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  justify-content: center;
}
.carousel-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e4e4e4;
  transition: background 0.15s;
  cursor: pointer;
}
.carousel-dot.active {
  background: var(--blue);
}

/* --- Ensure light mode carousel cards stay white, borders/shadows visible --- */
:root[data-theme="light"] .carousel-card,
:root[data-theme="light"] .carousel-arrow {
  background: #fff !important;
  border-color: var(--card-outline) !important;
  color: var(--text-main) !important;
}
:root[data-theme="light"] .carousel-card-footer .btn {
  background: #fff !important;
  color: var(--blue) !important;
  border-color: var(--blue-border) !important;
}
:root[data-theme="light"] .carousel-search,
:root[data-theme="light"] .carousel-dropdown {
  background: #fcfdff !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
}

/* Dark mode for carousel and its overlay card */
:root[data-theme="dark"] .carousel-overlay,
:root[data-theme="dark"] .carousel-row,
:root[data-theme="dark"] .carousel-card {
  background: #181b1f !important;
  color: #eaf4fc !important;
}

:root[data-theme="dark"] .carousel-card {
  box-shadow: 0 4px 18px rgba(20,30,56,0.24) !important;
}

:root[data-theme="dark"] .carousel-result-pill {
  /* keep pill green, or adjust if you want a darker green for dark mode */
  background: #33ad62 !important;
  color: #fff !important;
}

:root[data-theme="dark"] .carousel-btn,
:root[data-theme="dark"] .carousel-filters select,
:root[data-theme="dark"] .carousel-filters input {
  background: #181b1f !important;
  color: #eaf4fc !important;
  border-color: #333a47 !important;
}

:root[data-theme="dark"] .carousel-card-footer .btn {
  background: #181b1f !important;
  color: #26a1de !important;
  border-color: #26a1de !important;
}

:root[data-theme="dark"] .carousel-dot {
  background: #373b44 !important;
}
:root[data-theme="dark"] .carousel-dot.active {
  background: #26a1de !important;
}


/* Utility */
.btn {
  border: none;
  outline: none;
  font-family: inherit;
  cursor: pointer;
}
input:focus, select:focus {
  outline: 2px solid var(--blue-border);
}
body::-webkit-scrollbar, .main-content::-webkit-scrollbar {
  display: none;
}

/* ---- Results Page: Table, Card, Status Pills, Download Dropdown ---- */

.results-card {
  width: 88vw;
  max-width: 1440px;
  margin: 0 auto;
  margin-top: 18px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 rgba(36,55,108,0.11);
  padding: 34px 38px 32px 38px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.results-controls {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
}
.results-filter {
  border: 1.2px solid var(--border);
  border-radius: 8px;
  padding: 9px 24px 9px 13px;
  font-size: 1rem;
  background: #fff;
  color: var(--text-main);
}
.results-label {
  font-size: 1rem;
  color: #636e7d;
  font-weight: 500;
  margin-right: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.results-search {
  border: 1.2px solid var(--border);
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 1rem;
  background: #fcfdff;
  color: var(--text-main);
  width: 220px;
}
.results-download-dropdown {
  position: relative;
  display: inline-block;
}
.results-download-btn {
  background: #fff;
  color: var(--blue);
  border: 1.5px solid var(--blue-border);
  border-radius: 9px;
  padding: 8px 18px;
  font-size: 1.04rem;
  font-family: inherit;
  font-weight: 600;
  display: flex;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 9px 0 rgba(36,55,108,0.08);
  transition: background .15s, border .15s;
}
.results-download-btn:active {
  background: var(--blue-faint);
}
.results-dropdown-list {
  display: none;
  position: absolute;
  right: 0; top: 110%;
  min-width: 188px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 7px 24px rgba(36,55,108,0.14);
  border: 1.2px solid var(--border);
  z-index: 10;
  font-size: 1.01rem;
  overflow: hidden;
}
.results-download-dropdown:hover .results-dropdown-list {
  display: block;
}
.results-dropdown-list > div {
  padding: 13px 22px;
  cursor: pointer;
  transition: background .14s;
}
.results-dropdown-list > div:hover {
  background: var(--blue-faint);
}

.results-table-wrap {
  width: 100%;
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(36,55,108,0.06);
}
.results-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  font-size: 1.01rem;
  color: var(--text-main);
}
.results-table th,
.results-table td {
  padding: 12px 15px;
  text-align: left;
  font-family: inherit;
  font-size: 1.01rem;
}
.results-table th {
  background: #f6fafd;
  color: #222b3b;
  font-weight: 600;
  border-bottom: 2.5px solid var(--card-outline);
}
.results-table tr {
  background: #fff;
  transition: background .12s;
}
.results-table tr.row-blue {
  background: #eaf6fb;
}
.results-table tr:hover {
  background: #e2e8f0;
}
.results-table td {
  border-bottom: 1.2px solid var(--card-outline);
  vertical-align: middle;
}
.results-table td:first-child, .results-table th:first-child {
  width: 32px;
}
.results-table input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--blue);
}
.status {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
}
.status-process { background: #FFB84B; color: #854C00; }
.status-positive { background: #33AD62; }
.status-negative { background: #AEB7C0; color: #223344; }
.action-delete {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  color: #EB5032;
  transition: background .13s;
  border-radius: 7px;
}
.action-delete:active { background: #f8e4e0; }

/* Dark Mode adjustments */
:root[data-theme="dark"] .results-card,
:root[data-theme="dark"] .results-dropdown-list,
:root[data-theme="dark"] .results-download-btn {
  background: #22252c !important;
  color: var(--text-main) !important;
  border-color: var(--card-outline) !important;
}
:root[data-theme="dark"] .results-table th,
:root[data-theme="dark"] .results-table tr {
  background: #23272f !important;
  color: var(--text-main) !important;
}
:root[data-theme="dark"] .results-table tr.row-blue {
  background: #273b4a !important;
}
:root[data-theme="dark"] .results-table td {
  border-bottom: 1.2px solid var(--card-outline) !important;
}
:root[data-theme="dark"] .results-search,
:root[data-theme="dark"] .results-filter {
  background: #2e323c !important;
  color: var(--text-main) !important;
  border-color: var(--blue-border) !important;
}
:root[data-theme="dark"] .status-process { background: #ce9f29 !important; color: #fff !important; }
:root[data-theme="dark"] .status-positive { background: #33AD62 !important; color: #fff !important; }
:root[data-theme="dark"] .status-negative { background: #7b848c !important; color: #fff !important; }
:root[data-theme="dark"] .action-delete svg { color: #eb8674; }


/* ---- MANAGE PROJECTS: Perfect pill filters, grid, content alignment ---- */

.manage-projects-section {
  width: 100%;
  margin-top: 26px;
  padding-left: 0;
}
.manage-projects-filters-pills {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-bottom: 24px;
  margin-left: 52px;
}
.mp-pill {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: #0292a1;
  background: #fff;
  border: 1.8px solid #0292a1;
  border-radius: 8px;
  padding: 6px 23px;
  cursor: pointer;
  transition: background .13s, color .13s, border .13s;
  outline: none;
}
.mp-pill-active {
  background: #0292a1;
  color: #fff;
  border: 1.8px solid #0292a1;
}

.mp-cards-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 36px;
  margin-left: 52px;
  width: auto;
  min-width: 0;
  align-items: flex-start;
}
.manage-projects-card {
  width: 235px;
  min-width: 235px;
  max-width: 235px;
  height: 146px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(36,55,108,0.11);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  position: relative;
  transition: box-shadow .13s;
}
.manage-projects-card-pic {
  width: 87px;
  height: 100%;
  background: #d3d8de;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.04rem;
  color: #23272f;
  text-align: center;
  padding: 0;
  font-weight: 500;
}
.manage-projects-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 16px 6px 16px 13px;
}
.proj-title {
  font-size: 1.07rem;
  font-weight: 700;
  color: #181C23;
  margin-bottom: 4px;
  letter-spacing: .01em;
}
.proj-meta {
  font-size: 1.01rem;
  color: #434852;
  font-weight: 400;
  line-height: 1.19;
}
.manage-projects-delete-btn {
  position: absolute;
  right: 12px;
  top: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #B6B8BA;
  border-radius: 7px;
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .13s;
}
.manage-projects-delete-btn svg {
  color: #B6B8BA;
  transition: color .15s;
}
.manage-projects-delete-btn:hover,
.manage-projects-delete-btn:focus {
  background: #f4f4f5;
  color: #EB5032;
}
.manage-projects-delete-btn:hover svg,
.manage-projects-delete-btn:focus svg {
  color: #EB5032;
}

.manage-projects-card-add {
  width: 235px;
  min-width: 235px;
  max-width: 235px;
  height: 146px;
  background: #fff;
  border-radius: 12px;
  border: 2.4px dashed #bcccdc;
  box-shadow: 0 2px 6px rgba(36,55,108,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.13rem;
  color: #222b3b;
  font-weight: 600;
  cursor: pointer;
  transition: border .14s, background .14s;
}
.manage-projects-card-add:hover {
  background: #f7fcff;
  border-color: #0292a1;
  color: #0893A5;
}

/* Dark mode */
:root[data-theme="dark"] .manage-projects-card, 
:root[data-theme="dark"] .manage-projects-card-add {
  background: #22252c !important;
  color: var(--text-main) !important;
  border-color: var(--card-outline) !important;
}
:root[data-theme="dark"] .manage-projects-card-pic {
  background: #384152 !important;
  color: #bbcbe3 !important;
}
:root[data-theme="dark"] .manage-projects-card-info {
  color: #e7f2fd !important;
}
:root[data-theme="dark"] .manage-projects-delete-btn svg {
  color: #eb8674 !important;
}

/* ========== USER PROFILE PAGE STYLES ========== */

/* Main layout */
.profile-main-content {
  width: 100%;
  height: 100vh;
  position: relative;
  padding-top: 40px;
}
.profile-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #181C23;
  margin-left: 64px;
  margin-bottom: 28px;
}
.profile-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 56px;
  margin-left: 64px;
  margin-bottom: 38px;
}

/* Profile cards */
.profile-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 7px 30px rgba(36,55,108,0.11);
  padding: 38px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 328px;
  max-width: 370px;
  min-height: 420px;
}
.profile-card-edit {
  align-items: flex-start;
  min-width: 470px;
  max-width: 520px;
  width: 520px;
  padding-left: 44px;
  padding-right: 44px;
}

/* Avatar */
.profile-avatar {
  width: 78px; height: 78px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: #e0e7ef;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.profile-card-edit .profile-avatar {
  width: 46px; height: 46px;
  margin-bottom: 0;
}

/* Headings & info */
.profile-card h2, .profile-card-edit h2 {
  font-size: 1.24rem;
  font-weight: 700;
  color: #151924;
  margin: 0 0 5px 0;
  letter-spacing: .01em;
  text-align: center;
}
.profile-hierarchy {
  font-size: 1.04rem;
  color: #757b8a;
  margin-bottom: 13px;
  text-align: center;
}
.profile-label {
  font-size: 1.01rem;
  color: #7e8ba7;
  font-weight: 600;
  margin-top: 6px;
  margin-bottom: 0px;
  text-align: left;
  display: block;
}
.profile-label-pw { margin-top: 20px; }
.profile-info {
  width: 100%;
  font-size: 1.02rem;
  color: #181C23;
  font-weight: 500;
  word-break: break-all;
  margin-bottom: 8px;
  text-align: center;
}

/* Edit profile card row */
.profile-edit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 11px 0 16px 0;
}
.profile-edit-fullname {
  font-weight: 700;
  font-size: 1.09rem;
  color: #232932;
  margin-bottom: 2px;
}
.profile-edit-hierarchy {
  font-size: 1rem;
  color: #757b8a;
}

/* Edit Profile Inputs */
.profile-card-edit label {
  font-size: 1.01rem;
  color: #5b6a86;
  font-weight: 500;
  margin-bottom: 5px;
  margin-top: 13px;
  display: block;
}
.profile-card-edit input[type='text'],
.profile-card-edit input[type='email'],
.profile-card-edit input[type='password'] {
  width: 100%;
  border: 1.2px solid #d7dbe3;
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 1rem;
  font-family: 'Futura PT', Arial, sans-serif;
  color: #212b45;
  margin-bottom: 8px;
  outline: none;
  background: #fff;
  transition: border-color .15s;
}
.profile-card-edit input:focus { border-color: #0292a1; }
.profile-edit-btn,
.profile-pass-btn {
  margin-top: 14px;
  background: #04798a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.01rem;
  font-weight: 500;
  padding: 10px 0;
  width: 160px;
  cursor: pointer;
  transition: background .13s;
}
.profile-pass-btn { width: 180px; }
.profile-edit-btn:hover,
.profile-pass-btn:hover { background: #0292a1; }

/* PROJECTS ASSIGNED GRID */
.profile-projects-section {
  margin-left: 64px;
  margin-top: 35px;
}
.profile-projects-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #181C23;
  margin-bottom: 18px;
}
.profile-projects-row {
  display: flex;
  flex-direction: row;
  gap: 32px;
  margin-bottom: 22px;
}
.profile-project-card {
  width: 235px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(36,55,108,0.11);
  padding: 0;
  height: 124px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  position: relative;
  transition: box-shadow .13s;
}
.profile-project-card-pic {
  width: 78px;
  height: 100%;
  background: #d3d8de;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.02rem;
  color: #23272f;
  text-align: center;
  font-weight: 500;
}
.profile-project-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 14px 5px 14px 12px;
}
.profile-project-card-delete-btn {
  position: absolute;
  right: 12px;
  top: 13px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #B6B8BA;
  border-radius: 7px;
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .13s;
}
.profile-project-card-delete-btn svg {
  color: #B6B8BA;
  transition: color .15s;
}
.profile-project-card-delete-btn:hover,
.profile-project-card-delete-btn:focus {
  background: #f4f4f5;
  color: #EB5032;
}
.profile-project-card-delete-btn:hover svg,
.profile-project-card-delete-btn:focus svg {
  color: #EB5032;
}
.profile-project-card-add {
  width: 235px;
  height: 124px;
  background: #fff;
  border-radius: 12px;
  border: 2.4px dashed #bcccdc;
  box-shadow: 0 2px 6px rgba(36,55,108,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.13rem;
  color: #222b3b;
  font-weight: 600;
  cursor: pointer;
  transition: border .14s, background .14s;
}
.profile-project-card-add:hover {
  background: #f7fcff;
  border-color: #0292a1;
  color: #0893A5;
}

/* Dark mode */
:root[data-theme="dark"] .profile-card,
:root[data-theme="dark"] .profile-card-edit,
:root[data-theme="dark"] .profile-project-card,
:root[data-theme="dark"] .profile-project-card-add {
  background: #23272f !important;
  color: #e2f2ff !important;
  box-shadow: 0 7px 32px #10131a60 !important;
}
:root[data-theme="dark"] .profile-avatar { background: #384152 !important; }
:root[data-theme="dark"] .profile-project-card-pic { background: #384152 !important; }
:root[data-theme="dark"] .profile-project-card-info { color: #e7f2fd !important; }
:root[data-theme="dark"] .profile-project-card-delete-btn svg { color: #eb8674 !important; }
:root[data-theme="dark"] .profile-project-card-add { border-color: #3c4762 !important; }

/* ========== DETAILED RESULT PAGE STYLES ========== */

.dresult-content {
  width: 100%;
  min-height: 100vh;
  background: var(--background-50);
  padding-left: 0;
  padding-top: 28px;
  position: relative;
}

/* Header */
.dresult-header-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 92%;
  max-width: 1560px;
  margin: 0 auto 8px auto;
}
.dresult-title {
  font-size: 2.15rem;
  font-weight: 700;
  color: #212B45;
  letter-spacing: -.04em;
  margin-left: 16px;
}
.dresult-header-right {
  display: flex;
  align-items: center;
  gap: 23px;
}
.dresult-link {
  color: #0292a1;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  margin-right: 8px;
}
.dresult-download-btn {
  background: #04798a;
  color: #fff;
  font-size: 1.01rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 8px 24px;
  cursor: pointer;
  transition: background .13s;
}
.dresult-download-btn:hover { background: #0292a1; }

.dresult-id-label {
  font-size: 1.14rem;
  color: #232732;
  font-weight: 600;
  margin-left: 84px;
  margin-top: 8px;
  margin-bottom: 6px;
  letter-spacing: .01em;
}

/* Main card area */
.dresult-main-area {
  width: 92%;
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

/* Map/Chart Row */
.dresult-map-chart-row {
  width: 100%;
  margin-bottom: 14px;
}
.dresult-map-img {
  width: 100%;
  max-width: 100%;
  min-height: 158px;
  height: 158px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(36,55,108,0.09);
}

/* Result & Chart Row */
.dresult-results-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  margin: 14px 0 8px 0;
}
.dresult-positive-card {
  min-width: 212px;
  max-width: 212px;
  height: 204px;
  background: #33AD62;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(36,55,108,0.11);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-right: 24px;
  gap: 8px;
}
.dresult-pos-symbol {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 2px;
}
.dresult-pos-label {
  font-size: 1.33rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.dresult-pos-value {
  font-size: 1.11rem;
  font-weight: 500;
  letter-spacing: .01em;
  margin-top: 3px;
}

/* Chart area */
.dresult-chart-area {
  flex: 1;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(36,55,108,0.11);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 520px;
  max-width: 1280px;
  padding: 0 0 12px 0;
  margin-right: 0;
  position: relative;
  height: 204px;
  justify-content: flex-end;
}
.dresult-chart-img {
  width: 98%;
  height: 134px;
  margin: 19px 0 0 0;
  object-fit: contain;
  border-radius: 6px;
  background: #ecf2f7;
  display: block;
}
.dresult-chart-title {
  font-size: .98rem;
  font-weight: 500;
  color: #687994;
  margin: 7px 0 0 0;
  text-align: center;
}

/* Details grid */
.dresult-detail-row {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin: 19px 0 8px 0;
  width: 100%;
}
.dresult-detail-card {
  flex: 1 1 0;
  min-width: 178px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(36,55,108,0.09);
  padding: 18px 18px 13px 19px;
  display: flex;
  flex-direction: column;
  margin-right: 0;
  font-size: 1rem;
}
.dresult-detail-label {
  font-size: 1.01rem;
  font-weight: 600;
  color: #8fa4c2;
  margin-bottom: 2px;
  margin-top: 3px;
}
.dresult-detail-value {
  color: #232932;
  font-size: 1.01rem;
  font-weight: 500;
  margin-bottom: 2px;
}

/* Advanced button */
.dresult-advanced-btn {
  background: #fff;
  color: #0292a1;
  border: 1.6px solid #0292a1;
  border-radius: 7px;
  padding: 8px 24px;
  font-size: 1.02rem;
  font-weight: 500;
  margin: 24px 0 18px 0;
  cursor: pointer;
  transition: background .13s, color .13s;
}
.dresult-advanced-btn:hover {
  background: #f0fafd;
  color: #04798a;
}

/* Advanced details row */
.dresult-advanced-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-bottom: 15px;
}
.dresult-advanced-block {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 10px rgba(36,55,108,0.07);
  padding: 12px 15px 10px 15px;
  font-size: .98rem;
  color: #28364a;
  min-width: 150px;
  font-weight: 500;
  line-height: 1.22;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

/* Dark mode */
:root[data-theme="dark"] .dresult-content {
  background: #171a22 !important;
}
:root[data-theme="dark"] .dresult-title,
:root[data-theme="dark"] .dresult-id-label {
  color: #f1f8ff !important;
}
:root[data-theme="dark"] .dresult-detail-card,
:root[data-theme="dark"] .dresult-chart-area,
:root[data-theme="dark"] .dresult-advanced-block,
:root[data-theme="dark"] .dresult-advanced-btn {
  background: #23272f !important;
  color: #e1f4fe !important;
  border-color: #36455c !important;
  box-shadow: 0 4px 28px #10131a50 !important;
}
:root[data-theme="dark"] .dresult-map-img { background: #23272f !important; }
:root[data-theme="dark"] .dresult-positive-card {
  background: #33AD62 !important;
  color: #fff !important;
}
:root[data-theme="dark"] .dresult-link { color: #61dbfc !important; }
:root[data-theme="dark"] .dresult-download-btn { background: #1292c1 !important; }
:root[data-theme="dark"] .dresult-download-btn:hover { background: #018eb2 !important; }
:root[data-theme="dark"] .dresult-detail-label { color: #8dc8fa !important; }
:root[data-theme="dark"] .dresult-detail-value { color: #e7f2fd !important; }

.create-user-content {
  flex: 1 1 0;
  min-height: 100vh;
  background: var(--background-50);
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* Left align all content */
  padding-left: 84px;       /* Space from sidebar, tweak as needed for your layout */
  padding-top: 54px;
}

.create-user-title {
  font-size: 2.15rem;
  font-weight: 700;
  color: #181C23;
  margin-bottom: 38px;
  letter-spacing: -.01em;
  text-align: left;
  width: auto;
  margin-left: 0;
}

.create-user-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 34px 0 rgba(36,55,108,0.13);
  padding: 38px 44px 34px 44px;
  width: 570px;
  max-width: 570px;
  margin-left: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.create-user-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #131926;
  margin-bottom: 12px;
}
.create-user-section-label {
  font-size: 1.09rem;
  font-weight: 600;
  color: #2d3646;
  margin: 13px 0 5px 0;
}
.create-user-avatar {
  width: 68px; height: 68px;
  background: #eceef1;
  border-radius: 50%;
  margin: 16px 0 21px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.create-user-input {
  width: 100%;
  border: 1.2px solid #cfd7e1;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 1.03rem;
  font-family: 'Futura PT', Arial, sans-serif;
  color: #232b3a;
  margin-bottom: 13px;
  outline: none;
  background: #fff;
  transition: border-color .16s;
}
.create-user-input:focus {
  border-color: #0292a1;
}
.create-user-btn {
  margin-top: 23px;
  background: #04798a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.04rem;
  font-weight: 600;
  padding: 11px 38px;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .14s;
  box-shadow: 0 2px 9px rgba(36,55,108,0.09);
  align-self: flex-start;
}
.create-user-btn:hover {
  background: #0292a1;
}

/* Responsive fallback for narrow screens */
@media (max-width: 1100px) {
  .create-user-content {
    padding-left: 0;
    align-items: center;
  }
  .create-user-card {
    width: 94vw;
    max-width: 98vw;
    min-width: 0;
    padding: 24px 8vw;
  }
}

/* Dark mode */
:root[data-theme="dark"] .create-user-card {
  background: #23272f !important;
  color: #e2f2ff !important;
  box-shadow: 0 7px 32px #10131a60 !important;
}
:root[data-theme="dark"] .create-user-card-title,
:root[data-theme="dark"] .create-user-title {
  color: #e6f3ff !important;
}
:root[data-theme="dark"] .create-user-section-label {
  color: #c0d5f3 !important;
}
:root[data-theme="dark"] .create-user-input {
  background: #23272f !important;
  color: #e7f2fd !important;
  border-color: #39455e !important;
}
:root[data-theme="dark"] .create-user-input:focus {
  border-color: #1292c1 !important;
}
:root[data-theme="dark"] .create-user-btn {
  background: #1292c1 !important;
  color: #fff !important;
}
:root[data-theme="dark"] .create-user-btn:hover {
  background: #018eb2 !important;
}
:root[data-theme="dark"] .create-user-avatar {
  background: #37414d !important;
}

.project-detail-content {
  flex: 1 1 0;
  min-height: 100vh;
  background: var(--background-50);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 84px;
  padding-top: 48px;
  padding-bottom: 54px;
}

.project-detail-title {
  font-size: 2.15rem;
  font-weight: 700;
  color: #181C23;
  margin-bottom: 28px;
  letter-spacing: -.01em;
  text-align: left;
  width: auto;
}

.project-detail-top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 900px;
  margin-bottom: 36px;
}

.project-detail-form {
  flex: 1 1 0;
  min-width: 340px;
  margin-right: 48px;
}
.project-detail-label {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
  color: #222d40;
  margin-bottom: 6px;
  margin-top: 13px;
}
.project-detail-input {
  width: 100%;
  border: 1.2px solid #cfd7e1;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 1.03rem;
  font-family: 'Futura PT', Arial, sans-serif;
  color: #232b3a;
  margin-bottom: 8px;
  outline: none;
  background: #fff;
  transition: border-color .16s;
}
.project-detail-input:focus {
  border-color: #0292a1;
}
.project-detail-save-btn {
  margin-top: 18px;
  background: #04798a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.04rem;
  font-weight: 600;
  padding: 11px 36px;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .14s;
  box-shadow: 0 2px 9px rgba(36,55,108,0.09);
}
.project-detail-save-btn:hover {
  background: #0292a1;
}
.project-detail-picture {
  width: 196px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.project-detail-picture-box {
  width: 176px; height: 164px;
  background: #e1e6ea;
  color: #232b3a;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}
.project-detail-change-pic {
  background: none;
  border: none;
  color: #04798a;
  font-size: 1rem;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 2px;
}

.project-detail-users-label {
  font-size: 1.12rem;
  font-weight: 700;
  color: #1e2332;
  margin-top: 36px;
  margin-bottom: 10px;
}

.project-detail-users-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 22px rgba(36,55,108,0.09);
  padding: 28px 26px 12px 26px;
  width: 98%;
  max-width: 980px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.project-detail-users-tablebar {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.project-detail-users-select {
  margin: 0 7px;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #f6fafd;
  color: #232b3a;
  font-size: 1rem;
}
.project-detail-users-search {
  padding: 6px 14px;
  border: 1.2px solid #cfd7e1;
  border-radius: 8px;
  background: #fff;
  color: #232b3a;
  font-size: 1rem;
  width: 210px;
  margin: 0 8px;
}
.project-detail-users-add-btn {
  background: #04798a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.01rem;
  font-weight: 500;
  padding: 7px 22px;
  margin-left: 8px;
  cursor: pointer;
  transition: background .13s;
}
.project-detail-users-add-btn:hover {
  background: #0292a1;
}
.project-detail-users-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1rem;
  margin-top: 3px;
}
.project-detail-users-table th, .project-detail-users-table td {
  padding: 11px 8px;
  text-align: left;
  font-size: 1.01rem;
}
.project-detail-users-table th {
  color: #1c2333;
  font-weight: 700;
}
.project-detail-users-table tr {
  border-radius: 6px;
  background: #f6fafc;
}
.project-detail-users-table tbody tr:nth-child(2n) {
  background: #f2f7fb;
}
.project-detail-users-table td {
  vertical-align: middle;
}
.role-badge {
  display: inline-block;
  padding: 2px 18px;
  border-radius: 16px;
  font-size: .99rem;
  font-weight: 600;
  color: #fff;
}
.role-admin { background: #35b77d; }
.role-researcher { background: #ffd08a; color: #c47a08; }
.role-user { background: #ef7c7c; }
.table-action-btn {
  background: none;
  border: none;
  margin-right: 2px;
  cursor: pointer;
  padding: 2px;
  vertical-align: middle;
}
.table-action-btn:last-child { margin-right: 0; }

.project-detail-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-top: 22px;
  margin-bottom: 18px;
  gap: 16px;
}
.project-detail-archive-link {
  margin-left: 8px;
  color: #04798a;
  text-decoration: underline;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
}

/* Responsive for smaller screens */
@media (max-width: 1100px) {
  .project-detail-content { padding-left: 12px; }
  .project-detail-top { flex-direction: column; width: 99vw; }
  .project-detail-users-card { width: 100%; max-width: 99vw; }
}

/* Dark mode for project details */
:root[data-theme="dark"] .project-detail-content,
:root[data-theme="dark"] .project-detail-users-card {
  background: #202227 !important;
  color: #e2f2ff !important;
}
:root[data-theme="dark"] .project-detail-title {
  color: #e6f3ff !important;
}
:root[data-theme="dark"] .project-detail-label,
:root[data-theme="dark"] .project-detail-users-label {
  color: #c0d5f3 !important;
}
:root[data-theme="dark"] .project-detail-input,
:root[data-theme="dark"] .project-detail-users-search {
  background: #23272f !important;
  color: #e7f2fd !important;
  border-color: #39455e !important;
}
:root[data-theme="dark"] .project-detail-input:focus {
  border-color: #1292c1 !important;
}
:root[data-theme="dark"] .project-detail-save-btn,
:root[data-theme="dark"] .project-detail-users-add-btn {
  background: #1292c1 !important;
  color: #fff !important;
}
:root[data-theme="dark"] .project-detail-save-btn:hover,
:root[data-theme="dark"] .project-detail-users-add-btn:hover {
  background: #018eb2 !important;
}
:root[data-theme="dark"] .project-detail-picture-box {
  background: #2d313a !important;
  color: #e3edfa !important;
}
:root[data-theme="dark"] .role-badge.role-admin { background: #239268; }
:root[data-theme="dark"] .role-badge.role-user { background: #be5c5c; }
:root[data-theme="dark"] .role-badge.role-researcher { background: #f7be62; color: #7b4a05; }

:root[data-theme="dark"] .project-detail-users-table tr {
  background: #23272f !important;   /* main dark background for table rows */
}
:root[data-theme="dark"] .project-detail-users-table tbody tr:nth-child(2n) {
  background: #22252a !important;   /* slightly different for zebra effect */
}
:root[data-theme="dark"] .project-detail-users-card {
  background: #23272f !important;
  color: #e2f2ff !important;
}
:root[data-theme="dark"] .project-detail-users-table th {
  color: #c0d5f3 !important;
}
:root[data-theme="dark"] .project-detail-users-table td {
  color: #e2f2ff !important;
}

/* ---- MANAGE USER PAGE TABLE, PILLS, ACTIONS ---- */

    .manage-users-table-wrap {
      width: 100%;
      max-width: 1480px;
      margin: 32px auto 0 auto;
      background: none;
    }
    .mut-table-controls {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      margin-bottom: 14px;
      margin-right: 8px;
    }
    .mut-add-btn {
      font-size: 1rem;
      font-weight: 500;
      background: #0292a1;
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 9px 20px;
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(36,55,108,0.06);
      transition: background .14s;
    }
    .mut-add-btn:hover { background: #04798a; }

    .mut-table-scroll {
      width: 100%;
      background: #fff;
      border-radius: 17px;
      box-shadow: 0 7px 30px rgba(36,55,108,0.13);
      padding: 18px 0 4px 0;
      overflow-x: auto;
    }
    .mut-table {
      border-collapse: separate;
      border-spacing: 0;
      width: 100%;
      min-width: 1050px;
      font-size: 1.01rem;
      background: none;
    }
    .mut-table th, .mut-table td {
      text-align: left;
      padding: 11px 15px;
      font-weight: 500;
      color: #212B45;
    }
    .mut-table th {
      font-size: 1.02rem;
      font-weight: 600;
      color: #222;
      background: none;
      border-bottom: 2.3px solid #e3e6eb;
      letter-spacing: .01em;
    }
    .mut-table td {
      font-size: 1rem;
      font-weight: 500;
      border-bottom: 1.1px solid #f1f3f7;
      background: none;
      vertical-align: middle;
    }
    .mut-table tr:last-child td { border-bottom: none; }
    .mut-table input[type='checkbox'] {
      accent-color: #0292a1;
      width: 1.05em;
      height: 1.05em;
      border-radius: 5px;
    }

    /* Role pill colors */
    .mut-role {
      display: inline-block;
      padding: 3.5px 18px;
      border-radius: 12px;
      font-size: .97rem;
      font-weight: 600;
      letter-spacing: .03em;
      text-align: center;
      line-height: 1.3;
      margin-right: 2px;
    }
    .mut-role-admin {
      background: #d5fbe1;
      color: #33AD62;
    }
    .mut-role-researcher {
      background: #ffeed0;
      color: #FFB84B;
    }
    .mut-role-user {
      background: #f8d6d6;
      color: #eb5032;
    }

    /* Project chips */
    .mut-project {
      display: inline-block;
      background: #e7f7ff;
      color: #0b7bb2;
      font-size: .98rem;
      font-weight: 600;
      border-radius: 12px;
      padding: 2px 12px;
      margin-right: 5px;
      margin-bottom: 2px;
    }

    /* Action icons */
    .mut-action-btn {
      background: none;
      border: none;
      border-radius: 6px;
      padding: 2px 3px;
      cursor: pointer;
      margin-right: 4px;
      vertical-align: middle;
      transition: background .11s;
      display: inline-flex;
      align-items: center;
    }
    .mut-action-btn svg {
      color: #7b84a1;
      vertical-align: middle;
      transition: color .13s;
    }
    .mut-action-btn:hover svg { color: #0292a1; }
    .mut-delete svg { color: #EB5032; }
    .mut-delete:hover svg { color: #ff3623; }

    /* Responsive table for large desktop only (no scroll for 1080p) */
    @media (max-width: 1480px) {
      .manage-users-table-wrap { max-width: 99vw; }
      .mut-table-scroll { padding-left: 6px; padding-right: 6px; }
    }

    :root[data-theme="dark"] .mut-table-scroll {
      background: #23272f !important;
      box-shadow: 0 7px 28px #10131a80 !important;
    }
    :root[data-theme="dark"] .mut-table th,
    :root[data-theme="dark"] .mut-table td {
      color: #d7e6ff !important;
      border-color: #313949 !important;
    }
    :root[data-theme="dark"] .mut-table th {
      background: none !important;
      color: #c8daf6 !important;
    }
    :root[data-theme="dark"] .mut-table tr {
      background: none !important;
    }
    :root[data-theme="dark"] .mut-role-admin {
      background: #143f26 !important; color: #33AD62 !important;
    }
    :root[data-theme="dark"] .mut-role-researcher {
      background: #3c2f13 !important; color: #ffbb38 !important;
    }
    :root[data-theme="dark"] .mut-role-user {
      background: #422525 !important; color: #eb5032 !important;
    }
    :root[data-theme="dark"] .mut-project {
      background: #253045 !important;
      color: #74caf6 !important;
    }
    :root[data-theme="dark"] .mut-action-btn svg { color: #8da0c7 !important; }
    :root[data-theme="dark"] .mut-delete svg { color: #eb8674 !important; }

.login-bg {
  background: #f7f8f8;
  min-height: 100vh;
  font-family: 'Futura PT', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.auth-center-wrap {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.auth-container {
  margin-top: 42px;
  width: 900px;
  min-height: 265px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 38px 0 rgba(36,55,108,0.12);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 56px 0 54px 0;
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}

.auth-left {
  width: 320px;
  padding-left: 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 130px;
}
.auth-logo {
  width: 250px;
}
.auth-title {
  font-family: 'Futura PT', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #181C23;
  margin-top: 4px;
  margin-bottom: 0;
  letter-spacing: -.02em;
}
.auth-label {
  align-self: flex-start;
}
.auth-right {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding-top: 10px;
  padding-right: 55px;
  width: 100%;
  position: relative;
  min-height: 130px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-end;
  height: 128px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 350px;
}
.auth-input {
  font-family: 'Futura PT', Arial, sans-serif;
  width: 330px;
  padding: 12px 17px;
  font-size: 1.07rem;
  border: 1.2px solid #cad3e1;
  border-radius: 7px;
  margin-bottom: 0;
  background: #fff;
  color: #232932;
  outline: none;
  transition: border-color .16s;
  box-sizing: border-box;
  margin-top: 18px;
  width: 100%;
  margin-bottom: 13px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccd6dd;
  font-size: 1.03rem;
  font-family: 'Futura PT', Arial, sans-serif;
  color: #232b3a;
  background: #fff;
}
.auth-input:focus {
  border-color: #0893A5;
}
.auth-btn {
  font-family: 'Futura PT', Arial, sans-serif;
  background: #0893A5;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 32px;
  font-size: 1.04rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 16px rgba(36,55,108,0.11);
  transition: background .13s;
  position: absolute;
  right: 40;
  bottom: -100px;
  letter-spacing: .01em;
  min-width: 160px;
  border: none;
  margin-top: 20px;
  margin-left: 70px;
}
.auth-btn:hover {
  background: #04798a;
}
.auth-footer {
  width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 18px;
}
.auth-links {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: .97rem;
  margin-left: 4px;
}
.auth-links a {
  color: #3d4a5c;
  text-decoration: underline;
  margin: 0 3px;
  font-family: inherit;
  font-weight: 400;
  transition: color .12s;
}
.auth-links a:hover {
  color: #0893A5;
}
.auth-links span {
  margin: 0 4px;
  color: #bbb;
}
.auth-copyright {
  font-size: .96rem;
  color: #bbb;
  margin-right: 4px;
  font-family: inherit;
  font-weight: 400;
}

@media (max-width: 1000px) {
  .auth-container, .auth-footer {
    width: 98vw;
    min-width: 0;
  }
  .auth-container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .auth-footer {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 740px) {
  .auth-container {
    flex-direction: column;
    align-items: center;
    width: 98vw;
    padding: 34px 2vw 24px 2vw;
  }
  .auth-left, .auth-right {
    padding-left: 0;
    padding-right: 0;
    width: 98%;
    align-items: center;
    text-align: center;
  }
  .auth-right { margin-top: 22px; align-items: center; }
  .auth-input { width: 99%; }
  .auth-btn {
    position: static;
    margin-top: 17px;
    margin-bottom: 0;
  }
  .auth-footer {
    flex-direction: column;
    align-items: flex-start;
    width: 98vw;
    gap: 6px;
    padding-left: 2vw;
    padding-right: 2vw;
  }
}

.su-main-content {
  width: 100%;
  min-height: 100vh;
  background: var(--background-50);
  display: flex;
  flex-direction: column;
  padding-top: 0;
}
.su-section { width: 100%; }
.su-tabs {
  display: flex;
  gap: 13px;
  margin-left: 56px;
  margin-bottom: 18px;
}
.su-tab {
  font-size: 1rem;
  font-weight: 500;
  color: #0292a1;
  background: #fff;
  border: 1.8px solid #0292a1;
  border-radius: 8px;
  padding: 6px 23px;
  cursor: pointer;
  outline: none;
  transition: background .13s, color .13s, border .13s;
}
.su-tab-active {
  background: #0292a1;
  color: #fff;
  border: 1.8px solid #0292a1;
}
.su-cards-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 36px;
  margin-left: 56px;
  margin-bottom: 34px;
  align-items: flex-start;
}
.su-card {
  width: 235px; min-width: 235px; max-width: 235px; height: 146px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(36,55,108,0.11);
  display: flex; flex-direction: row; align-items: stretch;
  position: relative;
  transition: box-shadow .13s;
}
.su-card-pic {
  width: 87px; height: 100%; background: #d3d8de;
  border-top-left-radius: 12px; border-bottom-left-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.04rem; color: #23272f; font-weight: 500;
}
.su-card-info {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  gap: 3px;
  padding: 16px 6px 16px 13px;
}
.su-card-title { font-size: 1.07rem; font-weight: 700; color: #181C23; margin-bottom: 4px; letter-spacing: .01em; }
.su-card-desc { font-size: 1.01rem; color: #434852; font-weight: 400; line-height: 1.19; }
.su-card-delete {
  position: absolute; right: 12px; top: 14px; background: none; border: none; cursor: pointer; padding: 0;
  color: #B6B8BA; border-radius: 7px; width: 27px; height: 27px; display: flex; align-items: center; justify-content: center;
  transition: color .15s, background .13s;
}
.su-card-delete svg { color: #B6B8BA; transition: color .15s; }
.su-card-delete:hover svg { color: #EB5032; }
.su-card-add {
  width: 235px; min-width: 235px; max-width: 235px; height: 146px;
  background: #fff; border-radius: 12px;
  border: 2.4px dashed #bcccdc;
  box-shadow: 0 2px 6px rgba(36,55,108,0.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.13rem; color: #222b3b; font-weight: 600; cursor: pointer;
  transition: border .14s, background .14s;
}
.su-card-add:hover { background: #f7fcff; border-color: #0292a1; color: #0893A5; }

.su-users-table-wrap {
  margin-left: 56px;
  margin-right: 56px;
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 7px 30px rgba(36,55,108,0.13);
  padding: 18px 0 4px 0;
  overflow-x: auto;
}
.su-users-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 900px;
  font-size: 1.01rem;
  background: none;
}
.su-users-table th, .su-users-table td {
  text-align: left;
  padding: 11px 15px;
  font-weight: 500;
  color: #212B45;
}
.su-users-table th {
  font-size: 1.02rem;
  font-weight: 600;
  color: #222;
  background: none;
  border-bottom: 2.3px solid #e3e6eb;
  letter-spacing: .01em;
}
.su-users-table td {
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1.1px solid #f1f3f7;
  background: none;
  vertical-align: middle;
}
.su-users-table tr:nth-child(2n) { background: #f2f7fb; }

.su-role-badge {
  display: inline-block;
  padding: 3.5px 18px;
  border-radius: 12px;
  font-size: .97rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-align: center;
  line-height: 1.3;
}
.su-role-admin { background: #d5fbe1; color: #33AD62; }
.su-role-user { background: #f8d6d6; color: #eb5032; }
.su-role-researcher { background: #ffeed0; color: #FFB84B; }

.su-action-btn {
  background: none; border: none; border-radius: 6px; padding: 2px 3px;
  cursor: pointer; margin-right: 4px; vertical-align: middle;
  display: inline-flex; align-items: center;
}
.su-action-btn svg { color: #7b84a1; transition: color .13s; }
.su-action-btn:hover svg { color: #0292a1; }
.su-delete svg { color: #eb5032; }
.su-delete:hover svg { color: #ff3623; }

.su-archive-title {
  margin-left: 56px;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 36px;
}

@media (max-width: 1100px) {
  .su-cards-grid { margin-left: 10px; }
  .su-tabs, .su-archive-title { margin-left: 16px; }
  .su-users-table-wrap { margin-left: 8px; margin-right: 8px; }
}

.su-org-edit-content {
  width: 100%;
  min-height: 100vh;
  background: var(--background-50);
  padding-left: 0;
  padding-top: 28px;
  position: relative;
}
.su-org-edit-header { margin-left: 52px; }
.su-org-edit-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: #181C23;
  margin-bottom: 28px;
}
.su-org-edit-form-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin-left: 52px;
  margin-bottom: 34px;
  gap: 52px;
}
.su-org-edit-form {
  flex: 1 1 0;
  min-width: 340px;
  max-width: 400px;
  margin-right: 48px;
  display: flex;
  flex-direction: column;
}
.su-org-edit-label {
  font-size: 1.07rem;
  font-weight: 700;
  color: #222d40;
  margin-bottom: 8px;
  margin-top: 12px;
}
.su-org-edit-input {
  width: 100%;
  border: 1.2px solid #cfd7e1;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 1.03rem;
  color: #232b3a;
  margin-bottom: 13px;
  background: #fff;
  transition: border-color .16s;
}
.su-org-edit-input:focus { border-color: #0292a1; }
.su-org-edit-save-btn {
  margin-top: 10px;
  background: #04798a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.04rem;
  font-weight: 600;
  padding: 11px 38px;
  cursor: pointer;
  transition: background .14s;
  box-shadow: 0 2px 9px rgba(36,55,108,0.09);
  align-self: flex-start;
}
.su-org-edit-save-btn:hover { background: #0292a1; }
.su-org-edit-picture {
  width: 196px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.su-org-edit-picture-box {
  width: 176px; height: 164px;
  background: #e1e6ea;
  color: #232b3a;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}
.su-org-edit-change-pic {
  background: none;
  border: none;
  color: #04798a;
  font-size: 1rem;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 2px;
}

.su-org-edit-members { margin-left: 52px; margin-top: 18px; }
.su-org-edit-members-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #181C23;
  margin-bottom: 14px;
}
.su-users-tablebar {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 12px;
  margin-right: 8px;
}
.su-users-search {
  padding: 7px 14px;
  border: 1.2px solid #cfd7e1;
  border-radius: 8px;
  background: #fff;
  color: #232b3a;
  font-size: 1rem;
  width: 210px;
}
.su-org-edit-add-user-btn {
  background: #04798a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.01rem;
  font-weight: 500;
  padding: 7px 18px;
  margin-left: 12px;
  cursor: pointer;
  transition: background .13s;
}
.su-org-edit-add-user-btn:hover { background: #0292a1; }

.su-org-edit-bottom-actions {
  margin-top: 20px;
  display: flex;
  gap: 24px;
  align-items: center;
}
.su-org-edit-archive-link {
  color: #04798a;
  text-decoration: underline;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  margin-left: 8px;
}

:root[data-theme="dark"] {
  --background-50: #191c20;
  --primary-bg: #23272f;
  --white: #22252c;
  --text-main: #f3f6fa;
  --border: #31333d;
  --card-outline: #313949;
  --table-row-even: #22252a;
  --table-row-odd: #23272f;
  --table-header: #2a2c33;
}

/* MAIN BG */
:root[data-theme="dark"] body,
:root[data-theme="dark"] .main-content,
:root[data-theme="dark"] .su-org-edit-content {
  background: var(--background-50) !important;
  color: var(--text-main) !important;
}

/* FORM + FIELDS */
:root[data-theme="dark"] .su-org-edit-form,
:root[data-theme="dark"] .su-org-edit-input {
  background: var(--background-50) !important;
  color: var(--text-main) !important;
  border-color: var(--card-outline) !important;
}
:root[data-theme="dark"] .su-org-edit-input:focus {
  border-color: #26cdf2 !important;
}

:root[data-theme="dark"] .su-org-edit-title,
:root[data-theme="dark"] .su-org-edit-members-title {
  color: #fff !important;
}

/* Picture Box */
:root[data-theme="dark"] .su-org-edit-picture-box {
  background: #37414d !important;
  color: #d2e3f5 !important;
}

/* BUTTONS */
:root[data-theme="dark"] .su-org-edit-save-btn,
:root[data-theme="dark"] .su-org-edit-add-user-btn {
  background: #26cdf2 !important;
  color: #fff !important;
  border: none !important;
}
:root[data-theme="dark"] .su-org-edit-save-btn:hover,
:root[data-theme="dark"] .su-org-edit-add-user-btn:hover {
  background: #0793a7 !important;
}

/* LINKS */
:root[data-theme="dark"] .su-org-edit-change-pic,
:root[data-theme="dark"] .su-org-edit-archive-link {
  color: #61dbfc !important;
}

/* TABLE WRAPPER */
:root[data-theme="dark"] .su-users-table-wrap {
  background: var(--white) !important;
  box-shadow: none !important;
}

/* TABLE */
:root[data-theme="dark"] .su-users-table {
  background: var(--white) !important;
  color: var(--text-main) !important;
}

:root[data-theme="dark"] .su-users-table th,
:root[data-theme="dark"] .su-users-table thead th {
  background: var(--table-header) !important;
  color: #f7fafc !important;
  border-bottom: 2.5px solid var(--card-outline) !important;
}
:root[data-theme="dark"] .su-users-table tr {
  background: var(--table-row-odd) !important;
}
:root[data-theme="dark"] .su-users-table tr:nth-child(even) {
  background: var(--table-row-even) !important;
}
:root[data-theme="dark"] .su-users-table td {
  color: var(--text-main) !important;
  border-bottom: 1.2px solid var(--card-outline) !important;
}

/* SEARCH, SELECT, ETC */
:root[data-theme="dark"] .su-users-search,
:root[data-theme="dark"] select {
  background: #23272f !important;
  color: #e7f2fd !important;
  border-color: #39455e !important;
}
:root[data-theme="dark"] .su-users-search:focus {
  border-color: #26cdf2 !important;
}

/* BADGES */
:root[data-theme="dark"] .su-role-badge.su-role-admin {
  background: #1a3b28 !important;
  color: #67e38f !important;
}
:root[data-theme="dark"] .su-role-badge.su-role-user {
  background: #532f2f !important;
  color: #ff5e50 !important;
}
:root[data-theme="dark"] .su-role-badge.su-role-researcher {
  background: #574216 !important;
  color: #ffcc77 !important;
}

/* ACTION ICONS */
:root[data-theme="dark"] .su-action-btn svg {
  color: #8da0c7 !important;
}
:root[data-theme="dark"] .su-action-btn.su-delete svg {
  color: #eb8674 !important;
}

/* CHECKBOX */
:root[data-theme="dark"] .su-users-table input[type="checkbox"] {
  accent-color: #26cdf2 !important;
}

/* Table Row Hover */
:root[data-theme="dark"] .su-users-table tr:hover {
  background: #2e3b4a !important;
}

.auth-error {
  color: #ff4343;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
}

