.upload-page {
    padding: 34px 0 72px;
    background: linear-gradient(180deg, #fffdf9 0%, #f7f3eb 100%);
}

.upload-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 26px;
}

.upload-page__main {
    min-width: 0;
}

.upload-heading {
    margin-bottom: 22px;
}

.upload-heading h1,
.workbench-preview h2,
.upload-info h2 {
    margin: 0;
    color: var(--navy);
    line-height: 1.15;
}

.upload-heading h1 {
    font-size: clamp(1.85rem, 3vw, 2.65rem);
}

.upload-heading > p:last-child {
    max-width: 800px;
    margin: 8px 0 0;
    color: var(--muted);
}

.upload-card,
.workbench-preview,
.upload-info {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 14px 38px rgba(31, 43, 54, 0.08);
}

.upload-card {
    padding: 20px;
}

.feltoltes-muveletek {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 14px 38px rgba(31, 43, 54, 0.08);
}

.feltoltes-muveletek__torles {
    color: #fff;
    background: #bd2738;
    border-color: #bd2738;
}

.feltoltes-muveletek__torles:hover,
.feltoltes-muveletek__torles:focus-visible {
    background: #951c2b;
    border-color: #951c2b;
}

.feltoltes-muveletek__tovabb {
    color: #fff;
    background: var(--green);
    border-color: var(--green);
    text-decoration: none;
}

.upload-dropzone {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
    background: #f5f9ff;
    border: 2px dashed #72a8dc;
    border-radius: 16px;
    cursor: pointer;
    outline: none;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.upload-dropzone:hover,
.upload-dropzone:focus-visible,
.upload-dropzone.is-dragover {
    background: #eaf4ff;
    border-color: #176cb7;
    box-shadow: inset 0 0 0 2px rgba(23, 108, 183, 0.08);
}

.upload-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.upload-dropzone__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    text-align: center;
}

.upload-dropzone__intro strong {
    color: var(--navy);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.upload-dropzone__icon {
    width: 70px;
    height: 58px;
    color: #287bc0;
}

.upload-dropzone__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.upload-browse-button {
    min-height: 40px;
    margin-top: 5px;
    padding: 8px 18px;
    background: #176cb7;
    border-color: #176cb7;
}

.upload-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 14px;
    width: 100%;
    margin-top: 22px;
}

.upload-previews:empty {
    display: none;
}

.upload-preview {
    position: relative;
    min-width: 0;
    padding: 7px;
    background: #fff;
    border: 1px solid #d8e1ea;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(26, 50, 75, 0.09);
}

.upload-preview img {
    width: 100%;
    height: 108px;
    object-fit: cover;
    background: #edf1f4;
    border-radius: 8px;
}

.upload-preview__name {
    display: block;
    overflow: hidden;
    margin: 7px 3px 1px;
    color: #3e4c58;
    font-size: 0.78rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-preview__remove {
    position: absolute;
    z-index: 2;
    top: -9px;
    right: -9px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #fff;
    background: #c52b3c;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(126, 17, 33, 0.3);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.upload-preview__remove:hover,
.upload-preview__remove:focus-visible {
    background: #981a29;
    transform: scale(1.06);
}

.upload-card__footer,
.upload-progress__header,
.workbench-preview__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.upload-card__footer {
    padding-top: 17px;
}

.upload-selection-count {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.button--upload {
    color: #fff;
    background: var(--green);
    border-color: var(--green);
}

.button--upload:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.upload-progress {
    display: none;
    margin-top: 18px;
    padding: 14px 16px;
    background: #f1f7f3;
    border: 1px solid #c9dfd0;
    border-radius: 12px;
}

.upload-progress.is-visible {
    display: block;
}

.upload-progress__header {
    margin-bottom: 8px;
    color: #285440;
    font-size: 0.9rem;
}

.upload-progress__track {
    height: 10px;
    overflow: hidden;
    background: #dce9e0;
    border-radius: 999px;
}

.upload-progress__track span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #2b7d58, #63aa7c);
    border-radius: inherit;
    transition: width 180ms linear;
}

.workbench-preview {
    margin-top: 28px;
    padding: 24px;
}

.workbench-preview.is-todo {
    min-height: 150px;
    display: grid;
    place-items: center;
    color: var(--navy);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 800;
    text-align: center;
}

.workbench-preview h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.workbench-preview__count {
    flex: 0 0 auto;
    padding: 5px 11px;
    color: var(--navy);
    background: #e9f1fb;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.workbench-preview__placeholder {
    display: grid;
    justify-items: center;
    min-height: 190px;
    margin-top: 18px;
    padding: 36px 20px;
    color: var(--muted);
    background: #faf9f6;
    border: 1px dashed #cfc7ba;
    border-radius: 14px;
    text-align: center;
}

.workbench-preview__placeholder span {
    color: #95a2ac;
    font-size: 2.2rem;
}

.workbench-preview__placeholder strong {
    margin-top: 6px;
    color: var(--ink);
}

.workbench-preview__placeholder p {
    max-width: 570px;
    margin: 4px 0 0;
}

.upload-info {
    position: sticky;
    top: 94px;
    padding: 24px;
}

.upload-info h2 {
    font-size: 1.2rem;
}

.upload-info ul {
    display: grid;
    gap: 12px;
    margin: 18px 0;
    padding-left: 20px;
    color: #475762;
}

.upload-info li::marker {
    color: var(--gold);
}

.upload-info > p {
    margin: 0;
    padding-top: 16px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
}

@media (max-width: 980px) {
    .upload-page__layout {
        grid-template-columns: 1fr;
    }

    .upload-info {
        position: static;
    }
}

@media (max-width: 620px) {
    .upload-page {
        padding: 24px 0 52px;
    }

    .upload-card,
    .workbench-preview,
    .upload-info {
        padding: 16px;
        border-radius: 16px;
    }

    .upload-dropzone {
        min-height: 280px;
        padding: 22px 14px;
    }

    .upload-previews {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .upload-preview img {
        height: 96px;
    }

    .upload-card__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .button--upload {
        width: 100%;
    }

    .feltoltes-muveletek {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
        border-radius: 16px;
    }

    .feltoltes-muveletek .button {
        width: 100%;
        text-align: center;
    }

    .workbench-preview__heading {
        align-items: flex-start;
    }
}
