body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background: #f0fcff;
  background: linear-gradient(356deg,rgba(240, 252, 255, 1) 0%, rgba(247, 255, 242, 1) 40%, rgba(255, 248, 237, 1) 100%);
}

/* Main app area layout */
#appArea {
  display: grid;
  grid-template-rows: 4fr 1fr;
  height: 100vh;
  overflow: hidden;
}

/* Top section: checklist + proof link */
#topArea {
  display: grid;
  width: 100%;
  grid-template-columns: 20% 1fr; /* left checklist, right proof link */
  height: 100%;                   /* fill available top space */
  min-height: 0;
}

#leftSide {
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    height: calc(99vh - 176.5px);
}

#searchContainer {
    width: 100%;
    flex: 0 0 auto;
}
/* Checklist panel - left */
#checklistWrapper {
    flex: 1 1 auto;
  position: relative;
  /* position: relative;
  width: 100%;
  height: 100%; */
  box-sizing: border-box;
  overflow: hidden;           /* hide fade overlays outside bounds */
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#checklistScrollBounds {
  position: absolute;
  top: 60px;
  bottom: 60px;
  left: 0;
  right: 10px;
  overflow: hidden;
}

#checklistContainer {
  position: absolute; /* NEW: Absolutely position it */
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 5px;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: #888 #f0f0f0;
  scroll-padding-top: 20px;
  scroll-padding-bottom: 20px;
  z-index: 1;
}

#checklistContainer::before {
  content: '';
  height: 10px;
  flex-shrink: 0;
  width: 100%;
  order: -9999; /* Ensure it's first */
}

#checklistContainer::after {
  content: '';
  height: 20px;
  flex-shrink: 0;
  width: 100%;
  order: 9999; /* Ensure it's last */
}

/* Webkit scrollbar styling (Chrome, Edge, Safari) */
#checklistContainer::-webkit-scrollbar {
  width: 10px;
}

#checklistContainer::-webkit-scrollbar-track {
  background: #0f0ff1;
}

#checklistContainer::-webkit-scrollbar-thumb {
  background-color: #fd2222;
  border-radius: 5px;
  border: 2px solid #f0f0f0;
}
.fadeTop, .fadeBottom {
  width: calc(20vw - 10px);
  position: absolute;
  left: 0;
  right: 10px;
  height: 20px;
  pointer-events: none;
  z-index: 2;
}
.fadeTop {
  top: 10;
  background: linear-gradient(to bottom, rgb(252, 250, 239) 0%, rgba(252, 250, 239, 0.996) 12.5%, rgba(252, 250, 239, 0.984) 25%, rgba(252, 250, 239, 0.945) 37.5%, rgba(252, 250, 239, 0.875) 50%, rgba(252, 250, 239, 0.757) 62.5%, rgba(252, 250, 239, 0.576) 75%, rgba(252, 250, 239, 0.33) 87.5%, rgba(252, 250, 239, 0) 100%);
}

.fadeBottom {
  bottom: 0;
  background: linear-gradient(to top, rgb(246, 255, 245) 0%, rgba(246, 255, 245, 0.996) 12.5%, rgba(246, 255, 245, 0.984) 25%, rgba(246, 255, 245, 0.945) 37.5%, rgba(246, 255, 245, 0.875) 50%, rgba(246, 255, 245, 0.757) 62.5%, rgba(246, 255, 245, 0.576) 75%, rgba(246, 255, 245, 0.33) 87.5%, rgba(246, 255, 245, 0) 100%);
}

.checklistItem {
    width: calc(20vw - 10px);;
}
.checklistItem:hover {
  background-color: #c0eaf8;

}

/* Proof panel - right */
#proofPanel {
    /* position: relative;
    display: flex;
  flex-direction: column;
  justify-self: center;
  align-self: center;
  justify-content: center;
  align-items: center;
  text-align: center; */
  display: block;
  padding: 20px;
}

#proofInner {
    width: 60vw;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
/* Bottom section: details */
#bottomArea {
    position: relative;
    width: 100%;
    bottom: 0;
    min-height: 0;
}
#bottomArea::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 30%;
  border-top: 1px solid #ccc;
  transform: translateX(-50%);
}

#detailsPanel {
  height: 150px; /* fixed height, adjust as needed */
  width: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-self: center;
  align-items: center;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
}

/* Proof link styling */
#proofLink {
  font-size: 20px;
  margin-bottom: 20px;
}

/* Counters styling */
#counters {
  font-weight: bold;
  margin-bottom: 10px;
}


#downloadProgress {
  padding: 5px 10px;
  font-size: 16px;
}

/* Hide file/input initially via JS toggling */
#inputArea, #appArea {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#inputArea {
    justify-content: center;
}


textarea {
  width: 400px;
  height: 100px;
  margin-top: 10px;
}

#loadData {
    margin: 10px;
}

#sort_k {
    margin-bottom: 2px;
}

#buttonPanel {
  display: flex;
  margin-left: 5px;
  z-index: 20;
}

#acceptButton {
  background-color: palegreen;
  height: 20%;
  margin-bottom: 5px;
  z-index: 20;
}

#declineButton {
  background-color: lightcoral;
  height: 20%;
  margin-bottom: 5px;
  z-index: 20;
}

#skipButton {
  height: 20%;
  margin-bottom: 5px;
  z-index: 20;
}

#backButton {
  height: 20%;
  margin-bottom: 5px;
  z-index: 20;
}

#changeButton {
  height: 20%;
  margin-bottom: 5px;
  margin-left: auto;
  margin-right: 5px;
  z-index: 20;
}

.twitter-video-only {
  max-width: 900px;
  width: 100%;
  margin: auto;
  overflow: hidden;
}

#twitter-widget-0 iframe {
  width: 100% !important;
  min-height: 500px;
  border-radius: 12px;
  clip-path: inset(100px 0 60px 0);
  margin-bottom: 0 !important;
  overflow: hidden;
}

.twitter-tweet-rendered {
    width: 550px !important;

}

#settingsMenu {
    background: white;
    width: 50vh;
    height: 50vh;
    position: absolute;
    padding: 15px;
    z-index: 10;
}

#closeSettings {
    position: absolute;
    bottom: 5px;
    right: 5px;
}

.conflict {
    color: red;
}

#fileInput {
  margin-left: 10px;
}