body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: #fcfcfc;
    color: #181818;
    margin: 0;
    padding: 0;
}

.container {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.07);
    max-width: 800px;
    min-width: 320px;
    margin: 40px auto 0 auto;
    padding: 32px 36px 36px 36px;
    border: 1px solid #ececec;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #181818;
    margin-bottom: 1.2em;
    letter-spacing: -0.02em;
}

.file-list {
    margin-top: 20px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #ececec;
    padding: 0;
    list-style: none;
}

.file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.file-list li:last-child {
    border-bottom: none;
}

.file-list .file-name,
.file-list .file-type,
.file-list .file-size {
    font-weight: 600;
    color: #181818;
}

.file-list .file-type {
    color: #ff3c00;
}

.file-list .file-size {
    color: #888;
}

.file-list a {
    color: #ff3c00;
    text-decoration: none;
    transition: color 0.2s;
}

.file-list a:hover {
    color: #d72600;
    text-decoration: underline;
}

.file-list .file-name {
    flex: 1;
    word-break: break-all;
    font-weight: 600;
}

.file-list .file-actions {
    margin-left: 10px;
}

.file-list .file-type {
    width: 2em;
    text-align: center;
    font-size: 1.2em;
    color: #ff3c00;
    font-weight: 600;
}

.file-list .file-size {
    color: #888;
    font-size: 0.95em;
    margin-left: 10px;
    font-weight: 600;
}

.upload-area {
    margin-top: 20px;
    padding: 30px;
    border: 2px dashed #ff3c00;
    border-radius: 8px;
    text-align: center;
    color: #ff3c00;
    background: #fafbfc;
    transition: background 0.2s, border-color 0.2s;
}

.upload-area.dragover {
    background: #fff3ed;
    border-color: #d72600;
}

.breadcrumb {
    margin-bottom: 18px;
    font-size: 1.05em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    flex-wrap: wrap;
}

.breadcrumb-sep {
    color: #bbb;
    font-weight: 400;
    margin: 0 0.2em;
    user-select: none;
}

.breadcrumb a {
    color: #ff3c00;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.breadcrumb a:hover {
    color: #fff;
    background: #ff3c00;
    text-decoration: none;
}

.status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.success {
    background: #eafbe7;
    color: #1a7f37;
    border: 1px solid #b7e4c7;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 18px;
    font-weight: 500;
}

.error {
    background: #fff0f0;
    color: #d7263d;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 18px;
    font-weight: 500;
}

button {
    background: #fff;
    color: #ff3c00;
    font-weight: 600;
    font-size: 0.98em;
    border: 2px solid #ff3c00;
    border-radius: 8px;
    padding: 7px 18px;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s, color 0.2s, border 0.2s;
}

button:hover {
    background: #ff3c00;
    color: #fff;
    border-color: #d72600;
}

.file-actions button {
    margin-left: 4px;
    margin-right: 0;
    font-size: 0.92em;
    padding: 5px 12px;
    border-radius: 6px;
}

label {
    font-size: 1.08em;
    font-weight: 600;
    color: #181818;
    margin-bottom: 0.4em;
    display: block;
}

input[type="text"],
input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    background: #fafbfc;
    color: #181818;
    margin-bottom: 18px;
    transition: border 0.2s;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="file"]:focus {
    border-color: #ff3c00;
    outline: none;
}

.links-section,
.websocket-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.links-section h2,
.websocket-section summary {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #ff3c00;
}

.links-section ul {
    list-style: none;
    padding: 0;
}

.links-section li {
    margin-bottom: 8px;
}

details>summary {
    cursor: pointer;
    font-weight: bold;
}

details>div {
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

#log {
    background: #fafbfc;
    min-height: 5em;
    max-height: 15em;
    padding: 0.5em;
    overflow: auto;
    border-radius: 4px;
    margin-top: 10px;
    color: #ff3c00;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff3c00;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
    margin: 24px auto 0 auto;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .container {
        max-width: 98vw;
        min-width: 0;
        padding: 18px 2vw 18px 2vw;
    }

    h1 {
        font-size: 1.3rem;
    }
}