* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background: #fbfaff;
    min-height: 100vh;
    font-family: 'Inter';
    line-height: 130%;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 44.0rem;
    width: 90%;
    margin: auto;
}

.upload {
    background: #f3f0ff;
    border: 1px solid #c1b2fa;
    border-radius: .8rem;
    text-align: center;
    padding: 2.8rem 0 3.2rem;
    position: relative;
}

.upload input {
    all: unset;
    opacity: 0;
    inset: 0;
    position: absolute;
}

.upload i.ph {
    font-size: 4.8rem;
    color: #7c3aed;
}

.upload h3 {
    margin-top: 1.3rem;
    color: #7c3aed;
    font-size: 1.6rem;
}

.upload p {
    font-size: 1.3rem;
    color: #7f7b8794;
}

.upload.dragover {
    background: #ebe6ff;
}

.files {
    margin-top: .2rem;
    display: grid;
    gap: 1.2rem;
}

.box {
    padding: .8rem;
    background: #ffffff;
    box-shadow: 0 .4rem 1.6rem #eae2fd;
    border-radius: .8rem;
    display: flex;
    gap: 1.2rem;

    --icon-bg: #eee;
    --icon-color: #aaa;
    --progress: black;
    --text: #999;

    position: relative;
}

.box .icon {
    background: var(--icon-bg);
    border-radius: .4rem;
    padding: 1.6rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box .icon i {
    font-size: 1.9rem;
    color: var(--icon-color);
}

.box .info {
    flex: 1;
}

.info .name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #575361;
}

.info .size {
    color: #857e95;
    font-weight: 500;
    font-size: 1.0rem;
}

.bar {
    display: flex;
    align-items: center;
    gap: .8rem;
    line-height: 0;
    margin-top: .4rem;
}

progress {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
}

progress::-webkit-progress-bar {
    background: #e3e3ed;
}

progress::-webkit-progress-value {
    background: var(--progress-color);
}

.bar span {
    font-size: 12px;
    font-weight: 500;
    color: var(--progress-text);
}

/* action */
.action {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #794fed;
    cursor: pointer;
}

/* colors */
.uploading {
    --icon-bg: #e9e3f8;
    --icon-color: #ac96e4;
    --progress-color: linear-gradient(90deg,rgba(58, 97, 237, 0.52) 0%,#7c3aed 100%);
    --progress-text: #9892a6;
}

.done {
    --icon-bg: #daf2d9;
    --icon-color: #73b172;
    --progress-color: #73b172;
    --progress-text: #4e884d;
}

.error {
    --icon-bg: #f2d9d9;
    --icon-color: #e36363;
    --progress-color: white;
    --progress-text: #e36363;
}