* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: Arial, sans-serif;
    background: #f4f4f5;
    color: #18181b;
}

.container {
    width: min(90%, 600px);
    padding: 40px;

    background: white;
    border-radius: 16px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

h1 {
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
}

.subtitle {
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    color: #71717a;
    line-height: 1.5;
}

.dropzone {
    border: 2px dashed #d4d4d8;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: #71717a;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: #18181b;
    background-color: #f9fafb;
}

.file-info {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #52525b;
}

.expiry-row {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.expiry-row select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #d4d4d8;
    font-size: 14px;
}

button {
    width: 100%;
    margin-top: 20px;
    padding: 14px 18px;

    border: none;
    border-radius: 8px;

    background: #18181b;
    color: white;

    font-size: 15px;
    cursor: pointer;
}

button:hover:not(:disabled) {
    opacity: 0.85;
}

button:disabled {
    background: #d4d4d8;
    cursor: not-allowed;
}

.progress-container {
    margin-top: 20px;
    position: relative;
    background: #f4f4f5;
    border-radius: 8px;
    height: 28px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #18181b;
    transition: width 0.2s ease;
}

#progressLabel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #18181b;
    mix-blend-mode: difference;
    filter: invert(1);
}

.result {
    margin-top: 30px;
}

.shortlink-container {
    display: flex;
    gap: 10px;
}

.shortlink-container input {
    width: 100%;
    padding: 14px;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    font-size: 14px;
    background: #f4f4f5;
}

.shortlink-container button {
    width: auto;
    margin-top: 0;
    padding: 14px 18px;
}

.expiry-note {
    margin-top: 12px;
    font-size: 13px;
    color: #71717a;
    text-align: center;
}

#message {
    margin-top: 20px;
    text-align: center;
    color: #dc2626;
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    .container {
        padding: 25px;
    }
}
