* {
    box-sizing: border-box;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #111214;

    color: #f5f5f5;
}

button {
    border: 0;
    cursor: pointer;

    font: inherit;
}

.app {
    min-height: 100vh;
}

header {
    height: 76px;

    padding: 0 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #292a2e;

    background: #18191c;
}

header h1 {
    margin: 0;
    font-size: 21px;
}

header p {
    margin: 5px 0 0;

    color: #8d8f96;

    font-size: 13px;
}

.primary {
    background: #fff;
    color: #111;

    padding: 11px 18px;

    border-radius: 8px;

    font-weight: bold;
}

main {
    max-width: 1200px;

    margin: auto;

    padding: 25px 30px;
}

.toolbar {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
}

.breadcrumb {
    display: flex;

    align-items: center;

    gap: 5px;

    flex-wrap: wrap;
}

.breadcrumb button {
    background: transparent;

    color: #d5d5d5;

    padding: 7px 9px;

    border-radius: 6px;
}

.breadcrumb button:hover {
    background: #242529;
}

.actions button {
    padding: 9px 13px;

    background: #242529;

    color: white;

    border-radius: 7px;
}


/* =========================================================
   DROPZONE
========================================================= */

.drop-zone {
    border: 1px dashed #44464c;

    border-radius: 10px;

    min-height: 90px;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    margin-bottom: 22px;

    color: #aaa;

    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #888;

    background: #1a1b1e;
}

.drop-zone strong {
    display: block;

    color: #eee;

    margin-bottom: 5px;
}

.drop-zone span {
    font-size: 13px;
}


/* =========================================================
   UPLOAD
========================================================= */

.upload-progress {
    background: #1c1d20;

    border: 1px solid #303136;

    border-radius: 10px;

    padding: 16px;

    margin-bottom: 22px;
}

.upload-progress-top {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 10px;

    font-size: 14px;
}

#uploadPercent {
    font-weight: bold;
}

.progress-bar {
    width: 100%;

    height: 9px;

    background: #303136;

    border-radius: 20px;

    overflow: hidden;
}

#progressFill {
    width: 0%;

    height: 100%;

    background: #fff;

    border-radius: 20px;

    transition: width .15s ease;
}

.upload-details {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    margin-top: 9px;

    color: #85878d;

    font-size: 12px;
}

#uploadFile {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   FILES
========================================================= */

.file-list {
    display: flex;

    flex-direction: column;
}

.file {
    display: grid;

    grid-template-columns:
        45px 1fr 120px 120px 40px;

    align-items: center;

    min-height: 64px;

    border-bottom: 1px solid #242529;

    padding: 0 10px;
}

.file:hover {
    background: #191a1d;
}

.icon {
    font-size: 25px;
}

.file-name {
    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;
}

.file-size,
.file-date {
    color: #85878d;

    font-size: 13px;
}

.more {
    width: 32px;
    height: 32px;

    background: transparent;

    color: #aaa;

    border-radius: 6px;

    font-size: 20px;
}

.more:hover {
    background: #292a2e;

    color: white;
}


/* =========================================================
   GENERAL
========================================================= */

.loading,
.empty {
    text-align: center;

    color: #777;

    padding: 50px;
}

.empty div {
    font-size: 40px;

    margin-bottom: 10px;
}

.hidden {
    display: none !important;
}


/* =========================================================
   CONTEXT MENU
========================================================= */

.context-menu {
    position: fixed;

    width: 180px;

    background: #222327;

    border: 1px solid #36373c;

    border-radius: 8px;

    padding: 5px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, .4);

    z-index: 1000;
}

.context-menu button {
    display: block;

    width: 100%;

    padding: 10px;

    text-align: left;

    background: transparent;

    color: #eee;

    border-radius: 5px;
}

.context-menu button:hover {
    background: #303136;
}

.context-menu .danger {
    color: #ff6b6b;
}


/* =========================================================
   MODAL
========================================================= */

.modal {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .65);

    display: flex;

    align-items: center;

    justify-content: center;

    z-index: 2000;
}

.modal-box {
    width: min(500px,
            calc(100% - 30px));

    max-height: 80vh;

    overflow: auto;

    background: #1d1e21;

    border: 1px solid #35363a;

    border-radius: 12px;

    padding: 25px;
}

.modal-box h2 {
    margin-top: 0;
}

#moveItemName {
    color: #999;
}

#folderChoices {
    display: flex;

    flex-direction: column;

    gap: 6px;

    margin: 20px 0;
}

.folder-choice {
    padding: 12px;

    text-align: left;

    background: #28292d;

    color: white;

    border-radius: 7px;
}

.folder-choice:hover {
    background: #35363a;
}

.modal-actions {
    display: flex;

    justify-content: flex-end;
}

.modal-actions button {
    padding: 9px 15px;

    border-radius: 7px;

    background: #303136;

    color: white;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    header {
        padding: 0 15px;
    }

    main {
        padding: 20px 15px;
    }

    .file {
        grid-template-columns:
            40px 1fr 40px;
    }

    .file-size,
    .file-date {
        display: none;
    }

    .actions {
        display: none;
    }
}