:root {
    --brand-blue: #0f3b63;
    --brand-blue-2: #104a7a;
    --accent-green: #57b846;
    --accent-orange: #cc6b2a;
    --bg: #f6f7fb;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    font-family: "Lato", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

select {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff
}

.site-header {
    /* If the webp fails to load, the browser skips it and just displays the gradient */
    background:
        linear-gradient(rgba(0, 0, 0, 0.4),
            rgba(0, 0, 0, 0.6)),
        url('parcels-banner.webp') center/cover no-repeat,
        linear-gradient(135deg,
            var(--brand-blue) 0%,
            var(--brand-blue-2) 100%);

    color: var(--bg);
    padding: 22px 28px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;

    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* Icon styling */
.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    /* background: var(--brand-blue); */
    color: var(--bg);
    padding: 10px;
    border-radius: 8px;
    width: 48px;
    height: 48px;
}

.brand-icon i {
    font-size: 2.5em;
}

/* Title styling */
.brand-title {
    font-size: 1.45rem;
    font-weight: 600;
}

.brand-sub {
    font-size: 0.95rem;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

#logoutBtn {
    display: none;

}

.logout-btn:hover {
    background: var(--brand-blue);
    color: #fff;
    border-color: var(--brand-blue);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    /* border: solid 1px var(--bg); */
}

.container {
    max-width: 1000px;
    margin: 24px auto;
    padding: 0 16px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
    padding: 16px;
    margin-bottom: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 0.65em 14px;
    font-size: 0.8em;
    cursor: pointer;

}

.btn-blue {
    border: 1px solid var(--brand-blue);
    background: transparent;
    color: var(--brand-blue);
    transition: .15s ease-in-out;
}

.btn-blue:hover {
    background: var(--brand-blue);
    color: var(--bg);
}

.btn.green:hover {
    background-color: color-mix(in srgb, var(--accent-green), #000 40%);
    color: #fff;
}

.accordion-button {
    font-weight: bold;
}

.remove.accordion-button:not(.collapsed)::after,
.remove.accordion-button::after {
    background-image: unset !important;
}

.accordion-button.collapsed.fake-open {
    color: var(--bs-accordion-active-color);
    background-color: var(--bs-accordion-active-bg);
    box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color);
}

#fileListingHeader .accordion-button:not(.collapsed) {
    background-color: color-mix(in srgb, var(--accent-orange), transparent 60%);
    color: var(--accent-orange);
    border-color: transparent;
}

.input-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center
}

.info-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
}

#countyLabel {
    font-size: 1.25em;
    padding-bottom: 0.5em;
}

.pill {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    letter-spacing: .6px;
    margin-left: 1.25em;
    ;
}

.pill.admin {
    background: var(--accent-green);
    color: #fff;
}

.pill.user {
    background: #cbd5e1;
    color: #1f2937;
}

.toast-glossy {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;

  /* Deeper, darker glass */
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);

  /* darker gradient blend */
  background-image:
    radial-gradient(circle at top left, rgba(255,255,255,0.25), rgba(255,255,255,0.05)),
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02)),
    rgba(0,0,0,0.25),
    var(--bs-gradient);

  /* darker edges + inner glow */
  box-shadow:
    0 0 20px rgba(0,0,0,0.55),
    inset 0 0 15px rgba(0,0,0,0.45);
}

/* slightly dimmed, more subtle sheen */
.toast-glossy::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -50%;
  width: 200%;
  height: 70%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.38) 0%,
    rgba(255,255,255,0.14) 40%,
    rgba(255,255,255,0.03) 100%
  );
  transform: rotate(8deg);
  opacity: 0.5;
  pointer-events: none;
}

/* darker, more metallic reflective streak */
.toast-glossy::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    115deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  animation: glossy-sweep 1.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glossy-sweep {
  0% { left: -150%; }
  55% { left: 150%; }
  100% { left: 150%; }
}

/* progress bar stays the same */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: rgba(255,255,255,0.8);
  transition: width var(--toast-delay, 3000ms) linear;
}

.muted {
    color: var(--muted)
}

.fileListingContainer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 3em;
    margin-bottom: 10px
}

#fileList {
    margin-top: 6px
}

.filelist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 6px 14px 6px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--accent-orange), transparent 90%);
    border-radius: 6px 6px 0 0;
    margin-bottom: 12px;
}

.filelist-header .left-title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

.filelist-header .right-tools {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filelist-columns {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    padding: 10px 0;
    display: grid;
    grid-template-columns: 1fr 110px 160px auto;
    gap: 12px;
    border-bottom: 2px solid var(--border);
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    color: var(--text);
}

.accordion-body {
    position: relative;
    overflow-y: auto;
    max-height: 60vh;
}

.file-row {
    display: grid;
    grid-template-columns: 1fr 110px 160px auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-family: "Poppins", "Lato", sans-serif;
    font-size: 0.9em;
    color: var(--muted)
}

.input-row input[type="file"] {
    width: auto;
    flex: 1 1 auto;
}

.form-control:focus {
    outline: none !important;
    box-shadow: none !important;
}

.small-modal-header {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    min-height: unset !important;
}

.small-modal-header .modal-title {
    font-size: 1.1rem;
    /* Optional: shrink text */
    margin: 0;
    line-height: 1.2;
}

/* Center the dates in both header + rows */
.filelist-columns div:nth-child(2),
.file-row div:nth-child(2),
.filelist-columns div:nth-child(3),
.file-row div:nth-child(3) {
    text-align: center;
}

.file-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end
}

.site-footer {
    color: var(--muted);
    font-size: 13px;
    padding: 20px;
    text-align: center
}

.highlight-text {
    background-color: #c3c3c3;
}

.code-large {
    font-size: 1.05em;
}

@media (max-width: 720px) {
    .file-row {
        grid-template-columns: 1fr;
    }

    .file-actions {
        justify-content: flex-start
    }

    .brand-sub {
        width: 100%
    }

    .input-row {
        flex-direction: column;
        align-items: flex-start
    }
}