/* styles.css */

/* Dropzone */
.dropzone{
  border: 2px dashed rgba(13,110,253,.35);
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
  background:
    radial-gradient(600px 160px at 20% 0%, rgba(13,110,253,.10), transparent 60%),
    radial-gradient(600px 160px at 80% 0%, rgba(111,66,193,.10), transparent 60%),
    rgba(13,110,253,.03);
  transition: transform .12s ease, border-color .15s ease, background .15s ease;
}

/* If your JS adds .dragover on drag events */
.dropzone.dragover{
  border-color: rgba(13,110,253,.75);
  transform: translateY(-1px);
  background:
    radial-gradient(600px 160px at 20% 0%, rgba(13,110,253,.16), transparent 60%),
    radial-gradient(600px 160px at 80% 0%, rgba(111,66,193,.14), transparent 60%),
    rgba(13,110,253,.05);
}

/* Document history as card grid */
.history-grid{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.history-grid > li{
  margin: 0;
}

/* Small helper for title truncation */
.truncate-1{
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Native dialog styling */
.modal-dialog{
  border: none;
  padding: 0;
  border-radius: 18px;
  max-width: 520px;
  width: min(92vw, 520px);
}

.modal-dialog::backdrop{
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}

.modal-card{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.modal-card-header,
.modal-card-body,
.modal-card-footer{
  padding: 14px 16px;
}

.modal-card-header{
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.modal-card-footer{
  border-top: 1px solid rgba(0,0,0,.08);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.corner-badge{
  position: absolute;
  top: .75rem;
  right: .75rem;
}
