/* ec-dropzone.css */

:root {
  --ec-blue: #2563eb; /* update if your page uses a different primary blue */
}

.ec-dropzone {
  position: relative;
  width: 100%;
  border: 2px solid rgba(37, 99, 235, 0.35);
  border-radius: 12px;
  background: #ffffff;
  padding: 18px 18px;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ec-dropzone:hover {
  border-color: rgba(37, 99, 235, 0.55);
}

.ec-dropzone.is-dragover {
  border-color: var(--ec-blue);
  background: #eff6ff;
}

.ec-dropzone:focus-within {
  outline: 2px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.ec-dropzone__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ec-dropzone__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  text-align: center;
}

.ec-dropzone__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  /* match site button scale */
  padding: 0.8rem 1.25rem;     /* close to existing .btn */
  border-radius: 9999px;
  border: 2px solid var(--ec-blue);

  background: #ffffff;
  color: var(--ec-blue);

  font-weight: 700;
  font-size: 1rem;             /* aligns with get_started .btn */
  line-height: 1.2;

  cursor: pointer;

  /* remove “giant” look */
  box-shadow: none;
}

.ec-dropzone__clip {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.ec-dropzone__or {
  font-size: 1rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.2;
}

.ec-dropzone__filename {
  display: none; /* hidden until file selected */
  font-size: 0.95rem;
  color: #0f172a;
}

.ec-dropzone.has-file .ec-dropzone__filename {
  display: block;
}

/* visually hidden but accessible */
.ec-dropzone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Full-page drag overlay */
.ec-drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;              /* hidden by default */
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
}

.ec-drop-overlay.is-visible {
  display: flex;
}

.ec-drop-overlay__panel {
  width: min(560px, calc(100vw - 32px));
  border: 2px dashed rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 18px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.ec-drop-overlay__title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  color: #0f172a;
}

.ec-drop-overlay__subtitle {
  margin: 6px 0 0 0;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
}
