/* Override Bootstrap primary colour to match the MySharer logo blue */
:root {
  --bs-primary: #2860AF;
  --bs-primary-rgb: 40, 96, 175;
  --bs-btn-bg: #2860AF;
  --bs-btn-border-color: #2860AF;
  --bs-btn-hover-bg: #1f4e91;
  --bs-btn-hover-border-color: #1a4480;
  --bs-btn-active-bg: #1a4480;
  --bs-link-color: #2860AF;
  --bs-link-hover-color: #1f4e91;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #2860AF;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ── Drag-and-drop upload zone ───────────────────────────────────────────── */

.drop-zone {
    border: 2px dashed #ced4da;
    border-radius: 0.5rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    background-color: #f8f9fa;
    color: #adb5bd;
    user-select: none;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.drop-zone:hover,
.drop-zone:focus-visible {
    border-color: #0d6efd;
    background-color: #ebf2ff;
    color: #0d6efd;
    outline: none;
}

.drop-zone.drag-over {
    border-color: #0d6efd;
    background-color: #dbeafe;
    color: #0d6efd;
    transform: scale(1.01);
}

.drop-zone.has-file {
    border-color: #198754;
    background-color: #f0fdf4;
    color: #198754;
}

.drop-zone-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.drop-zone-text {
    font-weight: 600;
    font-size: 1rem;
}

.drop-zone-subtext {
    font-size: 0.85rem;
    opacity: 0.75;
}

.drop-zone-filename {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
    word-break: break-all;
    max-width: 100%;
}

/* ── File list ───────────────────────────────────────────────────────────── */

.file-list-item {
    transition: background-color 0.15s ease;
}

.file-list-item:hover {
    background-color: #f8f9fa;
}

.file-name {
    color: inherit;
}

.file-name:hover {
    color: #0d6efd;
}

/* ── File type icon & image thumbnail ───────────────────────────────────── */

/* Coloured rounded square that wraps the category SVG */
.file-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Small inline thumbnail shown for image files */
.file-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    display: block;
}