/* ShadCN-inspired custom CSS (Enhanced Responsive with Dark Mode) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');


/* CSS Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Additional resets for input elements */
input, button, textarea, select {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

/* Remove tap highlight in mobile browsers */
a, button, input, textarea {
    -webkit-tap-highlight-color: transparent;
}

/* Set base font size and family */
html {
    font-family: Arial, sans-serif; /* Change to your preferred font */
    font-size: 16px; /* Ideal for responsiveness */
}


:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --accent-1: rgb(255, 166, 0);
  --off-white-1: #dbd9f8;
  --background: #ffffff;
  --foreground: #111827;
  --border: #bbbbbb;
  --muted: #6b7280;
  --table-th-bg: #0d1120;
  --table-row-bg-odd: #111827;
  --table-row-bg-odd-hover: #121b2e;
  --table-row-bg-even: #020617;
  --table-row-bg-even-hover: #030a25;
  --detail-row-bg: #1a213b;
  --upload-zone: #0d1120;
  --radius: 8px;
  /* --shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
  --background: #1f2937;
  --foreground: #f9fafb;
  /* --border: #374151; */
  /* --muted: #9ca3af; */
  --shadow: 0 4px 6px rgba(255, 255, 255, 0.1);    --modal-bg: rgba(0, 0, 0, 0.7); /*Darker modal background for dark mode*/
  --modal-bg: rgba(0, 0, 0, 0.7); /* Darker modal background for dark mode */
}

#root {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
  
@media (prefers-color-scheme: dark) {
  :root {
    --background: #1f2937;
    --foreground: #f9fafb;
    --border: #374151;
    --muted: #9ca3af;
    --shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
  }
}

body {
  font-family: 'Poppins', 'Manrope','Inter', sans-serif;
  color: var(--foreground);
  background-color: var(--background);
  margin: 0;
  padding: 0;
  transition: background-color 0.3s, color 0.3s;
}

.display-none {
  display: none;
}

 /* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--background);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: start;
    /* padding: 20px 20px; */
    border-bottom: 1px solid var(--border);
    z-index: 1000;
  }

.navbar-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-image {
  font-size: 2rem;
  color: var(--foreground);
  margin-left: 3rem;
}

.navbar-icon {
  width: 5em;
  height: 5em;
  vertical-align: -0.125em;
}

.navbar-logo-title {
  margin-left: 1.5rem;
  /* margin-right: 1rem; */
  color: var(--foreground);
  font-size: 2.5rem;
  text-decoration: none;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 5rem;
}

.navbar-title {
  font-size: 2.5rem;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--primary);
}

.navbar-title-color {
  font-weight: 600;
  font-size: 2.5rem;
  color: var(--foreground);
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  /* max-width: 150px; */
  max-height: 80px;
  display: flex;
  align-items: center;
  border-radius: 5px;
}

.navbar-link-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-links {
  display: flex;
  gap: 16px;
}

.navbar-links a {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--background);
}

.link-item {
  padding: 1rem;
  font-weight: 600;
}

.link-item:hover {
  background-color: white;
  color: black;
  border-radius: 10px;
  transition: 100ms ease-in;
}

.nav-links {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.nav-links.show {
  display: flex;
}

.nav-links a {
  margin-left: 5px; /* Increase space between links */
  margin-right: 5px; /* Symmetric spacing */
  text-decoration: none;
  color: white;
}

.hamburger-menu {
  display: none; /* Initially hidden on larger screens */
  cursor: pointer;
  position: absolute; /* Positioning it absolutely within the navbar */
  right: 10px; /* Adjust this value as needed for correct alignment */
  top: 10px; /* Adjust top positioning if needed */
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0; /* Adjust margin for spacing between bars */
  background-color: white;
}

/* .account-buttons {
  margin-right: 3rem;
  margin-left: 3rem;
} */

#notifications {
  font-size: 1.5rem;
}

#navbarDropdownMenuLink {
  font-size: 1.2rem;
  font-weight: 600;
}

@media (max-width: 1139px) {
  .link-item {
    padding-left: 0.5rem;
  }
}

@media screen and (max-width: 1126px) {
  .site-title {
     display: none;
  }
  .auth-buttons {
     margin-left: 5rem;
  }

  /* .account-buttons {
     margin-right: 3rem;
     margin-left: 6rem;
  } */
}

@media (max-width: 1050px) {
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
  }
  
  .navbar-left {
    flex-direction: column;
    align-items: center;
  }
  
  .navbar-logo {
    margin-bottom: 5px;
  }
  
  .navbar-logo-title {
    margin-left: 1rem;
    /* margin-right: 1rem; */
    color: var(--foreground);
    font-size: 2rem;
    text-decoration: none;
  }
  
  .navbar-title-color {
      font-size: 1rem;
  }

  .navbar-link-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .navbar-links {
    flex-direction: column;
    text-align: center;
  }

  .link-item {
    padding-left: 0.25rem;
  }

  .nav-links {
    display: none;
    align-items: center;
    transition: transform 0.3s ease;
  }
  
  .nav-links.show {
    display: flex;
    flex-direction: column;
    /* border: 1px white */
  }

  .hamburger-menu {
    display: block;
    margin-top: 1.1rem;
    margin-right: 4rem;
  }
}
  
  /* Responsive Navbar */
@media (max-width: 768px) {
    .navbar {
      flex-direction: column;
      height: auto;
      padding: 10px 0;
    }
    
    .navbar-left {
      flex-direction: column;
      align-items: center;
    }
    
    .navbar-logo {
      margin-bottom: 5px;
    }

    .navbar-image {
      font-size: 1.25rem;
    }
    
    .navbar-logo-title {
      margin-left: 1rem;
      margin-right: 1rem;
      color: var(--foreground);
      font-size: 1.25rem;
      text-decoration: none;
    }
    
    .navbar-title-color {
        font-size: 1rem;
    }

    .navbar-link-container {
      flex-direction: column;
      gap: 10px;
    }
    
    .navbar-links {
      flex-direction: column;
      text-align: center;
    }

    .nav-links {
      display: none;
      align-items: center;
      transition: transform 0.3s ease;
    }
    
    .nav-links .show {
      display: flex;
    }

    .hamburger-menu {
      display: block;
      margin-top: 0.5rem;
      margin-right: 2rem;
    }
  }

  .dropdown {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--background);
    width: 150px;
    border: 1px white solid;
    border-radius: 10px;
    position: fixed;
    list-style-type: none;
    padding: 0;
}

.dropdown a {
    margin: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    width: 100%;
    text-decoration: none;
    text-align: center;
    font-size: 1rem;
}

.dropdown a:hover {
    background-color: var(--primary);
    border-radius: 10px;
}

.dropdown a li svg {
    padding-right: 10px;
}
  
/* Container for card grid */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  /* margin-top: 5rem; */
  max-width: fit-content;
}

/* Utility Classes */
.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.flex-gap-sm {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.flex-nogap {
  display: flex;
  flex-wrap: wrap;
}

.column {
  flex-direction: column;
}
.row {
  flex-direction: row;
}
.row-switch {
  flex-direction: row;
}
.column-switch {
  flex-direction: column;
}

.flex-nowrap {
  flex-wrap: nowrap;
}
.flex-wrap {
  flex-wrap: wrap;
}
.align-items-cntr {
  align-items: center;
}
.align-items-start {
  align-items: start;
}
.align-items-end {
  align-items: end;
}

.justify-content-space-between {
  justify-content: space-between;
}
.justify-content-cntr {
  justify-content: center;
}
.justify-content-start {
  justify-content: start;
}
.justify-content-end {
  justify-content: end;
}
.justify-cntr-switch {
  justify-content: center;
}
.space-between {
  justify-content: space-between;
}
.space-evenly {
  justify-content: space-evenly;
}
.space-around { 
  justify-content: space-around;
}

.grid {
  display: grid;
  gap: 16px;
}

.text-muted {
  color: var(--muted);
}

.text-align-cntr {
  text-align: center;
}

.text-align-left {
  text-align: left;
}

.text-align-right {
  text-align: right;
}

.border {
  border: 1px var(--border) solid;
}
.border-top { border-top: 1px var(--border) solid; }
.border-bottom {
  border-bottom: 1px var(--border) solid;
}

.border-collapse {
  border-collapse: collapse;
}

.border-white {
  border: 1px var(--white) solid;
}

.rounded {
  border-radius: var(--radius);
}

.shadow {
  box-shadow: var(--shadow);
}

.border-color-foreground:hover {
  border-color: var(--foreground);
}

/* Responsive Layout Fixes */
@media (max-width: 480px) {
  .grid {
    display: flex;
    flex-direction: column;
  }
  .flex {
    gap: 10px;
  }
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 16px;
  max-width: 1000px;
  width: 100%;
}

/* Responsive Grid */
@media (max-width: 768px) {
  .grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    min-height: 100vh;
  }

  .row-switch {
    flex-direction: column;
  }
  .column-switch {
    flex-direction: row;
  }

  .justify-cntr-switch {
    justify-content: start;
  }
  .align-start-switch {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .grid-layout {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Buttons */
.button {
  /* display: inline-flex; */
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: none;
  background: var(--primary);
  color: white;
  font-weight: 500;
  transition: background 0.2s;
  cursor: pointer;
  font-size: 1.2rem;
  text-decoration: none;
  min-width: 5rem;
}

.button:hover {
  background: var(--primary-hover);
}

.button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Responsive Buttons */
@media (max-width: 600px) {
  .button {
    width: 100%;
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}

/* Cards */
.card {
  background: var(--background);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  border: 1px solid var(--border);
  max-width: 600px;
  /* margin: auto; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: auto;
  /* width: 100%; */
}

.card-lg {
  background: var(--background);
  border-radius: var(--radius);
  /* box-shadow: var(--shadow); */
  padding: 20px;
  /* border: 1px solid var(--border); */
  max-width: 1200px;
  /* margin: auto; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: auto;
  /* width: 100%; */
}

.card-header {
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-weight: bold;
  font-size: 1.2rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card-body {
  padding: 10px 15px;
  font-size: 1rem;
  color: var(--muted);
}

.card-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}

.card-input {
  width: 90%;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  font-size: 1rem;
  transition: border 0.2s;
  background: var(--background);
  color: var(--foreground);
}

.card-input:focus {
  border-color: var(--primary);
}

.card-button {
  width: 90%;
  padding: 10px;
  border-radius: var(--radius);
  border: none;
  background: var(--primary);
  color: white;
  font-weight: 500;
  transition: background 0.2s;
  cursor: pointer;
  margin-top: 10px;
}

.card-button:hover {
  background: var(--primary-hover);
}

/* Responsive Cards */
@media (max-width: 768px) {
  .card {
    width: 90%;
    padding: 15px;
  }

  .card-lg {
    width: 75%;
  }
}

/* Responsive Card Inputs */
@media (max-width: 600px) {
  .card-input {
    font-size: 0.9rem;
    padding: 8px;
  }
}

/* Responsive Card Buttons */
@media (max-width: 600px) {
  .card-button {
    font-size: 0.9rem;
    padding: 8px;
  }
}

/* Inputs */
.input {
  /* width: 100%; */
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border 0.2s;
  font-size: 1rem;
  background: var(--background);
  color: var(--foreground);
}

.input:focus {
  border-color: var(--primary);
}

/* Responsive Inputs */
@media (max-width: 600px) {
  .input {
    font-size: 0.9rem;
    padding: 8px;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

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

.modal {
  background: var(--background);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 1000;
  max-width: 90%;
  transition: transform 0.3s ease-in-out;
  transform: scale(0.9);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

/* Responsive Modal */
@media (max-width: 600px) {
  .modal {
    width: 95%;
    padding: 15px;
  }
}

/* Table NEW */
.tr {
  margin: 0;
}

.table .tr {
  color: var(--foreground);
}

.table .tr:nth-child(odd) {
  background-color: var(--table-row-bg-odd); /* darker slate */
}
.table .tr:nth-child(odd):hover {
  background-color: var(--table-row-bg-odd-hover);
}

.table .tr:nth-child(even) {
  background-color: var(--table-row-bg-even); /* almost black */
}
.table .tr:nth-child(even):hover {
  background-color: var(--table-row-bg-even-hover);
}

.th {
  background-color: var(--table-th-bg);
}

/* Tables OLD */
/* .table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
}

.table th, .table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  background: var(--muted);
  color: white;
} */

/* Responsive Table */
/* @media (max-width: 768px) {
  .table, .table thead, .table tbody, .table th, .table td, .table tr {
    display: block;
  }
  .table tr {
    margin-bottom: 10px;
  }
  .table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
  }
  .table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    font-weight: bold;
    text-align: left;
  }
} */

/* Checkbox */
.checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: inline-block;
  cursor: pointer;
  position: relative;
}

.checkbox:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox:checked::after {
  content: '\\2713';
  font-size: 14px;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spacer {
  height: 5rem; /* Reduced fixed height */
}

.footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 90%;
  position: relative;
/* left: 0;*/
}

.footer-image {
  font-size: 2rem;
  color: var(--foreground);
}

/*@media screen and (max-width: 1700px) {
//  .footer {
//    position: relative;
//  }
}*/

/*@media screen and (max-width: 782px) {
  .footer {
    font-size:  1rem;
  }
}*/

/* Minimum Height and Width */
.min-width-sm {
  min-width: 3rem;
}
.min-width-md {
  min-width: 7rem;
}
.min-width-lg {
  min-width: 11rem;
}
.min-width-xl { 
  min-width: 14rem; 
}
.min-width-xxl { 
  min-width: 22rem;
}
.min-height-sm {
  min-height: 3rem;
}
.min-height-md {
  min-height: 7rem;
}
.min-height-lg {
  min-height: 11rem;
}
.min-height-xl { 
  min-height: 14rem;
}
.min-height-xxl {
  min-height: 22rem;
}

/* Maximum Height and Width */
.max-width-sm {
  max-width: 3rem;
}
.max-width-md {
  max-width: 7rem;
}
.max-width-lg {
  max-width: 11rem;
}
.max-width-xl { 
  max-width: 14rem; 
}
.max-width-xxl { 
  max-width: 22rem;
}
.max-height-sm {
  max-height: 3rem;
}
.max-height-md {
  max-height: 7rem;
}
.max-height-lg {
  max-height: 11rem;
}
.max-height-xl { 
  max-height: 14rem;
}
.max-height-xxl {
  max-height: 22rem;
}

/* Min static width */
.min-width-200px { min-width: 200px; }
.min-width-250px { min-width: 250px; }
.min-width-600px { min-width: 600px; }
/* Min static height */
.min-height-200px {
  min-width: 200px;
}
.min-height-250px {
  min-width: 250px;
}
.min-height-400px {
  min-height: 400px;
}
.min-height-1080px {
  min-height: 1080px;
}

/* Max static width */
.max-width-200px {
  max-width: 200px;
}
.max-width-250px {
  max-width: 250px;
}
.max-width-1920px {
  max-width: 1920px;
}
/* Max static height */
.max-height-150px {
  max-height: 150px;
}
.max-height-250px {
  max-height: 250px;
}
.max-height-1080px {
  max-height: 1080px;
}

/* Font Colors */
.color-primary {
  color: var(--primary);
}
.color-primary-2 {
  color: var(--primary-hover);
}
.color-background {
  color: var(--background);
}
.color-foreground {
  color: var(--foreground);
}
.color-border {
  color: var(--border);
}
.color-muted {
  color: var(--muted);
}
.color-white {
  color: white;
}
.color-off-white-1 {
  color: var(--off-white-1);
}
/* Highlight Font Colors */
.color-highlight-primary:hover {
  color: var(--primary);
  text-decoration: underline;
}
.color-highlight-primary-2:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}
.color-highlight-background:hover {
  color: var(--background);
  text-decoration: underline;
}
.color-highlight-foreground:hover {
  color: var(--foreground);
  text-decoration: underline;
}
.color-highlight-border:hover {
  color: var(--border);
  text-decoration: underline;
}
.color-highlight-muted:hover {
  color: var(--muted);
  text-decoration: underline;
}

.cursor-hover-pointer:hover {
  cursor: pointer;
}
.cursor-pointer {
  cursor: pointer;
}

/* Background Colors */
.bg-color-primary {
  background-color: var(--primary);
}
.bg-color-primary-2 {
  background-color: var(--primary-hover);
}
.bg-color-background {
  background-color: var(--background);
}
.bg-color-foreground {
  background-color: var(--foreground);
}
.bg-color-border {
  background-color: var(--border);
}
.bg-color-muted {
  background-color: var(--muted);
}
.bg-color-white {
  background-color: white;
}
.bg-color-detail-row {
  background-color: var(--detail-row-bg);
}
.bg-color-table-th {
  background-color: var(--table-th-bg);
}
.bg-color-accent-1 {
  background-color: var(--accent-1);
}
.bg-color-off-white-1 {
  background-color: var(--off-white-1);
}
/* Hover background color */
.hover-bg-primary:hover {
  background-color: var(--primary-hover);
}
.hover-bg-primary-2:hover {
  background-color: var(--primary);
}
.hover-bg-background:hover {
  background-color: var(--background);
}
.hover-bg-foreground:hover {
  background-color: var(--foreground);
}
.hover-bg-muted:hover {
  background-color: var(--muted);
}
.hover-bg-border:hover {
  background-color: var(--border);
}
/* Hover text decoration */
.text-hover-underline:hover {
  text-decoration: underline;
}

/* icon svg sizes */
.icon-xs {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}
.icon-sm {
  width: 2.5em;
  height: 2.5em;
  vertical-align: -0.125em;
}
.icon-md {
  width: 3.25em;
  height: 3.25em;
  vertical-align: -0.125em;
}
.icon-lg {
  width: 5em;
  height: 5em;
  vertical-align: -0.125em;
}

.icon-hover-muted:hover {
  color: var(--muted);
}
.icon-hover-primary-2:hover {
  color: var(--primary-hover);
}
.icon-hover-accent-1:hover {
  color: var(--accent-1);
}

/* Typography */
.h-1, .h0, .h1, .h2, .h3, h4,
.font-xs, .font-sm, .font-md, .font-lg, .font-xl {
  font-weight: 700;
}

.h-1 {
  font-size: 4rem;
}
.h0 {
  font-size: 3.5rem;
}
.h1 {
  font-size: 2.5rem;
}
.h2 {
  font-size: 1.75rem;
}
.h3 {
  font-size: 1rem;
}
.h4 {
  font-size: 0.75rem;
}

/* Font sizes */
.font-3xs {
  font-size: 0.425rem;
}
.font-xxs {
  font-size: 0.625rem; /* 10px */
}
.font-xs {
  font-size: 0.825rem;
}
.font-sm {
  font-size: 1.125rem; /* 18px */
}
.font-md {
  font-size: 1.375rem; /* 22px */
}
.font-lg {
  font-size: 1.75rem; /* 28px */
}
.font-xl {
  font-size: 2.5rem; /* 40px */
}

/* Responsive Typography */
@media (max-width: 830px) {
  .h-1 { font-size: 4rem; }
  .h0 { font-size: 3rem; }
  .h1 { font-size: 2rem; }
  .h2 { font-size: 1.5rem; }
  .h3 { font-size: 1rem; }
  .h4 { font-size: 0.75rem;}

  /* .font-xs { font-size: 0.75rem; } */
  .font-sm { font-size: 1.25rem; }
  .font-md { font-size: 1rem; }
  .font-lg { font-size: 2rem; }
  .font-xl { font-size: 3rem; }
}

/* @media (min-width: 640px) {
  .h-1 { font-size: 5rem; }
  .h0 { font-size: 4rem; }
  .h1 { font-size: 3rem; }
  .h2 { font-size: 2rem; }
  .h3 { font-size: 1.25rem; }

  .font-xs { font-size: 0.75rem; }
  .font-sm { font-size: 1.25rem; }
  .font-md { font-size: 1.5rem; }
  .font-lg { font-size: 2rem; }
  .font-xl { font-size: 3rem; }
} */

@media (max-width: 580px) {
  .h-1 { font-size: 2.5rem; }
  .h0 { font-size: 2rem; }
  .h1 { font-size: 1.5rem; }
  .h2 { font-size: 1.25rem; }
  .h3 { font-size: 1rem; }
  .h4 {font-size: 0.75;}

  .font-xs { font-size: 0.75rem; }
  .font-sm { font-size: 0.5rem; }
  .font-md { font-size: 0.75rem; }
  .font-lg { font-size: 1.25rem; }
  .font-xl { font-size: 2rem; }
}

@media (min-width: 1024px) {
  .h-1 { font-size: 7rem; }
  .h0 { font-size: 5rem; }
  .h1 { font-size: 3rem; }
  .h2 { font-size: 2rem; }
  .h3 { font-size: 1.5rem; }
  .h4 {font-size: 1.25rem;}

  /* .font-xs { font-size: 0.75rem; } */
  .font-sm { font-size: 1.25rem; }
  .font-md { font-size: 1.5625rem; }
  .font-lg { font-size: 1.875rem; }
  .font-xl { font-size: 3.125rem; }
}

/* Margin Sizes */
.margin-xs {
  margin: 0.25rem;
}
.margin-sm {
  margin: 0.5rem;
}
.margin-md {
  margin: 1.5rem;
}
.margin-lg {
  margin: 3rem;
}
.margin-xl {
  margin: 4rem;
}

/* Responsive Margin Updates */
@media (min-width: 640px) {
  .margin-sm { margin: 1rem; }
  .margin-md { margin: 2rem; }
  .margin-lg { margin: 4rem; }
  .margin-xl { margin: 6rem; }
}

@media (min-width: 1024px) {
  .margin-sm { margin: 1rem; }
  .margin-md { margin: 3rem; }
  .margin-lg { margin: 5rem; }
  .margin-xl { margin: 7rem; }
}

/* Margin Sides */
.margin-r-xs { margin-right: 0.5rem; }
.margin-r-sm { margin-right: 1rem; }
.margin-r-md { margin-right: 2rem; }
.margin-r-lg { margin-right: 4rem; }
.margin-r-xl { margin-top: 6rem; }
.margin-r-xxl { margin-top: 8rem; }

.margin-l-xs { margin-left: 0.5rem; }
.margin-l-sm { margin-left: 1rem; }
.margin-l-md { margin-left: 2rem; }
.margin-l-lg { margin-left: 4rem; }
.margin-l-xl { margin-top: 6rem; }
.margin-l-xxl { margin-top: 8rem; }

.margin-b-xs { margin-bottom: 0.5rem; }
.margin-b-sm { margin-bottom: 1rem; }
.margin-b-md { margin-bottom: 2rem; }
.margin-b-lg { margin-bottom: 4rem; }
.margin-b-xl { margin-top: 6rem; }
.margin-b-xxl { margin-top: 8rem; }

.margin-t-xs { margin-top: 0.5rem; }
.margin-t-sm { margin-top: 1rem; }
.margin-t-md { margin-top: 2rem; }
.margin-t-lg { margin-top: 4rem; }
.margin-t-xl { margin-top: 6rem; }
.margin-t-xxl { margin-top: 8rem; }

/* Static Heights */
.height-40px { height: 40px; }
.height-100px { height: 100px; }
.height-200px { height: 200px; }
.height-250px { height: 250px; }
/* Static Widths */
.width-40px { width: 40px }
.width-100px { width: 100px; }
.width-200px { width: 200px }
.width-250px { width: 250px; }
/* Widths */
.width-5p { width: 5%; }
.width-10p { width: 10%; }
.width-20p { width: 20%; }
.width-25p { width: 25%; }
.width-50p { width: 50%; }
.width-75p { width: 75%; }
.width-98p { width: 98%; }
.width-100p { width: 100%; }

@media (min-width: 640px) {
  .width-25p { width: 25%; }
  .width-50p { width: 50%; }
  .width-75p { width: 75%; }
  .width-100p { width: 100%; }
}

@media (max-width: 580px) {
  .margin-r-sm { margin-right: 1rem; }
  .margin-r-md { margin-right: 2rem; }
  .margin-r-lg { margin-right: 2rem; }

  .margin-l-sm { margin-left: 1rem; }
  .margin-l-md { margin-left: 2rem; }
  .margin-l-lg { margin-left: 2rem; }

  .margin-b-sm { margin-bottom: 1rem; }
  .margin-b-md { margin-bottom: 2rem; }
  .margin-b-lg { margin-bottom: 4rem; }

  .margin-t-sm { margin-top: 1rem; }
  .margin-t-md { margin-top: 2rem; }
  .margin-t-lg { margin-top: 4rem; }
  .margin-t-xl { margin-top: 6rem; }
}

.padding-xs {
  padding: 5px;
}
.padding-sm {
  padding: 10px;
}
.padding-md {
  padding: 20px;
}
.padding-lg {
  padding: 30px
}
.padding-xl {
  padding: 50px;
}
.padding-xxl {
  padding: 70px;
}
.padding-3xl {
  padding: 100px;
}
.padding-r-xs { padding-right: 5px; }
.padding-r-sm { padding-right: 10px; }
.padding-r-md { padding-right: 20px; }
.padding-r-lg { padding-right: 30px; }
.padding-r-xl { padding-right: 50px; }
.padding-r-xxl { padding-right: 70px; }
.padding-r-3xl { padding-right: 100px; }
.padding-l-xs { padding-left: 5px; }
.padding-l-sm { padding-left: 10px; }
.padding-l-md { padding-left: 20px; }
.padding-l-lg { padding-left: 30px; }
.padding-l-xl { padding-left: 50px; }
.padding-l-xxl { padding-left: 70px; }
.padding-l-3xl { padding-left: 100px; }
.padding-t-xs { padding-top: 5px; }
.padding-t-sm { padding-top: 10px; }
.padding-t-md { padding-top: 20px; }
.padding-t-lg { padding-top: 30px; }
.padding-t-xl { padding-top: 50px; }
.padding-t-xxl { padding-top: 70px; }
.padding-t-3xl { padding-top: 100px }
.padding-b-xs { padding-bottom: 5px; }
.padding-b-sm { padding-bottom: 10px; }
.padding-b-md { padding-bottom: 20px; }
.padding-b-lg { padding-bottom: 30px; }
.padding-b-xl { padding-bottom: 50px; }
.padding-b-xxl { padding-bottom: 70px; }
.padding-b-3xl { padding-bottom: 100px; }

/* Utilities */
.align-txt-cntr {
  text-align: center;
}
.vertical-align-cntr {
  vertical-align: middle;
}
.text-decoration-none {
  text-decoration: none;
}
.overflow-y-scroll {
  overflow-y: scroll;
}
.overflow-x-scroll {
  overflow-x: scroll;
}
.overflow-scroll {
  overflow: scroll;
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-x-hidden {
  overflow-x: hidden;
}
.overflow-y-hidden {
  overflow-y: hidden;
}
.hover-cursor:hover {
  cursor: pointer;
}
.fit-content {
  max-width: fit-content;
}
.list-style-none { list-style: none; }

/* Animations */
/* Rotating Icon */
.rotate-icon {
  -webkit-animation:spin 4s linear infinite;
  -moz-animation:spin 4s linear infinite;
  animation:spin 4s linear infinite;
}
@-moz-keyframes spin { 
    100% { -moz-transform: rotate(360deg); } 
}
@-webkit-keyframes spin { 
    100% { -webkit-transform: rotate(360deg); } 
}
@keyframes spin { 
    100% { 
        -webkit-transform: rotate(360deg); 
        transform:rotate(360deg); 
    } 
}

/* Spinning Loader */
.lds-ring,
.lds-ring div {
  box-sizing: border-box;
}
.lds-ring {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid currentColor;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: currentColor transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Tooltips */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* Tooltip text */
.tooltip .tooltip-text {
  visibility: hidden;
  width: max-content;
  max-width: 200px;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;

  position: absolute;
  z-index: 1000;
  bottom: 125%; /* Show above */
  left: 50%;
  transform: translateX(-50%);
  
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 0.875rem;
  line-height: 1.2;
  white-space: normal;
  word-wrap: break-word;
}

/* Arrow */
.tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%; /* At the bottom of tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

/* Show on hover */
.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip[data-position="bottom"] .tooltip-text {
  top: 125%;
  bottom: auto;
}
.tooltip[data-position="bottom"] .tooltip-text::after {
  top: -5px;
  transform: rotate(180deg);
  border-color: #333 transparent transparent transparent;
}
/* ================================================================== */

/* Enlarge Vertical Slow */
.anim-dr-enlarge-vert-slow {
  background-color: var(--detail-row-bg);
  padding: 0px;
}

.grow-td {
  animation: growTd 300ms forwards linear;
}
@keyframes growTd {
  from { padding: 0px; }
  to { padding: 30px; }
}
/* =========================== */

/* Shrink Vertical Slow */
.shrink-td {
  animation: shrinkTd 100ms forwards linear;
}
@keyframes shrinkTd {
  from { padding: 30px; }
  to { padding: 0px; }
}

/* Custom components for Command Center */
.logItem {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    border-bottom: 1px var(--border) solid;
    background-color: var(--background);
    margin-top: 5px;
    font-size: 12px;
}

.logNameElm {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: start;
    /* border-top: 1px var(--border) solid; */
    padding-top: 5px;
    font-weight: 700;
}

.logDataElm {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: start;
    /* border-top: 1px var(--border) solid; */
    padding-top: 5px;
    margin-left: 10px;
}

.sensorLogItem {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  border-bottom: 1px var(--border) solid;
  background-color: var(--background);
  margin-top: 5px;
  font-size: 12px;
}

.sensorlogNameElm {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: start;
  /* border-top: 1px var(--border) solid; */
  padding-top: 5px;
  font-weight: 700;
}

.sensorlogDataElm {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: start;
  /* border-top: 1px var(--border) solid; */
  padding-top: 5px;
  margin-left: 10px;
}

.output-item {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: start;
  align-items: center;
  list-style: none;
  /* max-width: 200px; */
  /* max-height: 150px; */
  /* min-height: 100px; */
  font-size: 12px;
  font-weight: 500;
  color: white;
  margin-top: 3px;
  margin-bottom: 10px;
}

.dropzone {
  display:grid; place-items:center; text-align:center;
  border:2px dashed var(--border); border-radius:16px; padding:2.5rem;
  background:var(--upload-zone); transition:border-color .15s ease, background-color .15s ease;
  cursor:pointer; outline:none;
}
.dropzone:focus { border-color:var(--border-active); }
.dropzone.active { border-color:var(--border-active); background:#eef2ff; }
.dropzone p { margin:.25rem 0; }
.muted { color:#64748b; font-size:.9rem; }

.files { margin-top:1rem; display:grid; gap:.75rem; }
.file {
  display:flex; align-items:center; gap:.75rem;
  border:1px solid var(--border); border-radius:12px; padding:.5rem .75rem;
  background:#fff;
}
.thumb {
  width:48px; height:48px; border-radius:8px; object-fit:cover; background:#e2e8f0; flex:0 0 48px;
}
.meta { display:flex; flex-direction:column; min-width:0; }
.name { font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sub { color:#64748b; font-size:.85rem; }
.hidden { display:none !important; }
button.upload {
  margin-top:1rem; padding:.6rem 1rem; border-radius:10px; border:1px solid var(--border);
  background:#111827; color:#fff; font-weight:600; cursor:pointer;
}
button.upload:disabled { opacity:.5; cursor:not-allowed; }