
* {
    box-sizing: border-box;
}

:root {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #172033;
    background: #f4f6f8;
}

body {
    margin: 0;
    min-height: 100vh;
}

.container {
    width: min(100% - 32px, 1000px);
    margin: 0 auto;
    padding: 50px 0;
}

header {
    margin-bottom: 32px;
}

header h1 {
    margin: 0 0 8px;
    font-size: 36px;
    letter-spacing: -1px;
}

header p {
    margin: 0;
    color: #667085;
}

.upload-card,
.files-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 28px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.04);
}

.upload-card {
    margin-bottom: 24px;
}

h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.drop-zone {
    min-height: 230px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 30px;

    border: 2px dashed #cbd5e1;
    border-radius: 14px;

    text-align: center;

    cursor: pointer;

    transition:
        border-color 0.2s,
        background 0.2s,
        transform 0.2s;
}

.drop-zone:hover {
    border-color: #64748b;
    background: #f8fafc;
}

.drop-zone.dragging {
    border-color: #4f46e5;
    background: #eef2ff;

    transform: scale(1.01);
}

.drop-zone input {
    display: none;
}

.upload-icon {
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    border-radius: 50%;

    background: #eef2ff;

    font-size: 32px;
}

.drop-zone strong {
    font-size: 19px;
    margin-bottom: 6px;
}

.drop-zone span {
    color: #667085;
}

.drop-zone small {
    margin-top: 10px;
    color: #98a2b3;
}


/* Upload progress */

#upload-list {
    display: flex;
    flex-direction: column;

    gap: 10px;

    margin-top: 18px;
}

.upload-item {
    padding: 16px;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    background: #fafafa;
}

.upload-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 10px;
}

.upload-name {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-status {
    flex-shrink: 0;

    color: #667085;

    font-size: 13px;
}

.upload-status.success {
    color: #15803d;
}

.upload-status.error {
    color: #b91c1c;
}

.progress {
    width: 100%;
    height: 8px;

    overflow: hidden;

    border-radius: 999px;

    background: #e5e7eb;
}

.progress-bar {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background: #4f46e5;

    transition: width 0.1s linear;
}

.upload-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 8px;

    color: #667085;

    font-size: 13px;
}

.cancel-button {
    padding: 5px 10px;

    border: 1px solid #fecaca;
    border-radius: 7px;

    background: white;
    color: #b91c1c;

    cursor: pointer;
}

.cancel-button:hover {
    background: #fef2f2;
}


/* Files */

.section-header {
    margin-bottom: 15px;
}

.section-header h2 {
    margin-bottom: 4px;
}

.section-header p {
    margin: 0;

    color: #667085;
}

.file-list {
    display: flex;
    flex-direction: column;
}

.file {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 16px 0;

    border-bottom: 1px solid #edf0f2;
}

.file:last-child {
    border-bottom: 0;
}

.file-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    background: #f1f5f9;
}

.file-info {
    min-width: 0;
    flex: 1;
}

.file-name {
    overflow: hidden;

    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-meta {
    margin-top: 4px;

    color: #667085;

    font-size: 13px;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-actions a,
.file-actions button {
    padding: 8px 12px;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;
}

.download {
    background: #eef2ff;
    color: #3730a3;
}

.delete {
    border: 1px solid #fecaca;

    background: white;
    color: #b91c1c;
}

.delete:hover {
    background: #fef2f2;
}

.file-actions form {
    margin: 0;
}


/* Empty state */

.empty {
    padding: 70px 20px;

    text-align: center;
}

.empty-icon {
    margin-bottom: 10px;

    font-size: 50px;
}

.empty h3 {
    margin-bottom: 8px;
}

.empty p {
    margin: 0;

    color: #667085;
}


/* Mobile */

@media (max-width: 650px) {

    .container {
        width: min(100% - 20px, 1000px);
        padding: 25px 0;
    }

    .upload-card,
    .files-section {
        padding: 20px;

        border-radius: 14px;
    }

    header h1 {
        font-size: 30px;
    }

    .upload-top {
        flex-direction: column;
        gap: 5px;
    }

    .file {
        align-items: flex-start;
    }

    .file-actions {
        flex-direction: column;
    }

    .file-actions a,
    .file-actions button {
        width: 85px;

        text-align: center;
    }
}
