html,
body {
    height: 100%;
}

.form-signin {
    max-width: 630px;
    padding: 1rem;
}

.row {
  margin: 18px 0;
}

.input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.dropbox {
  border: 2px dashed #999;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  background: #fafafa;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
  cursor: pointer;
}

.dropbox.dragover {
  border-color: #2b7cff;
  background: #f0f6ff;
}

.hint {
  color: #555;
  font-size: 14px;
  margin-top: 8px;
}

.btnrow {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  background: #2b7cff;
  color: white;
  font-weight: 600;
}

.btn.secondary {
  background: #e9eef7;
  color: #1a1a1a;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.filelist {
  margin: 10px 0 0;
  padding-left: 18px;
}

.error {
  color: #b00020;
  font-size: 14px;
  margin-top: 8px;
}


/* Watermark preview */
.wm-preview .wm-sample {
  border: 1px solid #e2e6ef;
  border-radius: 12px;
  overflow: hidden;
}

.wm-preview .wm-bg {
  position: relative;
  height: 120px;
  background: linear-gradient(135deg, #eef4ff, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wm-preview img {
  max-width: 85%;
  max-height: 75%;
  opacity: 0.9;
}

/* Results */
.result-card {
  border: 1px solid #e2e6ef;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fff;
}

.result-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.result-meta {
  color: #555;
  font-size: 14px;
}

.result-error {
  color: #b00020;
  font-size: 14px;
}

.result-warn {
  color: #8a4b00;
  font-size: 14px;
  margin: 6px 0 10px;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.thumb {
  display: block;
  text-decoration: none;
  color: inherit;
}

.thumb img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  background: #f1f3f6;
  border: 1px solid #e6e9f2;
}

.thumb-cap {
  font-size: 12px;
  color: #555;
  margin-top: 6px;
  text-align: center;
}
