body {
  padding: 154px 50px 50px;
  font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}

.overlay{
  background: linear-gradient(90deg,transparent 0%, rgb(180, 255, 251) 50% , transparent 100%);
  background-size: 200% 100%;
  background-position: 0% 0;
  animation: slideBackground 3s ease-in-out infinite ;
  width:100%;
  height: 100%;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.w-3{
  width: 3% !important;  
}

.w-4em{
  width: 4em;
}

.c-salmon {
  color: salmon;
}

a {
  color: salmon;
  text-decoration: none;
}

.hover-w:hover {
  color: white;
  background-color: #0dcaf0 !important;
}

.c-card{
  background: white;
  border: 0.5px solid rgb(209, 209, 209);
  box-shadow: 3px 3px 8px rgb(209, 209, 209); 
  border-radius: 1em;
  transition: all ease-in-out 0.5s;
  cursor: pointer;
}

.sub-card{
  max-height: 6.5em;
  overflow: hidden;
  transition: all 1.5s linear;
}

.sub-card:hover{
  max-height: 50em;
}

.sub-card-open{
  max-height: 50em;
}

.add-card{
  color: #8f8f8f;
  padding: 5em;
  font-size: 16px;
  text-align: center;
}

.add-card:hover{
  margin: 8px;
  font-size: 18px;
  transition: all ease-in-out 0.5s;
}

.min-16{
  min-width: 16em;
}

.select, .req-card:hover {
  background: linear-gradient(90deg,white 0%, rgb(233, 255, 254) 50% , white 100%);
  background-size: 200% 100%;
  background-position: 0% 0;
  animation: slideBackground 3s ease-in-out infinite ;
  transition: all ease-in-out 0.5s;
  margin: 8px;
}

.wave-text {
  font-size: 60px;
  background-image: linear-gradient(to right, #fff2e3, #7aabe3);
  background-size: 200% 100%;
  -moz-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: slideBackground 6s ease-in-out infinite;
}

@keyframes slideBackground {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: 0% 0%;
  }
}

.unit-list{
  height: 80vh;
}

.unit-list option:checked {
  background-color: salmon;
  color: white;
}

.unit-list-empty {
  align-items: center;
  border: 1px solid #dee2e6;
  border-radius: .375rem;
  color: #6c757d;
  display: flex;
  height: 12rem;
  justify-content: center;
}

.app-fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: #fff;
  border-bottom: 1px solid #d8d8d8;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  padding: 12px 50px;
}

body.compact-header {
  padding-top: 90px;
}

.app-title-row {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.app-title {
  color: #333;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.app-nav {
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.app-nav .nav-item {
  display: flex;
}

.app-nav .app-nav-action {
  align-items: center;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  min-width: 92px;
  padding: 8px 12px;
  text-align: center;
  white-space: nowrap;
}

.app-nav button.app-nav-action {
  background: transparent;
  color: #0d6efd;
}

.app-nav button.app-nav-action:hover,
.app-nav button.app-nav-action:focus {
  color: #0a58ca;
}

.app-nav .app-nav-action.active,
.app-nav button.app-nav-action.active {
  background: #0d6efd;
  color: #fff;
}

.group-message-bar {
  align-items: center;
  background: #f7fbff;
  border: 1px solid #cfe2ff;
  border-radius: 8px;
  display: flex;
  gap: 16px;
  margin-top: 10px;
  min-height: 48px;
  padding: 8px 12px;
}

.group-message-title {
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

.group-message-time {
  color: #777;
  font-size: 12px;
  margin-top: 4px;
  white-space: nowrap;
}

.group-message-list {
  display: flex;
  flex: 1;
  gap: 8px;
  list-style: none;
  margin: 0;
  overflow-x: auto;
  padding: 0;
}

.group-message-list li {
  margin: 0;
}

.group-message-item {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  color: #333;
  cursor: pointer;
  padding: 6px 10px;
  white-space: nowrap;
}

.group-message-item:hover,
.group-message-item.active {
  background: #e7f1ff;
  border-color: #86b7fe;
  color: #084298;
}

.condition-modal-backdrop {
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 120;
}

.condition-modal {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-height: 70vh;
  overflow: hidden;
  width: min(720px, calc(100vw - 32px));
}

.condition-modal-header {
  align-items: center;
  border-bottom: 1px solid #e2e2e2;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
}

.condition-modal-body {
  display: grid;
  gap: 8px;
  max-height: calc(70vh - 55px);
  overflow-y: auto;
  padding: 12px;
}

.condition-option {
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  color: #333;
  cursor: pointer;
  padding: 8px 10px;
  text-align: left;
}

.condition-option:hover {
  background: #e7f1ff;
  border-color: #86b7fe;
}

@media (max-width: 992px) {
  body {
    padding: 230px 16px 24px;
  }

  body.compact-header {
    padding-top: 150px;
  }

  .app-fixed-header {
    padding: 10px 16px;
  }

  .app-title-row,
  .group-message-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-nav {
    justify-content: flex-start;
  }
}
