/* Processing Message Style */
#processingMessage {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    background-color: #f0f0f0; /* Light gray background */
    padding: 10px;
    min-height: 30px; /* Ensures message area does not collapse */
}

/* Blink Effect for Updates */
.blink {
    animation: blinker 0.5s step-start infinite alternate;
}

@keyframes blinker {
    50% { opacity: 0.3; }
}

/* Fade-in Animation */
.update-animation {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}




h1 {
    margin: 0;
    padding: 10px;
    background-color: #ffffff;
    color: #6c0633;
    font-family: 'Roboto Condensed',sans-serif;
    font-weight: 700;
    
  }
  body {
    margin: 0px;
    padding: 10px;
    background-color: #DAD6CB;
    font-family: "Trebuchet MS",Arial,Helvetica,sans-serif;
    line-height: 1.5;
  }
  p {
    margin: 0px;
  }
  .fixednav {
    position: fixed;
    top: 0;
    left: 0;
  }
  .staticnav {
    position: static;
  }
  #navigation {
    background-color: #6c0633;
    padding: 10px;
  
  }
  #navigation a {
    padding: 0px;
    color: white;
    text-decoration: none;
  }
  #copy-target{
    background-color: #ffffff;
  
  }
  #copy-button{
    background-color: #DAD6CB;
  
  }
  
  .tooltip {
   font-size: 0.75em;
  }
  
  
  
  
  
  /*set the default color of the stars*/
  .star-rating{
      color: #bebebe;
      font-size:2em;
  }
  /*create the star*/
  .my-star::before{
      content:"\002605";
  }
  /*remove the default style (italic) of the star*/
  .my-star{
      font-style: unset !important;
  }
  /*set active star color*/
  .is-active{
      color:#fb8900;
  }
  /*set color on hover*/
  .my-star:not(.is-active):hover{
      color: #fb8900;
  }
  select, input {
      margin-bottom: 0.5em;
  }
  form {
    padding: 0 2em;
  }
  @media only screen and (max-width: 400px) {
    #output_frame {
      display: none;
    }
  }
  


  /* Pop-up Background Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(253, 253, 253, 0.767); /* Semi-transparent black */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Pop-up Content Box */
.popup-content {
    background: rgba(255, 255, 255, 0.603);
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

/* Make the popup content scrollable without growing off-screen */
.popup-content {
  max-height: 80vh;           /* keep it within the viewport */
  overflow-y: auto;           /* enable vertical scroll for long content */
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
  padding-right: 12px;        /* space so text doesn’t sit under the scrollbar */
  box-sizing: border-box;
}

/* (Optional) if very tall on small screens, allow the overlay to scroll too */
.popup-overlay {
  padding: 16px;              /* breathing room around the card */
  overflow-y: auto;           /* let the whole overlay scroll if needed */
}

/* Close Button */
.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}


.delegateEntry {
  position: relative;
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
}

.delegate-remove-link {
  position: absolute;
  top: 5px;
  left: 5px;
  color: red;
  font-weight: bold;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

/* Session Overlay */

#sessionOverlay {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#sessionOverlay.show {
  display: flex !important;
}

/* Style the box and ring if not done already */
.timeout-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.countdown-ring svg {
  width: 100px;
  height: 100px;
  transform: rotate(-90deg);
}

.countdown-ring circle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.countdown-ring circle:first-child {
  stroke: #ddd;
}

#ringProgress {
  stroke: #6c0633;
  stroke-dasharray: 283;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

#ringText {
  fill: #333;
  font-size: 1.5em;
  font-weight: bold;
  transform: rotate(90deg);
}






.uc-wrapper {
  position: relative;
  padding: 28px 16px;
  margin-top: 12px;
}

.uc-tape {
  height: 22px;
  background: repeating-linear-gradient(
    45deg,
    #222 0 16px,
    #f7c200 16px 32px
  );
  box-shadow: 0 2px 0 rgba(0,0,0,.15) inset;
}
.uc-tape.top { border-top-left-radius: 6px; border-top-right-radius: 6px; }
.uc-tape.bottom { border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; }

.uc-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #f59e0b;
  border-radius: 6px;
  padding: 16px;
  margin: 12px 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

.uc-card h3 {
  margin: 0 0 8px;
}

#backToCheck {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  cursor: pointer;
}
#backToCheck:hover { background: #e5e7eb; }





:root{
  /* Palette inspired by SIU Get Involved */
  --siu-maroon: #7a0019;
  --siu-maroon-dark: #5e0013;
  --siu-maroon-30: rgba(122,0,25,0.3);
  --gold-accent: #c9a552; /* subtle accent if needed */
  --ink: #1f2937;
  --muted: #6b7280;
  --panel: #f7f7f8;
  --panel-contrast: #ffffff;
  --border: #e5e7eb;
  --focus: #bb2649; /* maroon-ish focus ring */
  --shadow: 0 6px 24px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;

  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 1.75rem;
  --space-6: 2rem;
}

html, body{
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}

/* Page title band */
h1{
  font-family: "Merriweather", serif;
  font-weight: 700;
  letter-spacing: .2px;
  color: #fff;
  margin: 0 0 var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  background:
    radial-gradient(1200px 300px at 10% 0%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(135deg, var(--siu-maroon) 0%, var(--siu-maroon-dark) 100%);
  box-shadow: var(--shadow);
}

/* Subhead / greeting */
h3#greeting{
  margin-top: calc(-1 * var(--space-4));
  margin-bottom: var(--space-4);
  color: var(--muted);
  font-weight: 600;
}

/* Cards / panels */
.infoBlock,
.formSection,
.alertBox,
#responseMessage,
#processingMessage,
#outcomeMessage{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin: var(--space-3) 0;
  box-shadow: var(--shadow);
}

.alertBox{
  background: #fff5f5;
  border-color: #f3d2d2;
}

#responseMessage .card,
#responseMessage .panel{
  background: var(--panel-contrast);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}

/* Labels & inputs */
label{
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
}

input[type="email"],
input[type="text"],
input[type="hidden"],
select{
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .7rem .85rem;
  background: #fff;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
  margin-top: .35rem;
}

input:focus, select:focus{
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(187,38,73,.14);
}

/* Buttons */
.primaryBtn,
#checkDelegationButton,
#submitDelegates,
#deleteSelected{
  appearance: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: .7rem 1.1rem;
  background: linear-gradient(180deg, var(--siu-maroon) 0%, var(--siu-maroon-dark) 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .05s ease, filter .15s ease, opacity .15s ease;
}

.primaryBtn:hover,
#checkDelegationButton:hover,
#submitDelegates:hover,
#deleteSelected:hover{
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.primaryBtn:disabled,
#submitDelegates:disabled{
  opacity: .6;
  cursor: not-allowed;
}

.secondaryBtn{
  border-radius: var(--radius-sm);
  padding: .7rem 1.1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.secondaryBtn:hover{ background: #fafafa; }

/* Radio row */
p > label input[type="radio"]{
  transform: translateY(1px);
  margin-right: .4rem;
}

/* Links */
a{
  color: var(--siu-maroon);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
a:hover{
  border-bottom-color: var(--siu-maroon-30);
}

/* Popup overlay: bright, scrollable content card over soft backdrop */
.popup-overlay{
  position: fixed; inset: 0;
  background: rgba(255,255,255,0.86);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(3px);
}

.popup-overlay.show{ display: flex; }

.popup-content{
  background: #ffffffee;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: min(760px, 92vw);
  max-height: min(80vh, 900px);
  padding: clamp(16px, 2.4vw, 28px);
  box-shadow: var(--shadow);
  text-align: left;
  position: relative;

  /* scrollable body */
  overflow: auto;
}

/* close X */
.close-popup{
  position: absolute;
  right: 12px; top: 8px;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

/* Add-Delegate section header */
#addDelegateSection > h3{
  font-family: "Merriweather", serif;
  font-weight: 700;
  color: var(--siu-maroon);
  margin-top: 0;
}

/* Delegate row */
.delegateEntry{
  position: relative;
  background: var(--panel-contrast);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}

.removeDelegateLink{
  position: absolute;
  top: -10px; left: -10px;
  color: #b42318;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

/* Messages */
.message p{ margin: .4rem 0; }
#processingMessage p{ font-weight: 600; }

/* Session overlay tweaks (if you want it to match) */
#sessionOverlay.show{
  display: flex;
}
#sessionOverlay .timeout-box{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Small helpers */
.container-narrow{
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}











.siu-logo-link {
  display: inline-block;
  vertical-align: middle;
  margin-bottom: var(--space-2);
}

.siu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #6C0633; /* SIU maroon */
  padding: 10px 20px;
}

.siu-logo-img { height: 60px; width: auto; display: block; }

.siu-logo-fallback {
  height: 60px;
  width: 160px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #6f263d;
  font-family: "Merriweather", serif;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
}

.portal-title {
  font-family: "Merriweather", serif;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 0 12px;
}

/* Header bar */
.siu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  background-color: #6f263d; /* SIU maroon */
  padding: 10px 20px;
  min-height: 70px;
  box-sizing: border-box;
  position: relative;
  z-index: 100;
}

/* Make absolutely sure nothing hides the image */
.siu-header img.siu-logo-img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-height: 60px;
  height: 60px;
  width: auto;
}

/* Visible fallback if the image fails */
.siu-logo-fallback {
  height: 60px;
  width: 220px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #6C0633;
  font-family: "Merriweather", serif;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
}

/* Title */
.portal-title {
  font-family: "Merriweather", serif;
  font-size: 1.35rem;
  color: #fff;
  margin: 0;
}

.siu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  background-color: #6C0633;
  padding: 10px 20px;
  min-height: 70px;
  box-sizing: border-box;
  position: relative;
  z-index: 100;
}

.siu-header img.siu-logo-img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-height: 60px;
  height: 60px;
  width: auto;
}

.siu-logo-fallback {
  height: 60px;
  width: 220px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #6C0633;
  font-family: "Merriweather", serif;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
}

.portal-title {
  font-family: "Merriweather", serif;
  font-size: 1.35rem;
  color: #fff;
  margin: 0;
}

/* SIU brand colors (approx) */
:root {
  --siu-maroon: #6C0633;
  --siu-gold:   #c7a97b;
  --siu-white:  #ffffff;
}

/* Header container */
.site-header {
  background: var(--siu-maroon);
  color: var(--siu-white);
  border-bottom: 4px solid var(--siu-gold);
}

/* Inner layout */
.site-header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Ensure the logo is actually visible and sized */
.siu-logo img {
  display: block;       /* avoid inline-image whitespace baseline issues */
  max-width: 100%;
  height: auto;
  /* fallbacks if other CSS elsewhere tries to hide images */
  opacity: 1 !important;
  visibility: visible !important;
}

/* Optional nav space if you add links later */
.site-nav {
  margin-left: auto;
}

/* If your page content was tucked under a fixed header in the past,
   give the next block some top margin to ensure it’s not overlapped. */
main, .page-content, #actionFormContainer {
  margin-top: 12px;
}

/* Ensure the header layout stays flexible */
.site-header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: flex-start; /* force logo to left */
}

/* Force logo width to 700px and make it scale nicely */
.siu-logo img {
  display: block;
  width: 700px;      /* fixed width */
  max-width: 100%;   /* keep it responsive if screen < 700px */
  height: auto;
  position: relative; /* allows further relative positioning if needed */
}

/* Hide by default */
#outcomeMessage,
#processingMessage,
#responseMessage {
  display: none;
  margin-top: 1rem;
  font-size: 1rem;
}

/* Optional: style them separately */
#outcomeMessage { font-weight: bold; }
#processingMessage { color: gray; }
#responseMessage { color: #333; }

.dim-perms {
  color: #6b7280;      /* neutral gray */
  opacity: 0.85;       /* slightly faded */
  font-weight: 500;    /* not too light; still readable */
}

.site-header {
  display: flex;
  align-items: center;
  gap: 20px; /* space between logo and title */
  padding: 10px 20px;
}

.logo-container {
  flex-shrink: 0; /* prevents logo from shrinking */
}

.siu-logo {
  width: 700px;   /* scale logo width */
  max-width: 100%; /* keep responsive */
  height: auto;
  display: block;
}

.portal-title {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #6C0633; /* SIU maroon */
  margin: 0;
}

.moduleHero.reimageHero {
  background: linear-gradient(135deg, #6C0633 0%, #6C0633 100%);
  color: white;
  padding: 28px 30px;
  border-radius: 12px 12px 0 0;
  margin-bottom: 0;
}

.moduleHero.reimageHero h2 {
  margin: 0 0 12px 0;
  font-size: 2rem;
  font-weight: 600;
}

.moduleHero.reimageHero p {
  margin: 0;
  line-height: 1.6;
}

.moduleCard {
  background: #fff;
  padding: 24px 30px 30px 30px;
  border: 1px solid #e2e2e2;
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

.formGroup {
  margin-bottom: 22px;
}

.formGroup label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.formGroup input {
  width: 100%;
  max-width: 720px;
  padding: 12px 14px;
  border: 1px solid #d5d9df;
  border-radius: 8px;
  font-size: 1rem;
}

#submitReimageRequest,
#openReimageModule {
  background: #6C0633;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
}

#submitReimageRequest:hover,
#openReimageModule:hover {
  background: #5d002e;
}

.header {
  position: relative;
}

.toolbox-banner {
  display: inline-block;
  background: #6C0633; /* match the maroon bar */
  color: #ffffff;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 1px;
  padding: 6px 18px 8px 18px;
  margin-top: -6px;
  margin-left: 0px;
  border-radius: 0;
  line-height: 1.1;
  width: fit-content;
}

.toolbox-banner {
  position: relative;
  display: inline-block;
  background: #6C0633;
  color: #fff;
  font-weight: 700;
  font-size: 26px;
  padding: 8px 24px 8px 20px;
  margin-left: 0px;
  border-bottom: 4px solid #3d3d3d; /* SIU gold */
  letter-spacing: 1px;
 }

.toolbox-banner::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 0;
  border-top: 22px solid #6C0633;
  border-bottom: 22px solid #6C0633;
  border-right: 16px solid transparent;
}

.logout-ribbon {
  position: absolute;
  top: 14px;
  right: 12px;
  background: #6C0633;
  color: #fff;
  font-weight: 600;
  padding: 8px 18px;
  display: inline-block;
}

.logout-ribbon a {
  color: #fff;
  text-decoration: none;
}

.logout-ribbon::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-right: 18px solid #6C0633;
}

.logout-ribbon:hover {
  background: #6C0633;
}

.logout-ribbon:hover::before {
  border-right-color: #6C0633;
}

.toolbox-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LEFT ribbon */
.toolbox-ribbon {
  position: relative;
  background: #6C0633;
  color: #fff;
  font-weight: 700;
  font-size: 24px;
  padding: 8px 22px 8px 16px;
  border-bottom: 3px solid #6C0633;
}

.toolbox-ribbon::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 0;
  border-top: 33px solid #6C0633;
  border-bottom: 22px solid #6C0633;
  border-right: 20px solid transparent;
}

.display-name-suggestion-btn {
  margin-left: 6px;
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.display-name-suggestion-btn:hover {
  background: #e2e8f0;
}
