html, body {
  margin: 0;
  padding: 0;
  font-family: 
    proxima-nova, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background-color: #ffffff;
  color: #002855; /* UC Davis Blue */
  line-height: 1.25;
  height: 100vh;
  overflow: hidden; /* Prevent full-page scroll */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #002855;
  margin-top: 0em;
  margin-bottom: 0.25em;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

/* Links */
a {
  color: #002855;
  text-decoration: none;
}

a:hover {
  color: #ffc519; /* UC Davis Gold */
  text-decoration: underline;
}

/* Buttons */
button {
  background-color: #002855;
  color: white;
  border: none;
  padding: 0.6em 1.2em;
  font-size: 1em;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
}

button:hover {
  background-color: #ffc519;
  color: #002855;
}

button:disabled {
  background-color: #cccccc; /* light gray background */
  color: #666666;            /* darker gray text */
  cursor: not-allowed;       /* show not-allowed cursor */
  opacity: 0.6;              /* optional: reduce opacity */
}

.app-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

p {
  margin-top: 0em;
  margin-bottom: 0.25em;
}

.paragraph-no-margins {
  margin-top: 0em;
  margin-bottom: 0.0em;
}

/* Containers */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1em;
}

/* Header and Footer */
header, footer {
  background-color: #002855;
  color: white;
  text-align: center;
  padding: 1em 0;
}

/* Accent Text Example */
.accent {
  color: #ffc519;
}


.heading-bar {
  flex-shrink: 0; /* Prevent collapsing */
  background-color: #002855;
  color: #ffc519;
  padding: 0.5em 0.5em;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0;
}

.heading-left a {
  color: #ffc519;        /* Gold by default */
  text-decoration: none; /* or whatever you prefer */
}

.heading-right {
  font-weight: 400;
  font-size: 1rem;
}

.heading-right a {
  color: #ffc519;        /* Gold by default */
  text-decoration: none; /* or whatever you prefer */
}

/* Sidebar + content container */
.page-container {
  display: flex;
  flex: 1; /* take remaining vertical space */
  overflow: hidden; /* prevent sidebar/content overflow */

}

/* Sidebar */
.nav-bar {
  background-color: #ffc519;
  color: #002855;
  width: 150px;
  padding: 0.5em 1em;
  box-sizing: border-box;
  flex-shrink: 0;
  overflow-y: auto;
}

/* Sidebar links */
.nav-bar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-bar li {
  margin: 0.5em 0;
}

.nav-bar a {
  color: #002855;
  text-decoration: none;
  font-weight: 600;
}

.nav-bar a:hover {
  text-decoration: underline;
}

/* Main content */
.main-content {
  flex: 1;
  padding: 0.5em;
  box-sizing: border-box;
  overflow-y: auto;
}

.wrapper {
  display: inline-block;
}

.wrapper button {
  display: block;
  margin: 0 auto;
}


.color-settings {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  align-items: stretch; /* full width per row */
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  width: max-content; /* or a fixed width if needed */
}

.color-setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%; /* full width of parent */
  gap: 0.5em;
}

.color-setting label {
  white-space: nowrap;
  flex: 1; /* allow label to fill available space */
  text-align: left;
}

.color-setting input[type="color"] {
  width: 50px;
  flex-shrink: 0;
}

.color-setting input[type="number"] {
  width: 50px;
  flex-shrink: 0;
}

.color-setting label:has(+ input[disabled]) {
  opacity: 0.5;
}

.color-setting input[type="color"]:disabled {
  opacity: 0.5;
  cursor: not-allowed; /* optional to indicate it's disabled */
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 1em;
  font-size: 1rem;
}

th, td {
  border: 1px solid #ccc;
  padding: 0.5em 0.75em;
  text-align: left;
}

th {
  background-color: #f2f2f2;
  color: #002855;
  font-weight: 700;
}

th {
  cursor: pointer;
}

.sort-indicator {
  float: right;
  width: 1em; /* enough space for one arrow */
  text-align: center;
  font-size: 0.8em;
  color: #002855;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-top: 1em;
  font-size: 1rem;
}

.rows-per-page {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.page-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: center;
}

.page-buttons span {
  cursor: pointer;
  padding: 0.25em 0.5em;
  font-weight: bold;
  color: #002855;
}

.page-buttons span.active {
  background-color: #002855;
  color: white;
  border-radius: 4px;
}

ul {
  padding-left: 40px; /* default or adjust to your preference */
  list-style-position: outside; /* bullets outside */
}

.list-small_margin {
  margin-block-start: 0.25em;
  padding-left: 40px; /* default or adjust to your preference */
  list-style-position: outside; /* bullets outside */
}

li {
  position: relative;         /* establish positioning context */
  padding-right: 2.5rem;      /* space for the trashcan on the right */
  line-height: 1.5;
}

button.icon {
  position: absolute;
  right: 0.5rem;              /* distance from the right edge */
  top: 50%;
  transform: translateY(-50%);
  
  background: none;
  border: none;
  padding: 0;
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform 0.1s ease, color 0.2s ease;
}

button.icon:hover {
  color: red;
  transform: translateY(-50%) scale(1.1);
}

button.icon:focus {
  outline: 2px solid blue;
  outline-offset: 2px;
}

.table-filter-row {
  display: flex;               /* put children side-by-side */
  gap: 0.5em;                   /* space between input and button */
  margin-bottom: 8px;
  width: 100%;                  /* match table width */
}

.table-filter {
  flex: 1;                      /* take up remaining space */
  padding: 0.4em 0.6em;
  font-size: 1rem;
  box-sizing: border-box;
}

.table-filter-button {
  flex-shrink: 0;               /* button keeps its width */
  padding: 0.4em 0.8em;
  font-size: 1.2rem;             /* bigger for the icon */
  cursor: pointer;
}

.img-border { 
  border: 3px solid #002855; 
}

.img-reduced-size {
    width: 386px;
    height: auto; /* Keeps aspect ratio */
    cursor: pointer;
}


.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.image-overlay img {
  max-width: 90%;
  max-height: 90%;
  border: 3px solid #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  cursor: pointer;
}

.clickable {
  cursor: pointer;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('https://campusfont.ucdavis.edu/proxima-nova/proximanova_regular_macroman/proximanova-regular-webfont.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  crossorigin: anonymous;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('https://campusfont.ucdavis.edu/proxima-nova/proximanova_bold_macroman/proximanova-bold-webfont.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  crossorigin: anonymous;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('https://campusfont.ucdavis.edu/proxima-nova/proximanova_extrabold_macroman/proximanova-extrabold-webfont.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  crossorigin: anonymous;
}