* {
    box-sizing: border-box
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;
    background: #f3f5fa;
    color: #1d2637
}

.card {
    width: min(100%, 520px);
    background: #fff;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 12px 40px #1a2b5018
}

h1 {
    margin: 0 0 8px;
    font-size: 1.65rem
}

.subtitle {
    color: #65728b;
    margin: 0 0 26px
}

.drop-zone {
    border: 2px dashed #afbddb;
    border-radius: 14px;
    background: #f9faff;
    padding: 35px 16px;
    text-align: center;
    transition: .2s
}

.drop-zone.dragover {
    background: #eaf0ff;
    border-color: #4f6df5
}

.drop-zone p {
    font-weight: 650
}

.icon {
    font-size: 3rem;
    color: #4f6df5
}

button {
    border: 0;
    border-radius: 9px;
    padding: 12px 20px;
    font: inherit;
    font-weight: 650;
    cursor: pointer
}

.secondary {
    background: #e7edff;
    color: #3958df
}

.primary {
    background: #4f6df5;
    color: #fff;
    flex: 1
}

.danger {
    background: #ffe4e4;
    color: #bd3030
}

button:disabled {
    background: #b6bfd2;
    color: #fff;
    cursor: not-allowed
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 22px
}

#fileInfo {
    margin-top: 24px
}

.file-details {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: .9rem;
    margin-bottom: 14px
}

.file-details strong {
    overflow-wrap: anywhere
}

.file-details span {
    color: #647089;
    white-space: nowrap
}

.progress-row {
    display: flex;
    align-items: center;
    gap: 12px
}

.progress-track {
    flex: 1;
    background: #e8edf6;
    height: 12px;
    border-radius: 20px;
    overflow: hidden
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #4f6df5, #86a0ff);
    transition: width .12s
}

.progress-row > span {
    min-width: 43px;
    text-align: right;
    font-weight: 650;
    font-size: .85rem
}

.status {
    font-size: .88rem;
    color: #637087
}

.status.success {
    color: #198451
}

.status.error {
    color: #cf3030
}

[hidden] {
    display: none !important
}

.password-field {
    margin-top: 20px;
    margin-bottom: 18px;
}

.password-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.password-field input {
    width: 100%;
    padding: 12px;
    border: 1px solid #b8c3d9;
    border-radius: 8px;
    font: inherit;
}

.password-field input:focus {
    outline: 2px solid #4f6df5;
    outline-offset: 1px;
}

.share-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.share-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.share-box {
    display: flex;
    gap: 10px;
}

#shareLink {
    flex: 1;
    min-width: 0;

    padding: 12px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: #f8f9fc;

    font-size: 13px;
    color: #555;
}

.copy-btn {
    background: #21a366;
    color: white;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #198754;
}
