main {
    max-width: 560px;
    margin: 2rem auto 4rem;
    padding: 20px 15px;
    background: #394555;
    border-radius: 16px;
    border: 1px solid #3a3a5e;
    box-shadow: 0 8px 24px rgb(0 71 171 / .15);
    box-sizing: border-box;
}

#dropzone {
    border: 2px dashed #4a5c6e;
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
    color: #cbd5e1;
    background: #2d3f52;
    transition: border-color .2s, background .2s;
    margin-bottom: 1rem;
    user-select: none;
}

#dropzone:hover,
#dropzone.dragover {
    border-color: #ffd700;
    background: #394555;
}

#fileInput {
    display: none;
}

.file-list {
    margin-bottom: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    background: #2d3f52;
    border-radius: 8px;
    padding: .6rem .9rem;
    margin-bottom: .4rem;
    font-size: .875rem;
    color: #cbd5e1;
    flex-wrap: wrap;
}

.file-name {
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

.file-status {
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
    color: #90cff0;
}

.actions {
    display: flex;
    gap: .75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.actions button {
    flex: 1;
    padding: .75rem 1rem;
    font-size: .95rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s, transform .1s;
    background: #ffd700;
    color: #1a1a2e;
    white-space: nowrap;
}

.actions button:hover:not(:disabled) {
    background: #4ade80;
}

.actions button:disabled {
    background: #4a5c6e;
    color: #8fa0b0;
    cursor: not-allowed;
}

.actions input[type='text'] {
    flex: 1;
    padding: .75rem 1rem;
    font-size: .95rem;
    border: 2px solid #4a5c6e;
    border-radius: 10px;
    background: #2d3f52;
    color: #fff;
    box-sizing: border-box;
    min-width: 0;
    outline: none;
    transition: border-color .2s;
}

.actions input[type='text']:focus {
    border-color: #ffd700;
}

.actions input[type='text']::placeholder {
    color: #6b8fa8;
}

#progress {
    font-size: .9rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    min-height: 1.4rem;
    line-height: 1.4;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.rotating {
    display: inline-block;
    animation: spin 1s linear infinite;
}
