/* '''''''''''''''''''''''''''''''''''''''' */

/* MAIN DEFAULT STYLES */

/* '''''''''''''''''''''''''''''''''''''''' */

body {
  font-family: "Roboto Condensed", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#background-pic {
  top: 0;
  left: 0;
  position: fixed;
  object-fit: cover;
  z-index: -1;
  height: 100%;
  width: 100%;
  opacity: 0.5;
  transform: scale(1.2);
  transform-origin: left;
}

#auth-background-pic {
  top: 0;
  left: 0;
  position: absolute;
  object-fit: cover;
  object-position: center top;
  z-index: -1;
  height: 100%;
  width: 100%;
  opacity: 0.7;
}

h1,
h2,
p {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: black;
  display: block;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

button {
  background: rgb(200, 200, 200);
  color: inherit;
  border: none;
  padding: 0.5rem 2rem;
  font: inherit;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}

/* for error pages */
h3 {
  margin-top: 3rem;
  padding: 0;
  text-align: center;
  font-size: 3rem;
}

.hidden {
  display: none !important;
}

/* +++++++++++++++++++++++++++++++++++++++ */

/* -------------------------------------------------- */

/* COLLAPSE STYLES */

/* ----------------------------------------------------- */

.collapse-header {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
  padding: 0.5rem 1rem;
  /* background-color: #357abd; */
  background-color: #2563a8;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

  /* position: relative;
  overflow: hidden; */
}

.collapse-header:has(.collapse-arrow.expanded) {
  border-radius: 12px 12px 0 0; /* Only round top when expanded */
}

.collapse-header:hover {
  background: #164388;
}

.collapse-header:active {
  background: #164388;
  /* background: linear-gradient(135deg, #1d5398 0%, #164388 100%); */
  transform: scale(0.99);
}

.collapse-title {
  text-align: left;
  font-size: 1.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  max-width: 100%;
  /* max-width: calc(100% - 3rem); */
  letter-spacing: -0.01em;
  line-height: 1.4;
  /* flex: 1; */
}

.collapse-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  margin-right: 0.5rem;
  /* background-color: #f2f3f5; */
  background-color: #dce9f7;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.collapse-arrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2.5px solid #164388;
  border-bottom: 2.5px solid #164388;
  transform: rotate(-45deg) translate(-1px, -1px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.collapse-arrow.expanded {
  background-color: #e9ecef;
}

.collapse-arrow.expanded::before {
  transform: rotate(45deg) translate(-1px, -1px);
  border-color: #2c3e50;
}

.collapse-content {
  max-height: 100000px;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease, padding 0.3s ease;
  opacity: 1;
  overflow: hidden;
  background-color: #ffffff;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.wrapper {
  background: none;
}

.wrapper .collapse-header {
  padding: 1rem 1.5rem;
  margin-bottom: 0;
}

.wrapper .collapse-content {
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  margin: 0;
}

.collapse-content.hidden {
  max-height: 0;
  opacity: 0;
  padding: 0;
}

#return-display-wrapper .collapse-header {
  justify-content: left;
  line-height: 1.5;
}

#return-display-wrapper .collapse-title {
  margin-left: 0.5rem;
}

/* --------------------- */

/* makes collapse headers smaller for article pics */
.article-pic-collapse .collapse-header {
  margin: 0 auto;
  width: fit-content;
  border-radius: 0 0 8px 8px;
  background-color: rgb(215, 215, 215);
  transition: background-color 0.3s ease;
}

.article-pic-collapse .collapse-header:has(.collapse-arrow.expanded) {
  border-radius: 0 0 8px 8px;
}

.article-pic-collapse .collapse-header:hover {
  background-color: rgb(180, 180, 180);
}

.article-pic-collapse .collapse-header:active {
  background-color: rgb(180, 180, 180);
  transform: scale(0.99);
}

.article-pic-collapse .collapse-title {
  color: #2c3e50;
  font-size: 1.5rem;
  max-width: calc(100% - 1rem);
}

.article-pic-collapse .collapse-content {
  background-color: transparent;
  box-shadow: none;
}

/* +++++++++++++++++++++++++++++++++++++++ */

/* -------------------------------------------------- */

/* CLASSES */

/* ----------------------------------------------------- */

/* PW INPUT CLASSES */
.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input {
  width: 100%;
  padding: 14px 48px 14px 16px;
  font-size: 16px;
  font-weight: 400;
  color: #2d3748;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.password-input:hover {
  /* border-color: #3b82f6; */
  border-color: #164388;
}

.password-input:focus {
  border-color: #164388;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.password-input::placeholder {
  color: #a0aec0;
}

/* === PASSWORD TOGGLE BUTTON === */
.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  transition: color 0.2s ease;
}

.password-toggle-btn:hover {
  color: #374151;
}

.password-toggle-btn:focus {
  outline: 2px solid #164388;
  outline-offset: 2px;
}

.password-toggle-btn svg {
  width: 20px;
  height: 20px;
}

/* -------------------------------------------------- */

/* BUTTON CLASSES */

.btn-submit {
  width: 100%;
  padding: 16px 24px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  /* background: #357abd; */
  background: #2563a8;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
}

.btn-submit:hover {
  background: linear-gradient(135deg, #3573b8 0%, #2563a8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.35);
}

.btn-submit:active {
  transform: translateY(0);
  background: linear-gradient(135deg, #1d5398 0%, #164388 100%);
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.25);
}

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

/* ----------------------------------- */

/* AUTH FORM STYLES */

/* ------------------------------------- */

#auth-form-wrapper,
#admin-auth-form-wrapper {
  margin: 1.5rem auto;
  max-width: 400px;
  padding: 1.5rem 2rem;
  background: #fafbfc;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#auth-form-wrapper li,
#admin-auth-form-wrapper li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#auth-pw-list-item,
#admin-auth-pw-list-item {
  margin-bottom: 1.5rem;
}

#auth-label {
  margin-left: 0.2rem;
  font-size: 1.6rem;
  font-weight: 600;
  text-align: left;
  color: #2d3748;
}

/* +++++++++++++++++++++++++++++++++++++++ */

/* -------------------------------------------------- */

/* MAIN FORM STYLES */

/* ------------------------------------- */

#drop-down {
  position: absolute;
  top: 1rem;
  left: 1rem;
  margin-left: 0.5rem;
  z-index: 100;
  transition: all 0.3s ease;
}

/* When drop down buttons are visible, dropdown becomes part of document flow */
#drop-down:has(#drop-down-button-wrapper:not(.hidden)) {
  position: relative;
  top: 0;
  left: 0;
  margin: 1rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: fit-content;
}

#drop-down a span {
  width: 100%;
  height: 0.25rem;
  background-color: black;
}

#drop-down:hover {
  transform: scale(1.1);
}

/* Don't scale when action buttons are visible */
#drop-down:has(#drop-down-button-wrapper:not(.hidden)):hover {
  transform: none;
}

#drop-down-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  flex-shrink: 0;
}

#drop-down-menu-display {
  box-shadow: 5px 5px 5px 0 rgba(0, 0, 0, 0.5);
  background-color: white;
  border-radius: 10px;
  display: none;
}

#drop-down-menu-display h2 {
  font-size: 3rem;
  font-weight: bold;
  padding: 1rem 2.5rem;
  border: none;
}

#drop-down-menu-display h2:hover {
  background-color: rgb(215, 215, 215);
  border-radius: 10px;
}

/* -------------------------------------------------- */

#drop-down-button-wrapper {
  background-color: rgb(235, 235, 235);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
}

#drop-down-button-wrapper li {
  margin-bottom: 0;
}

.drop-down-button {
  width: 100%;
  min-width: 180px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  background-color: #b3d9ff;
  color: #2c3e50;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.1s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.drop-down-button:hover {
  background-color: #9cc9ff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.drop-down-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* -------------------------------------------------- */

#input-form-wrapper {
  margin: 1.5rem auto;
  display: flex;
  flex-direction: row;
  gap: 5rem;
  width: 80%;
  align-items: flex-start;
}

#input-form-wrapper > * {
  flex: 1;
  min-width: 0;
}

.input-type-wrapper {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1rem;
  background-color: #ffffff;
  /* border-radius: 12px; */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

/* .input-type-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
} */

.input-type-wrapper li {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.input-type-wrapper li:last-child {
  margin-bottom: 0.5rem;
}

.input-type-wrapper label {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #2d3748;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.input-type-wrapper input {
  width: 100%;
  font-size: 1rem;
  padding: 0.75rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
  background-color: #ffffff;
}

.input-type-wrapper input:focus {
  border-color: #164388;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  outline: none;
}

.input-type-wrapper input::placeholder {
  color: #a0aec0;
}

.input-type-wrapper select {
  width: 100%;
  font-size: 1rem;
  padding: 0.75rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-family: inherit;
  appearance: none;
  background: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E")
    no-repeat right 0.75rem center;
  background-size: 0.8em;
  background-color: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.input-type-wrapper select:focus {
  border-color: #164388;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  outline: none;
}

/* ----------------------------------- */

/* DATA RETURN STYLES */

#return-display-wrapper {
  margin: 1.5rem auto;
  width: 90%;
}

/* -------------------------- */

/* TYPE BUTTONS */

.button-type-container {
  margin: 0 auto;
  /* margin-bottom: 1.5rem; */
}

.button-type-list {
  margin: 0 auto;
  padding: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  width: fit-content;
  background-color: #f8fafc;
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  opacity: 0.9;
}

.button-type-list-item {
  margin: 0;
  list-style: none;
}

.button-type-item {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  background-color: transparent;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  transition: all 0.2s ease, background-color 0.3s ease, color 0.3s ease;
  box-shadow: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1;
}

.button-type-item:hover {
  background-color: #ffffff;
  color: #1e293b;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.button-type-item:active {
  transform: translateY(0);
  box-shadow: none;
}

.button-type-item.active {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  transform: none;
}

.button-type-item.active:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  transform: none;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.35);
}

/* Special styling for the "ALL ARTICLES" button to make it stand out */
.button-type-item[data-label="all-type"] {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

/* ----------------------------------- */

/* ARTICLES */

.article-list-item {
  margin-top: 1.5rem;
  /* margin-bottom: 2rem; */
  width: 100%;
}

#article-container-element {
  background-color: #ffffff;
  padding: 0;
}

#article-element {
  margin-bottom: 1.5rem;
  padding: 0.5rem 3rem 0.5rem 2rem;
}

#article-title {
  line-height: 1.3;
  letter-spacing: -0.02em;
}

#article-title span {
  font-size: 1.2rem;
  font-weight: 500;
  vertical-align: middle;
}

#article-date {
  margin: 0 auto;
  /* margin-top: -1rem; */
  padding: 0.5rem 0;
  padding-left: 0.5rem;
  display: block;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  width: 98%;
}

#article-text {
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.05em;
  color: #334155;
}

/* ----------------------------------- */

/* PIC STYLES */

.pic-list-item {
  margin-top: 1.5rem;
  /* margin-bottom: 2rem; */
}

#pic-container-title {
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* #pic-container-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.3;
  letter-spacing: -0.02em;
} */

#pic-container-element {
  background-color: #ffffff;
  padding: 0;
}

#pic-container-title span {
  font-size: 1.2rem;
  font-weight: 500;
  vertical-align: middle;
}

#pic-container-date {
  margin: 0 auto;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
  padding-left: 0.5rem;
  display: block;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  width: 98%;
}

#pic-wrapper-element {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.2rem 0.5rem;
  margin: 0 auto;
  /* margin-bottom: -1rem; */
  padding: 1rem;
  list-style: none;
  width: 100%;
  background-color: transparent;
  box-sizing: border-box;
}

#pic-wrapper-item {
  position: relative;
  background-color: transparent;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */

  overflow: hidden;
  /* aspect-ratio: 3/2; */
  display: flex;
  flex-direction: column;
}

/* WANT TO MAKE BIGGER, BUT NOT WORTH FIGURING OUT OVERFLOW */
#pic-wrapper-item:hover {
  transform: scale(1.05);
  transition: all 0.3s ease;
  z-index: 10;
}

#pic-element {
  border-radius: 8px 8px 0 0;
}

#pic-element-stats {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 0;
  padding: 0.3rem 0.5rem;
  background-color: #f5f5f5;
  min-height: 1rem;
  max-height: 3rem;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 0 0 8px 8px;
}

/* Individual stat elements */
#pic-element-date,
#pic-element-source,
#pic-element-server {
  font-size: 0.7rem;
  line-height: 1.2;
  color: #666;
  margin: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----------------------------------- */

.vid-list-item {
  margin-top: 1.5rem;
  /* margin-bottom: 2rem; */
}

#vid-container-element {
  background-color: #ffffff;
  padding: 0;
}

#vid-title {
  line-height: 1.3;
  letter-spacing: -0.02em;
}

#vid-title span {
  font-size: 1.5rem;
  vertical-align: middle;
}

#vid-date {
  margin: 1rem auto;
  padding: 0.5rem 0;
  padding-left: 1rem;
  display: block;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  width: 95%;
}

#vid-element {
  margin: 0 auto;
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
}

/* ----------------------------------- */

/* EMPTY RETURN */

#empty-display-wrapper {
  margin: 3rem auto;
  padding: 1.5rem 3rem;
  background-color: #fafbfc;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: fit-content;
}

#empty-display-wrapper p {
  margin: 0 auto;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* +++++++++++++++++++++++++++++++++++++++ */

/* ADMIN STYLES */

/* -------------------------------------------------- */

/* ADMIN FORM STYLES */

/* ------------------------------------- */

#admin-form-overall-wrapper {
  width: 90%;
  margin: 1.5rem auto;
  display: flex;
  gap: 7rem;
}

#admin-form-collapse-container {
  width: 100%;
  max-width: 600px;
}

#admin-form-wrapper {
  padding: 1rem 1.5rem;
}

#admin-form-wrapper li {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

/* #admin-form-wrapper li.hidden {
  display: none;
} */

#admin-form-wrapper label {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #2d3748;
  margin-bottom: 2px;
}

#admin-form-wrapper select {
  width: 100%;
  padding: 0.7rem;
  font-size: 1rem;
  font-weight: 400;
  color: #2d3748;
  background: #ffffff;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6c7d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

#admin-form-wrapper input {
  width: 96%;
  padding: 0.7rem;
  font-size: 1.1rem;
  font-weight: 400;
  color: #2d3748;
  background: #ffffff;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}

#admin-form-wrapper input::placeholder {
  color: #a0aec0;
}

#admin-form-wrapper li:last-child {
  margin-bottom: 0;
  margin-top: 2rem;
}

#admin-form-wrapper select:hover {
  border-color: #164388;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

#admin-form-wrapper select:focus {
  border-color: #164388;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

#admin-form-wrapper input:hover {
  border-color: #164388;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

#admin-form-wrapper input:focus {
  border-color: #164388;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

#admin-form-wrapper #admin-button-list-item {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

#admin-submit-button {
  width: 69%;
  margin-left: auto;
}

#admin-update-data-button {
  width: 28%;
  letter-spacing: -0.02em;
  background: #1e4620;
}

#admin-update-data-button:hover {
  background: #0c2d1c;
}

#admin-update-data-button:active {
  background: #0c2d1c;
}

/* +++++++++++++++++++++++++++++++++++++++ */

/* -------------------------------------------------- */

/* ADMIN STATUS STYLES */

/* -------------------------------------------------- */

#admin-status-collapse-container {
  /* width: 100%; */
  max-width: 600px;
}

#admin-status-wrapper {
  padding: 1.2rem 1.5rem;
  margin: 0;
  background-color: #ffffff;
  border-radius: 0 0 12px 12px;
}

#admin-status-wrapper li {
  display: flex;
  justify-content: left;
  align-items: baseline;
  text-align: left;
  gap: 0;
  /* gap: 1rem; */
  padding: 16px 0;
}

.status-label {
  flex: 0 0 150px;
  font-size: 0.9rem;
  font-weight: 600;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #2d3748;
  margin: 0;
}

.status-value {
  flex: 1;
  font-size: 1.4rem;
  text-align: left;
  color: black;
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.admin-status-collapse .collapse-header {
  background-color: #1e4620;
  padding: 1rem 1.5rem;
}

.admin-status-collapse .collapse-header:hover {
  background-color: #0c2d1c;
}

.admin-status-collapse .collapse-header:active {
  background-color: #0c2d1c;
}

/* -------------------------- */

/* ================================================ */
/* ADMIN RETURN DIPLAY STYLES CLAUDE */
/* ================================================ */

.admin-table-container {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
  margin-bottom: 5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.admin-table-wrapper {
  overflow-x: auto;
  padding: 20px 30px;
}

.admin-table-header-wrapper {
  width: 100%;
  /* background: #2c5aa0; */
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-table-title {
  font-size: 1.7rem;
  font-weight: 600;
  text-align: left;
}

.admin-record-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table-header {
  background: #f8f9fa;
  position: sticky;
  top: 0;
}

th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
  border-bottom: 2px solid #dee2e6;
  cursor: pointer;
  user-select: none;
}

th:hover {
  background: #e9ecef;
}

th.sortable {
  position: relative;
}

td {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

tr:hover {
  background: #f8f9fa;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-active {
  background: #e3f2fd;
  color: #1565c0;
}

.status-finished {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-error {
  background: #ffebee;
  color: #c62828;
}

.status-inactive {
  background: #f5f5f5;
  color: #616161;
}

.id-cell {
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: #6c757d;
}

.timestamp {
  font-size: 13px;
  color: #495057;
}

.duration {
  font-weight: 600;
  color: #2e7d32;
}

.null-value {
  color: #adb5bd;
  font-style: italic;
}

.message-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boolean-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.boolean-true {
  background: #2e7d32;
}

.boolean-false {
  background: #c62828;
}

.sort-icon {
  margin-left: 4px;
  opacity: 0.3;
  font-size: 10px;
}

th:hover .sort-icon {
  opacity: 0.6;
}

th.sort-asc .sort-icon {
  opacity: 1;
  transform: rotate(180deg);
}

th.sort-desc .sort-icon {
  opacity: 1;
}

.admin-stats-container {
  max-width: 1400px;
  width: 90%;
  margin: 1.5rem auto;
  margin-bottom: 1.5rem;
}

.admin-stats-bar {
  background: white;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #dee2e6;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* gap: 2rem; */
}

.admin-stat-item {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* gap: 0.25rem; */
  border-right: 1px solid #e0e0e0;
  flex: 1;
  text-align: left;
}

/* .admin-stat-item:first-child {
  padding-left: 0;
} */

.admin-stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: #868e96;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
