body{
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #2f2f2f;
}
.error-input {
    border-bottom: 2px solid red !important;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}

#error {
    color: red;
    margin-top: 10px;
}
* {
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    background-color: #2f2f2f;

    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px 15px;

    background:
        radial-gradient(
            circle at top,
            #171022 0%,
            #08090f 45%,
            #05060a 100%
        );

    color: #f5f5f7;

    font-family:
        Inter,
        Arial,
        sans-serif;
}


/* Main box */

.upload-box {

    width: min(650px, 100%);

    padding: 28px;

    background: rgba(14, 15, 24, 0.94);

    border: 1px solid #292a38;

    border-radius: 18px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.5);
}


/* Header */

.create-header {
    margin-bottom: 25px;
}

.create-header h1 {
    margin: 0;

    font-size: 28px;
    font-weight: 750;

    letter-spacing: -0.5px;
}

.create-header p {
    margin: 6px 0 0;

    color: #858692;

    font-size: 14px;
}


/* Drop area */

.drop-area {

    min-height: 250px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    border: 2px dashed #353644;

    border-radius: 15px;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.drop-area:hover {
    border-color: #9c00ff;

    background: rgba(156, 0, 255, 0.045);
}


/* Upload icon / Preview */

.upload-icon {

    width: 75px;
    height: 75px;

    margin-bottom: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: #171824;

    overflow: hidden;
}

#preview {

    width: 42px;
    height: 42px;

    object-fit: cover;
}

.drop-area h2 {

    margin: 0;

    font-size: 19px;
}

.drop-area p {

    margin: 7px 0 15px;

    color: #858692;

    font-size: 13px;
}

.choose-file {

    padding: 8px 15px;

    border-radius: 8px;

    background: #8d00ff;

    color: white;

    font-size: 13px;

    transition: background 0.2s ease;
}

.drop-area:hover .choose-file {
    background: #aa2aff;
}


/* File information */

.file-info {

    margin-top: 15px;

    min-height: 45px;

    padding: 11px 13px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    background: #11121a;

    border: 1px solid #23242f;

    border-radius: 10px;

    font-size: 13px;
}

.file-name-box {

    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.info-label {

    color: #666875;

    font-size: 10px;
    text-transform: uppercase;
}

#file-name {

    overflow: hidden;

    color: #ddd;

    white-space: nowrap;

    text-overflow: ellipsis;
}

#file-size {
    color: #777986;

    white-space: nowrap;
}


/* Progress */

.progress {

    width: 100%;
    height: 5px;

    margin-top: 15px;

    overflow: hidden;

    background: #20212b;

    border-radius: 10px;
}

.progress-bar {

    width: 0%;
    height: 100%;

    background: linear-gradient(
        90deg,
        #5900ff,
        #d400ff
    );

    border-radius: inherit;

    transition: width 0.2s ease;
}


/* Status */

.status {

    margin-top: 8px;

    display: flex;

    justify-content: space-between;

    color: #777986;

    font-size: 11px;
}

#percent {
    color: #b900ff;
}


/* Inputs */

.input-box {

    position: relative;

    margin-top: 22px;
}

.input-box input,
.input-box textarea {

    width: 100%;

    padding: 16px 14px;

    border: 1px solid #292a37;

    border-radius: 10px;

    outline: none;

    background: #0c0d14;

    color: white;

    font-family: inherit;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.input-box textarea {

    min-height: 120px;

    resize: vertical;
}

.input-box input:focus,
.input-box textarea:focus {

    border-color: #9800ff;

    box-shadow:
        0 0 0 3px rgba(152, 0, 255, 0.08);
}


/* Floating label */

.input-box span {

    position: absolute;

    left: 14px;
    top: 15px;

    padding: 0 5px;

    color: #70717d;

    background: #0c0d14;

    pointer-events: none;

    transition:
        top 0.15s ease,
        font-size 0.15s ease,
        color 0.15s ease;
}

.input-box input:focus + span,
.input-box input:not(:placeholder-shown) + span,

.input-box textarea:focus + span,
.input-box textarea:not(:placeholder-shown) + span {

    top: -8px;

    color: #b100ff;

    font-size: 11px;
}


/* Error */

#error {

    min-height: 18px;

    margin: 14px 0 0;

    color: #ff4f6d;

    font-size: 13px;
}


/* Upload button */

#upload-btn {

    width: 100%;

    margin-top: 10px;

    padding: 14px;

    border: none;

    border-radius: 10px;

    background: linear-gradient(
        90deg,
        #5900ff,
        #b000ff
    );

    color: white;

    font-family: inherit;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        filter 0.15s ease;
}

#upload-btn:hover {

    filter: brightness(1.15);

    transform: translateY(-1px);
}

#upload-btn:active {

    transform: translateY(0);
}
form{
    width: 80%;
    display: flex;
    justify-content: center;
}

/* Mobile */

@media (max-width: 600px) {

    body {
        padding: 15px;
        align-items: flex-start;
    }

    .upload-box {
        margin-top: 10px;

        padding: 20px;

        border-radius: 14px;
    }

    .create-header h1 {
        font-size: 24px;
    }

    .drop-area {
        min-height: 220px;
    }

    .file-info {
        align-items: flex-start;
        flex-direction: column;
    }

    #file-size {
        font-size: 11px;
    }
}