/* ==========================================================================
   File drop box (createFileDropZone in static/js/siteUI.js)
   --------------------------------------------------------------------------
   Loaded by base.html on every page. The whole box can be clicked; the
   browser's own file control is hidden (the input has the hidden attribute).
   Plan: PLANS/RENT_ROLL_IMPORT_PLAN.md, Part 4.
   ========================================================================== */

.site-file-drop {
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 36px 16px;
    border: 2px dashed #b8c7da;
    border-radius: 12px;
    background: #fafcff;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.site-file-drop:hover,
.site-file-drop--active {
    border-color: #087f73;
    background: #f1faf8;
}

.site-file-drop--busy {
    cursor: progress;
    opacity: .7;
}

.site-file-drop__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: #e3f4f1;
    color: #087f73;
}

.site-file-drop__icon i {
    font-size: 1.6rem;
    line-height: 1;
}

.site-file-drop__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #172033;
}

.site-file-drop__or {
    margin: 0;
    color: #596579;
    font-size: .85rem;
}

/* The default look of the Choose a file button; a page can pass its own button classes. */
.site-file-drop__button:not([class*="button--"]) {
    padding: 10px 20px;
    border: 0;
    border-radius: 8px;
    background: #087f73;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.site-file-drop__button:not([class*="button--"]):hover,
.site-file-drop__button:not([class*="button--"]):focus-visible {
    background: #06665d;
}

.site-file-drop__button:disabled {
    cursor: progress;
    opacity: .7;
}

.site-file-drop__help {
    margin: 4px 0 0;
    color: #596579;
    font-size: .85rem;
}

.site-file-drop__error {
    margin: 4px 0 0;
    color: #b91c1c;
    font-size: .9rem;
    font-weight: 600;
}

.site-file-drop__error[hidden] {
    display: none;
}

@media (max-width: 520px) {
    .site-file-drop {
        padding: 28px 12px;
    }
}

/* A small box for tight spaces, such as one cell of the unit mix grid's Floor plan row
   (className "site-file-drop--compact"; PLANS/PRESALES_PLAN.md 18.14). */
.site-file-drop--compact {
    gap: 4px;
    padding: 10px 8px;
    border-width: 1.5px;
    border-radius: 10px;
    min-width: 8.5rem;
}

.site-file-drop--compact .site-file-drop__icon {
    width: 28px;
    height: 28px;
    margin-bottom: 0;
}

.site-file-drop--compact .site-file-drop__icon i {
    font-size: 1rem;
}

.site-file-drop--compact .site-file-drop__title {
    font-size: .8rem;
    line-height: 1.25;
}

.site-file-drop--compact .site-file-drop__or {
    display: none;
}

.site-file-drop--compact .site-file-drop__button:not([class*="button--"]) {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: .8rem;
}

.site-file-drop--compact .site-file-drop__error {
    font-size: .75rem;
    line-height: 1.3;
}

@media (max-width: 520px) {
    .site-file-drop.site-file-drop--compact {
        padding: 10px 8px;
    }
}

/* Dark mode */
[data-theme="dark"] .site-file-drop {
    border-color: rgba(148, 163, 184, 0.45);
    background: #0f1b2d;
}

[data-theme="dark"] .site-file-drop:hover,
[data-theme="dark"] .site-file-drop--active {
    border-color: #2dd4bf;
    background: rgba(45, 212, 191, 0.08);
}

[data-theme="dark"] .site-file-drop__icon {
    background: rgba(45, 212, 191, 0.14);
    color: #5eead4;
}

[data-theme="dark"] .site-file-drop__title {
    color: #e2e8f0;
}

[data-theme="dark"] .site-file-drop__or,
[data-theme="dark"] .site-file-drop__help {
    color: #94a3b8;
}

[data-theme="dark"] .site-file-drop__error {
    color: #fca5a5;
}
