body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.sifty-lilac{
  background-color: rgb(95 88 140) !important;
}
.sifty-lilac-text{
  color: rgb(95 88 140) !important;
}

main {
  display: flex !important;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.s-inline {
  padding-bottom: 5px;
  margin: 2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.s-inline-wide {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 1rem;
  gap: 1rem;
}

.long-form{
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}
  
.long-form-item{
  min-width: 250px;
  flex: 1 1 30%;
}

.long-form-item-full{
  flex: 1 1 100%;
}

.short-form{
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 480px;
  margin: 0;
  padding: 1rem;
  gap: 2rem;
}
  
.short-form-item{
  flex: 1 1 100%;
}

.center-text-btn{
  justify-content: center !important;
}

.footer-logo{
  max-height: 40px;
  margin: auto;
}

.login-logo{
  max-height: 120px;
  margin: 1rem 0 2rem 0;
}

.wide-card{
  padding-left: 3rem !important;
  padding-right: 3rem !important;
}

.table {
  max-height: 800px;
  max-width: 100vw;
  overflow: auto !important;
  /*margin-top: 2rem !important;*/
}

.table-padding-left {
  padding-left: 4rem;
}

.table-padding-right {
  padding-right: 4rem;
}

.sticky-header {
  position: sticky;
  top: 0;
  background: rgb(95 88 140); /* Set a background color so content scrolls under the header */
  z-index: 2;       /* Adjust as needed to ensure headers stay on top */
}

/* Base style for editable cells */
td[contenteditable="true"] {
  cursor: text;
  transition: background-color 0.2s ease;
  position: relative; /* For positioning the icon */
}

/* Hover effect to indicate interactivity */
td[contenteditable="true"]:hover {
  background-color: #f9f9f9;
}

/* Show a pencil icon on hover */
td[contenteditable="true"]:hover::after {
  content: "✎";
  font-size: 2em;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(95 88 140);
}

.tab-ribbon {
  background-color: rgb(95 88 140) !important;
}

.copy-message {
  position: absolute;
  top: -60px;
  transform: translateY(-50%);
  font-size: 1.2rem !important;
  background: #ff6464;
  color: white;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px;
  display: none;
}

.sorter{
  cursor: pointer; /* Indicates that the header is clickable */
  user-select: none; /* Prevents text selection when clicking */
}

.sorting-arrow {
  margin-left: 5px;
}

.force-sifty-blue{
  background-color: #201849 !important;
}

.force-sifty-blue-text{
  color: #201849 !important;
}


/* Custom tooltip stying for the table copy function */
.suggested-desc {
  cursor: pointer;         /* Show pointer to indicate interactivity */
  position: relative;      /* Needed for positioning the tooltip */
}

/* Tooltip styling using a pseudo-element */
.suggested-desc:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 100%;                /* Final top position */
  left: 50%;              /* Final left position */
  transform: translateX(-50%) translateY(-100%);
  background-color: #f1ac3c;
  color: #201849;
  padding: 5px 8px;
  border-radius: 0px 0px 3px 3px;
  white-space: nowrap;
  z-index: 10;
  opacity: 0;             /* Start invisible */
  animation: slideDown 0.2s forwards;
}

.suggested-desc:hover{
  box-shadow: inset 0 0 0 2px #f1ac3c;
}

@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* Throbber (spinner) styling */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(95, 88, 140, 0.3); /* light border */
  border-top: 3px solid rgb(95, 88, 140);      /* main color */
  border-radius: 50%;
  animation: spin 1s ease-in-out infinite;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


.v-spacer{
  min-height: 1rem;
}

.form-container {
  padding:0;
  position: relative;
  width: 100%;
  min-height: 150px; /* Prevents step flickering */
  transition: height 0.4s ease-in-out; /* Smooth height adjustment */
  overflow: hidden;
}

.form-step {
  padding: 0;
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  visibility: hidden;
}

.form-step.active {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  position: relative;
}

.form-step.hidden {
  padding: 1rem;
  opacity: 0;
  transform: translateX(-30px);
  visibility: hidden;
  position: absolute;
}

/* Added style for search-bar moved from manageUsers.html */
.search-bar {
    width: 100%;
    text-align: center;
}

.search-bar{
  display: inline-block !important;
  margin-bottom: 20px;
  align-content: center !important;
}

/* Override navbar <a> hover background to ensure padding area is also the desired color */
nav a:not(.brand-logo):not(.sidenav-trigger):hover {
    background-color: rgb(95, 88, 140) !important;
}

/* Responsive logo styling */
.responsive-logo {
    max-height: 55px;
}

@media (min-width: 600px) {
    .responsive-logo {
        max-height: 65px;
    }
}

.multiple-warnings {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 480px;
  margin: 0;
  padding: 0rem;
  gap: 5px;
}

.warning-message {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  display: flex;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  align-items: center;
  justify-content: center; /* Centers content horizontally */
  background-color: #fff3e0;
  border-radius: 5px;
  color: #f1ac3c;
  font-weight: 500;
  text-align: center;
  width: 100%;
  margin: 10; /* Centers the box itself */
}

.warning-message.visible {
  opacity: 1;
  padding: 10px 15px;
  max-height: 200px;
  border: 1px solid #f1ac3c;
}

.warning-message i {
  margin-right: 8px; /* Spacing between icon and text */
  font-size: 24px;
  color: #f1ac3c;
}

.warning-message span {
  color: #f1ac3c;
}