/* styles_extra.css (remove width constraints that cause misalignment) */

:root {
  --wf-space-1: calc(var(--pico-spacing, 1rem) * 0.5);
  --wf-space-2: calc(var(--pico-spacing, 1rem) * 1);
  --wf-space-3: calc(var(--pico-spacing, 1rem) * 1.5);
  --wf-space-4: calc(var(--pico-spacing, 1rem) * 2);
  --wf-space-5: calc(var(--pico-spacing, 1rem) * 3);
}

.drop{
  border: 2px dashed #bbb;
  border-radius: 5px;
  padding: 25px;
  margin-bottom: 20px;
  max-width: 400px;
  font: 20pt bold,"Vollkorn";
  color: #bbb;
  text-align: center;
}

.sidebar-selected {
  background: black;
  color: white;
  padding-left: 5px;
  margin-left: -5px;
}

#loadingThing { font-size: 50px; }

.sidebar-selected a { color: white; }

#image_file { display: none; }
#image_file_2 { display: none; }

.image-crop-modal {
  display: flex;
  position: fixed;
  overflow: hidden;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.custom-data-modal {
  display: flex;
  position: fixed;
  overflow: hidden;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.image-crop-background {
  background-color: white;
  padding: 0;
  border-radius: 8px;
  width: min(64rem, 92vw);
  max-height: 80vh;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
}

.image-crop-modal-content {
  padding: clamp(1rem, 2vw, 2.25rem);
  overflow-y: auto;
  flex: 1;
}

.image-crop-modal-footer {
  width: 100%;
  box-sizing: border-box;
  font-size: 23px;
  display: flex;
}

.image-crop-container { max-height: 500px; }

.image-crop-container img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.cropButtonLeft {
  width: 100%;
  background-color: #f0f0f0;
  border-right: 1px solid #ccc;
}

.cropButtonRight {
  width: 100%;
  background-color: #007bff;
  color: white;
}

.selectButton {
  flex: 1;
  text-align: center;
  padding: var(--wf-space-2) 0;
  box-sizing: border-box;
  cursor: pointer;
}

.selectButton:hover { opacity: 0.8; }

html.modal-open,
body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.closeButton {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 50px;
  cursor: pointer;
  color: #000;
  line-height: 24px;
  padding: 0;
}

.cardButtons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.dollar-input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  font-size: 24px;
  margin-bottom: var(--pico-spacing, 1rem);
}

.dollar-input-wrapper::before {
  content: '$';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #333;
}

.dollar-input-wrapper input {
  padding-left: 26px;
  margin-bottom: 0;
}

.tabs {
  text-decoration: none;
  color: #373c44;
}

.tabs label { color: #373c44; }

/* IMPORTANT:
   Removed the old global max-width rule:
   input, select, button, hr { max-width: 1010px; }
   That rule makes some elements “shorter” than others and breaks alignment.
*/

.upload-slot { position: relative; min-height: 3rem; }
.upload-slot[aria-busy="true"]::after{
  content:"";
  position:absolute; inset:0;
  display:grid; place-items:center;
  background: rgba(255,255,255,.6);
}
.upload-slot[aria-busy="true"]::before{
  content:"";
  position:absolute;
  top:50%; left:50%;
  width:1.25rem; height:1.25rem;
  margin:-0.625rem 0 0 -0.625rem;
  border:2px solid rgba(0,0,0,.2);
  border-top-color: rgba(0,0,0,.7);
  border-radius:50%;
  animation: spin .8s linear infinite;
  z-index: 2;
}
@keyframes spin { to { transform: rotate(360deg); } }


.customDataField select {
  background-color: #fbfcfc;
}
