* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: #17181c;
    color: #cfd2d8;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    background-color: #1d1e24;
    border-bottom: 1px solid #2a2b32;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-left img {
    height: 44px;
}

.header-left h1 {
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    color: #e8e8ec;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.upload-btn {
    background-color: #8e5cff;
    color: white !important;
    border-radius: 4px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.upload-btn:hover {
    background-color: #7a45f0;
}

#search {
    background-color: #26272e;
    border: 1px solid #34353d;
    border-radius: 4px;
    padding: 10px 14px;
    color: #cfd2d8;
    width: 260px;
    font-size: 15px;
}

#search:focus {
    outline: none;
    border-color: #8e5cff;
}

.breadcrumb {
    padding: 10px 32px 0 32px;
    color: #6d6f78;
    font-size: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    table-layout: fixed;
}

col.col-name { width: 55%; }
col.col-size { width: 20%; }
col.col-date { width: 25%; }

th {
    text-align: left;
    padding: 12px 32px;
    font-size: 15px;
    color: #7aa2ff;
    font-weight: 600;
    border-bottom: 1px solid #2a2b32;
}

td {
    padding: 12px 32px;
    font-size: 15px;
    border-bottom: 1px solid #232429;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

tr.row:nth-child(even) { background-color: #1b1c22; }
tr.row:hover { background-color: #24252c; }

a { text-decoration: none; color: #dfe1e6; }
a.folder-link { color: #c58bff; }
a:hover { text-decoration: underline; }

.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    vertical-align: middle;
}

.back-row a { color: #6d6f78; }

/* Upload page */
.upload-wrap { padding: 28px; }
.upload-wrap a { color: #c58bff; }
.upload-wrap button {
    background-color: #8e5cff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}
.upload-wrap select,
.upload-wrap input[type="text"] {
    background-color: #26272e;
    border: 1px solid #34353d;
    border-radius: 4px;
    padding: 8px 12px;
    color: #cfd2d8;
    font-size: 15px;
}
.upload-wrap progress {
    width: 300px;
    accent-color: #8e5cff;
}