/* @import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&family=Figtree:wght@400;500;600;700;800&display=swap");

:root {
  --sidebar-width: 270px;
  --mobile-nav-height: 68px;

  --brand-950: #10224f;
  --brand-900: #17336f;
  --brand-800: #21458f;
  --brand-700: #2c50b1;
  --brand-600: #3d66c3;
  --brand-100: #e8eefc;
  --brand-50: #f4f7ff;

  --teal-700: #117f86;
  --teal-100: #daf2f3;

  --slate-950: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  --surface: #ffffff;
  --page-bg: #eef3f9;
  --success: #16a34a;
  --danger: #dc2626;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.1);
  --shadow-brand: 0 14px 34px rgba(44, 80, 177, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(44, 80, 177, 0.1), transparent 28rem),
    linear-gradient(135deg, #f8fbff 0%, var(--page-bg) 100%);
  color: var(--slate-700);
  font-family: Ubuntu, sans-serif;
  line-height: 1.65;
}

button,
h1,
h2,
h3,
h4,
h5,
h6,
.member-name,
.section-title,
.subsection-title {
  font-family: Figtree, sans-serif;
}

img {
  max-width: 100%;
}

a {
  color: var(--brand-700);
}

a:hover {
  color: var(--brand-900);
}

button,
a,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}
 
#tabs {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1200;
  width: var(--sidebar-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  padding: 1.35rem 1rem;
  overflow-y: auto;
  color: #fff;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 15rem),
    linear-gradient(180deg, var(--brand-950), #122a60 58%, #0d1d43);
  box-shadow: 14px 0 36px rgba(15, 23, 42, 0.18);
  transition: transform 0.28s ease;
}

.sidebar-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

#tabs .sidebar-logo {
  min-height: 105px;
  margin-bottom: 0.65rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

#tabs .sidebar-logo img {
  width: min(190px, 82%);
  max-height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.2));
}

#tabs button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
}

#tabs button i {
  width: 20px;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
}

#tabs button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}

#tabs button.active {
  color: var(--brand-950);
  background: #fff;
  border-color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

#tabs button.active i {
  color: var(--brand-700);
}

.submenu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  margin: -0.05rem 0 0.25rem 1rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.submenu.open {
  display: flex;
}

.submenu button {
  min-height: 39px !important;
  padding: 0.55rem 0.7rem !important;
  font-size: 0.84rem !important;
}

.group-logo-button {
  margin-top: auto;
  padding-top: 1rem;
  text-align: center;
}

.group-logo-button img {
  width: 52px;
  border-radius: 12px;
}

#sidebar-overlay {
  display: none;
}
 

#mobile-navbar {
  display: none;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1300;
  height: var(--mobile-nav-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

#mobile-navbar .sidebar-logo img {
  width: auto;
  height: 43px;
  object-fit: contain;
}

#hamburger {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  cursor: pointer;
}
 

#site-content {
  min-height: 100vh;
}

.tabcontent {
  display: none;
  width: calc(100% - var(--sidebar-width) - 2.25rem);
  max-width: 1440px;
  min-height: calc(100vh - 2rem);
  margin: 1rem 1rem 1rem calc(var(--sidebar-width) + 1.25rem);
  padding: clamp(1rem, 2vw, 2rem);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.tabcontent.active {
  display: block;
}

.tabcontent.full-width {
  margin-left: 1rem;
  width: calc(100% - 2rem);
}

.spacing {
  display: none;
}

.members-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.5rem;
  text-align: center;
}

.section-title {
  margin: 0 0 1rem;
  color: var(--brand-900);
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.section-title::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  margin: 0.75rem auto 0;
  border-radius: 999px;
}

.subsection-title {
  margin: 2rem 0 1rem;
  color: var(--slate-800);
  font-size: 1.35rem;
  font-weight: 700;
}

.manual-section {
  width: 100%;
  margin: 1.5rem auto;
  padding: clamp(1.1rem, 2.5vw, 2rem) !important;
  text-align: left;
  background: var(--surface) !important;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm) !important;
}
 

.banner-wrapper {
  position: relative;
  width: 100%;
  min-height: 230px;
  margin: 0 0 1.5rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--brand-950);
  box-shadow: var(--shadow-brand);
}

.banner-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 27, 67, 0.38), transparent 70%);
  pointer-events: none;
}

.full-banner {
  width: 100%;
  height: clamp(230px, 31vw, 390px);
  display: block;
  object-fit: cover;
}
 

.member-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.member-card {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
} 


.member-card:hover {
  transform: translateY(-5px);
  border-color: #b7c7ea;
  box-shadow: var(--shadow-md);
}

.member-card img {
  width: 94px;
  height: 94px;
  margin-bottom: 0.75rem;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--brand-100), 0 10px 22px rgba(15, 23, 42, 0.17);
}

.member-name {
  color: var(--brand-800);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.member-role {
  margin-top: 0.2rem;
  color: var(--slate-500);
  font-size: 0.82rem;
  line-height: 1.4;
}

.member-role mark {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.25rem 0.5rem !important;
  border-radius: 999px !important;
  font-size: 0.7rem;
}

.member-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.member-links a {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  margin: 0;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 50%;
  text-decoration: none;
  transition: 0.2s ease;
}

.member-links a:hover {
  color: #fff;
  background: var(--brand-700);
  transform: translateY(-2px);
} 
ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin: 0.35rem 0;
}

li u {
  color: var(--brand-700);
  text-underline-offset: 0.22rem;
}

.extlink a:visited {
  color: var(--brand-700) !important;
}
 

form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

form label {
  color: var(--slate-700);
  font-weight: 600;
}

form input[type="text"],
form input[type="number"],
form select,
form input[type="file"] {
  width: 100%;
  padding: 0.75rem 0.85rem;
  color: var(--slate-800);
  background: #fff;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font: inherit;
}

form input:focus,
form select:focus {
  outline: 3px solid rgba(44, 80, 177, 0.13);
  border-color: var(--brand-700);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.full-width-button,
.edit-button,
.add-button,
.remove-button {
  border: 0;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.full-width-button {
  width: 100%;
  padding: 0.75rem;
  background: var(--brand-700);
}

.edit-button {
  background: var(--brand-600);
}

.add-button {
  background: var(--success);
}

.remove-button {
  background: var(--danger);
}

table {
  width: 100%;
  margin-top: 1rem;
  overflow: hidden;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-sm);
}

table th,
table td {
  padding: 0.75rem;
  border: 1px solid var(--slate-200);
  font-size: 0.88rem;
  text-align: center;
}

table th {
  color: var(--slate-800);
  background: var(--slate-100);
}
 

.hover-container {
  position: relative;
  display: inline-block;
}

.hover-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 120%;
  left: 50%;
  z-index: 1000;
  max-width: min(340px, calc(100vw - 2rem));
  padding: 0.65rem 0.8rem;
  color: #fff;
  background: var(--slate-950);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  white-space: normal;
  transform: translateX(-50%);
  transition: 0.2s ease;
}

.hover-container:hover .hover-tooltip {
  visibility: visible;
  opacity: 1;
}
 

@media (max-width: 1100px) {
  :root {
    --sidebar-width: 235px;
  }

  .tabcontent {
    width: calc(100% - var(--sidebar-width) - 1.5rem);
    margin-left: calc(var(--sidebar-width) + 0.75rem);
    margin-right: 0.75rem;
  }
}

@media (max-width: 900px) {
  .form-row {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: var(--mobile-nav-height);
  }

  #mobile-navbar {
    display: flex;
  }

  #tabs {
    width: min(84vw, 310px);
    padding-top: 1rem;
    transform: translateX(-105%);
  }

  #tabs.show {
    transform: translateX(0);
  }

  #sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(15, 23, 42, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  #tabs.show + #sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .tabcontent,
  .tabcontent.full-width {
    width: calc(100% - 1rem) !important;
    min-height: calc(100vh - var(--mobile-nav-height) - 1rem);
    margin: 0.5rem !important;
    padding: 1rem;
    border-radius: var(--radius-md);
  }

  .spacing {
    display: none;
  }

  .members-page {
    padding: 0;
  }

  .banner-wrapper {
    min-height: 180px;
    border-radius: var(--radius-md);
  }

  .full-banner {
    height: 210px;
  }

  .member-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .member-card {
    max-width: none;
    padding: 1rem 0.7rem;
  }

  .member-card img {
    width: 78px;
    height: 78px;
  }
}

@media (max-width: 480px) {
  .tabcontent,
  .tabcontent.full-width {
    width: calc(100% - 0.6rem) !important;
    margin: 0.3rem !important;
    padding: 0.8rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .member-group {
    grid-template-columns: 1fr 1fr;
  }

  .member-name {
    font-size: 0.88rem;
  }

  .member-role {
    font-size: 0.76rem;
  }

  .manual-section {
    padding: 1rem !important;
  }
} */

@import url("https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");

:root {
  --sidebar-width: 270px;
  --mobile-nav-height: 68px;

  --brand-950: #10224f;
  --brand-900: #17336f;
  --brand-800: #21458f;
  --brand-700: #2c50b1;
  --brand-600: #3d66c3;
  --brand-100: #e8eefc;
  --brand-50: #f4f7ff;

  --teal-700: #117f86;
  --teal-100: #daf2f3;

  --slate-950: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  --surface: #ffffff;
  --page-bg: #eef3f9;
  --success: #16a34a;
  --danger: #dc2626;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.1);
  --shadow-brand: 0 14px 34px rgba(44, 80, 177, 0.2);
}
/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  background: linear-gradient(to bottom right, #f9fafc, #eef2f7);
  color: #334155;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
}

p,
.member-card {
  font-family: Ubuntu, sans-serif;
  font-size: 1rem;
}

li,
ul {
  font-family: Figtree, sans-serif;
  font-size: 1rem;
  padding-top: 0.5rem;
}

h2,
h1,
h3,
button {
  line-height: 1.2;
  font-family: Figtree, sans-serif;
}

li u {
  color: #2c50b1;
  text-underline-offset: 0.3rem;
  text-decoration-thickness: 0.1rem;
}

/* Sidebar Navigation */
#tabs {
  width: 21vw;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  border-right: 1px solid #cbd5e1;
  position: fixed;
  height: 100%;
  overflow-y: auto;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
}

#tabs.hidden {
  transform: translateX(-100%);
}

.sidebar-logo img {
  width: 16vw;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

fieldset {
  border: 2px solid #1f1f1f;
  /* Green border */
  border-radius: 8px;
  /* Rounded corners */
  padding: 1rem;
  /* Inner spacing */
  margin-bottom: 1.5rem;
  /* Space between fieldsets */
  background-color: #f9f9f9;
  /* Light background color */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* Subtle shadow */
}

legend {
  font-size: 1.2rem;
  /* Slightly larger font size */
  font-weight: bold;
  /* Bold text */
  color: #1f1f1f;
  /* Green text color */
  padding: 0 0.5rem;
  /* Padding around the text */
}

.banner-wrapper {
  width: 69.5vw;
  margin: 0;
  margin-top: -1.1vw;
  padding: 0;
  position: relative;
  left: 50%;
  right: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  border-top-left-radius: 1vw;
  border-top-right-radius: 1vw;
}

.full-banner {
  width: 100%;
  height: auto;
  max-height: 45vh;
  object-fit: cover;
  border-radius: 0;
  display: block;
  border-top-left-radius: 1vw;
  border-top-right-radius: 1vw;
}

/* Tab Buttons */
#tabs button {
  width: 90%;
  background: transparent;
  border: none;
  color: #475569;
  padding: 12px 10px;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.3s,
    color 0.3s;
  border-radius: 6px;
  margin: 0.1rem;
}

#tabs button:hover,
#tabs button.active {
  margin: 0.1rem;
  background-color: #cfcfcf;
  color: rgb(7, 7, 7);
}

.tabcontent {
  width: 70%;
  /* Adjust width based on sidebar */
  margin-left: 25.5vw;

  margin-top: 1vw;
  margin-bottom: 1vw;

  padding: 1.25vw;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: none;
}

.tabcontent.active {
  display: block;
}

/* Adjust for hidden sidebar */
.tabcontent.full-width {
  margin-left: 0;
}

/* Form Styling */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

form label {
  font-weight: 600;

  color: #475569;
}

form input[type="text"],
form input[type="number"],
form select,
form input[type="file"],
form button {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 15px;
  transition: border-color 0.3s;
}

form input:focus,
form select:focus {
  border-color: #a0a0a0;
  outline: none;
}

/* Checkbox Align */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

input[type="checkbox"] {
  transform: scale(1.3);
  cursor: pointer;
  margin-left: 1%;
}

.scenario-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

form input[type="range"] {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 50%;
}

input[type="range"] {
  accent-color: #3b82f6;
  /* Blue nice color */
}

h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
}

.interface-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.full-width-button {
  width: 100%;
  padding: 10px;
  background-color: #219ba3;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 1%;
}

.full-width-button:hover {
  background-color: #117f86;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  margin-top: 20px;
}

table th,
table td {
  border: 1px solid #e2e8f0;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  word-wrap: break-word;
  /* Prevent long text from breaking layout */
}

table th {
  background: #f1f5f9;
}

/* Style for file input */
input[type="file"] {
  display: block;
  width: 100%;
  /* Full width */
  max-width: 300px;
  /* Optional: Limit the width */
  padding: 10px;
  font-size: 14px;
  color: #555;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    border-color 0.3s,
    background-color 0.3s;
}

input[type="file"]:hover {
  border-color: #888;
  background-color: #f1f1f1;
}

input[type="file"]:focus {
  outline: none;
  border-color: #3b82f6;
  /* Blue border on focus */
  background-color: #fff;
}

/* Table Buttons */
.edit-button {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  margin: 0 2px;
  transition: background 0.3s;
}

.add-button {
  background: #459b0b;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  margin: 0 2px;
  transition: background 0.3s;
}

.remove-button {
  background: #ef4444;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  margin: 0 2px;
  transition: background 0.3s;
}

.edit-button:hover {
  background: #2563eb;
}

.add-button:hover {
  background: #169105;
}

.remove-button:hover {
  background: #dc2626;
}

.members-page {
  margin-left: auto;
  padding: 20px 20px;
  max-width: 1200px;
  margin-right: auto;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #0f172a;
}

.subsection-title {
  font-weight: 600;
  margin: 20px 0 20px;
  color: #1e293b;
}

.member-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.member-card {
  max-width: 12rem;
  text-align: center;
}

.member-card img {
  width: 7.5rem;
  border-radius: 50%;
  border: 2px solid rgrgb(128, 125, 125);
  object-fit: cover;
  margin-bottom: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  /* Add subtle shadow */
}

.member-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #2c50b1;
}

.member-role {
  font-size: 0.85rem;
  color: #64748b;
}

.member-links a {
  margin: 0 4px;
  color: #219ba3;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s;
}

.member-links a:hover {
  color: #117f86;
  transition: color 0.3s;
}

/* Sidebar logo button */
.group-logo-button {
  display: flex;
  /* Use flexbox to align items */
  align-items: center;
  /* Vertically align the text with the image */
  justify-content: center;
  /* Center the content horizontally */
  gap: 1rem;
  /* Add spacing between the image and the text */
  margin-top: auto;
  padding: 20px;
  text-align: center;
}

.group-logo-button img {
  width: 25%;
  border: 2px solid #0f172a;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.group-logo-button h4 {
  /*font-size: 1.2rem; Adjust font size */
  font-weight: 600;
  /* Make the text bold */
  color: #0f172a;
  /* Match the color with the theme */
  margin: 0;
  /* Remove default margin */
}

.group-logo-button img:hover {
  opacity: 0.8;
}
.extlink a:visited {
  color: #2c50b1 !important;
}
/* Hover Container */
.hover-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* Tooltip Styling */
.hover-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 120%;
  /* Default position above the element */
  left: 50%;
  transform: translateX(-50%);
  background-color: #1f2937;
  /* Dark background */
  color: #ffffff;
  /* White text */
  text-align: center;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Subtle shadow */
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 1000;
  display: inline-block;
  /* Adjust width to fit content */
  max-width: calc(100vw - 20px);
  /* Prevent overflow on small screens */
  word-wrap: break-word;
  /* Wrap long text */
  white-space: nowrap;
  /* Prevent wrapping unless it exceeds max-width */
  overflow: hidden;
  /* Hide overflowing text */
  text-overflow: ellipsis;
  /* Add ellipsis for overflowing text */
}

/* Tooltip Arrow */
.hover-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  /* Arrow at the bottom of the tooltip */
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #1f2937 transparent transparent transparent;
  /* Arrow color matches tooltip */
}

/* Show Tooltip on Hover */
.hover-container:hover .hover-tooltip {
  visibility: visible;
  opacity: 1;
}

#mobile-navbar {
  display: none;
  justify-content: space-between;
  align-items: center;
  background-color: #f8fafc;
  padding: 0px 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  border-bottom: 1px solid #cbd5e1;
}

#mobile-navbar img {
  width: 18vw;
  margin-bottom: 1vh;
}

#hamburger {
  font-size: 24px;
  color: #334155;
  cursor: pointer;
}

.spacing {
  visibility: hidden;
}

/* coming page */
.coming-soon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 3em 2em;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.coming-soon-container::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(44, 80, 177, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  top: -100px;
  right: -100px;
  animation: float 6s ease-in-out infinite;
}

.coming-soon-container::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(44, 80, 177, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  bottom: -50px;
  left: -50px;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.coming-soon-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
}

.icon-wrapper {
  margin-bottom: 2em;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.icon-circle {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #2c50b1 0%, #1e3a8a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(44, 80, 177, 0.3);
}

.icon-circle svg {
  width: 60px;
  height: 60px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.coming-soon-title {
  font-size: 3em;
  font-weight: bold;
  color: #2c50b1;
  margin: 0.5em 0 0.3em;
  letter-spacing: -1px;
}

.coming-soon-subtitle {
  font-size: 1.3em;
  color: #495057;
  margin: 0 0 1em;
  font-weight: 500;
}

.coming-soon-description {
  font-size: 1.1em;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 2em;
}

.status-badge {
  display: inline-block;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 0.7em 2em;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.95em;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  }
  50% {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
  }
}

.progress-dots {
  display: flex;
  gap: 0.8em;
  justify-content: center;
  margin-top: 2em;
}

.dot {
  width: 12px;
  height: 12px;
  background: #2c50b1;
  border-radius: 50%;
  animation: bounce 1.4s ease-in-out infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}
.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Publications submenu */
.submenu {
  display: none;
  flex-direction: column;
  width: 90%;
  margin-left: 10%;
}

.submenu button {
  font-size: 14px;
  padding-left: 20px;
  opacity: 0.9;
}
/*add animation to the title meet the team*/
@keyframes slideTitle {
  from {
    opacity: 0;
    transform: translateX(-120px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.section-title {
  /* animation: slideTitle 1s ease-out; */
}


/* responsive  */
  
/* ── Medium: sidebar switches to fixed 260px ── */
@media (max-width: 1100px) {
  :root { --sidebar-w: 240px; }

  .tabcontent {
    margin-left: calc(240px + 12px);
    width: calc(100% - 240px - 24px);
  }
}

/* ── Tablet ── */
@media (max-width: 900px) {
  .form-row { flex-direction: column; }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
 
  #mobile-navbar { display: flex; }
 
  #tabs {
    width: var(--sidebar-w-mobile);
    max-width: 300px;
    top: 0;
    left: 0;
    height: 100vh;
    padding-top: calc(var(--navbar-h) + 12px);
    transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0,0,0,.15);
  }

  #tabs.show { transform: translateX(0); }
 
  #sidebar-overlay { display: block; }
 
  .tabcontent {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100%;
    margin-top: calc(var(--navbar-h) + 12px);
    border-radius: 8px;
  }
   
  .banner-wrapper {
    width: 90vw;
    margin: 0;
    margin-top: 14vw;
    padding: 0;
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    border-top-left-radius: 1vw;
    border-top-right-radius: 1vw;
  }

  .full-banner {
    width: 100%;
    height: auto;
    max-height: 45vh;
    object-fit: cover;
    border-radius: 0;
    display: block;
    border-top-left-radius: 1vw;
    border-top-right-radius: 1vw;
    margin-top: 10px;
  }

  .spacing {
    visibility: visible;
    margin-bottom: var(--navbar-h);
  }
 
  .hover-tooltip {
    bottom: auto;
    top: 120%;
    font-size: 12px;
    padding: 8px 12px;
  }
  .hover-tooltip::after {
    top: -8px;
    bottom: 100%;
    border-color: transparent transparent #1f2937 transparent;
  }

  /* Members */
  .members-page { padding: 16px; }
  .member-group { gap: 24px; }
  .member-card  { max-width: 9rem; }
  .member-card img { width: 6rem; height: 6rem; }

  /* Coming soon */
  .coming-soon-container { padding: 2em 1.2em; min-height: auto; }
  .icon-circle { width: 80px; height: 80px; }
  .icon-circle svg { width: 40px; height: 40px; }
  .icon-wrapper { margin-bottom: 1.2em; }
  .status-badge { padding: 0.6em 1.5em; font-size: .85em; }
  .progress-dots { margin-top: 1.2em; gap: .6em; }
  .dot { width: 10px; height: 10px; }

  /* Tables */
  .table-scroll { margin: 0 -4px; }

  /* Form range full width */
  form input[type="range"] { width: 100%; }
}

/* ── Small phones ── */
@media (max-width: 420px) {
  #tabs { width: 85vw; }

  #mobile-navbar img { height: 28px; }

  .tabcontent { padding: 14px; }

  .edit-button, .add-button, .remove-button {
    padding: 5px 8px;
    font-size: 12px;
  }
}
 

@media (max-width: 768px) {
  .spacing {
    visibility: visible;
    margin-bottom: 4rem;
  }

  #tabs {
    width: 60vw; 
    transform: translateX(-100%);
    left: 0;
    top: 0;
    height: 100vh;
    transform: translateX(-100%);
  }

  .hover-tooltip {
    bottom: auto; 
    top: 120%; 
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px; 
    padding: 8px 12px; 
  }

  .hover-tooltip::after {
    top: -8px; 
    bottom: 100%; 
    border-color: transparent transparent #1f2937 transparent; 
  }

  .tabcontent {
    padding-top: 1.4rem;
    margin-left: 0;
  }

  .members-page {
    margin-left: 0;
    padding: 20px;
  }

  #mobile-navbar {
    display: flex;
  }

  #tabs {
    transform: translateX(-100%);
  }

  #tabs.show {
    transform: translateX(0);
  }

  .tabcontent {
    margin-left: 0 !important;
    width: 110% !important;
  }

  .banner-wrapper {
    width: 90vw;
    margin: 0;
    margin-top: 14vw;
    padding: 0;
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    border-top-left-radius: 1vw;
    border-top-right-radius: 1vw;
  }

  .full-banner {
    width: 100%;
    height: auto;
    max-height: 45vh;
    object-fit: cover;
    border-radius: 0;
    display: block;
    border-top-left-radius: 1vw;
    border-top-right-radius: 1vw;
  }
}  