/* ===== Global ===== */
html, body {
    margin: 0;
    height: 100%;
}
body {
    font-family: "Segoe UI", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #202225;
    color: #fff;
    text-align: center;
    padding: 20px;
    transition: background 0.2s;
}
body.dragover {
    background: rgba(88,101,242,0.2);
}

/* ===== Logo ===== */
header.logo {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 10px;
    background: radial-gradient(circle,
        rgb(255, 157, 0) 0%,
        rgb(255, 157, 0) 14%,
        rgb(255, 0, 38) 34%,
        rgb(192, 41, 66) 47%,
        rgb(192, 41, 66) 60%,
        rgb(102, 56, 65) 71%,
        rgb(59, 59, 59) 86%,
        rgb(59, 59, 59) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block;
}
.logo-line {
    height: 3px; /* thickness of line */
    width: 100%;
    margin: 0 auto 20px auto;
    border-radius: 3px;
    background: radial-gradient(circle, rgb(255, 157, 0) 0%, rgb(255, 157, 0) 14%, rgb(255, 0, 38) 34%, rgb(192, 41, 66) 47%, rgb(192, 41, 66) 60%, rgb(102, 56, 65) 71%, rgb(59, 59, 59) 86%, rgb(59, 59, 59) 100%);
}
/* ===== Links ===== */
.history-link {
    margin-bottom: 20px;
}
.history-link a {
    color: #61dafb;
    text-decoration: none;
    font-size: 1.1em;
}

/* ===== Form ===== */
form {
    position: relative;
    display: inline-block;
    padding: 30px;
    background: rgba(0,0,0,0.4);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    min-width: 250px;
}
form.dragover {
    background: rgba(88, 101, 242, 0.3);
}
input[type="file"] {
    display: none;
}
label {
    display: block;
    padding: 15px 30px;
    background: #5865f2;
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.2s ease;
}
label:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

/* ===== Result / Preview ===== */
.result {
    margin-top: 25px;
    background: rgba(0,0,0,0.4);
    padding: 20px;
    border-radius: 12px;
}
.result a {
    color: #61dafb;
    word-break: break-all;
}
.preview {
    margin-top: 15px;
}
img, video {
    max-width: 100%;
    border-radius: 10px;
}
audio {
    width: 100%;
}

/* ===== Buttons ===== */
button.copy-btn {
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #ff9d00;
    color: #000;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}
button.copy-btn:hover {
    background: #ffa733;
}
