.app-container { max-width: 860px; }

body { min-height: 100vh; }

/* ---------- texts ---------- */
.text-card pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  font-size: .9rem;
  max-height: 11rem;
  overflow: hidden;
  position: relative;
}
.text-card.expanded pre { max-height: none; }
.text-card.overflowing:not(.expanded) pre::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3rem;
  background: linear-gradient(transparent, var(--bs-body-bg));
}
.text-card .card-footer { background: transparent; }

/* ---------- files ---------- */
.dropzone {
  border: 2px dashed var(--bs-border-color);
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.dropzone:hover {
  border-color: var(--bs-primary);
  background-color: var(--bs-primary-bg-subtle);
}

.file-thumb {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-secondary-bg);
  overflow: hidden;
  font-size: 1.5rem;
  color: var(--bs-secondary-color);
}
.file-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.file-name { word-break: break-all; }
.min-w-0 { min-width: 0; }

.upload-item .progress { height: 6px; }

/* ---------- general ---------- */
.empty-state {
  text-align: center;
  color: var(--bs-secondary-color);
  padding: 3rem 0;
}
.empty-state .bi { font-size: 2.5rem; }

.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--bs-primary);
  background: rgba(var(--bs-body-bg-rgb), .85);
  border: 4px dashed var(--bs-primary);
  pointer-events: none;
}
.drop-overlay .bi { font-size: 4rem; }

.btn-icon { padding: .25rem .5rem; }
.item-new { animation: flash 1.2s ease-out; }
@keyframes flash {
  from { box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .35); }
  to   { box-shadow: none; }
}

/* ---------- login ---------- */
.nav-user { max-width: 14rem; }
.auth-card { max-width: 32rem; }
