* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 40px 20px;
    background: #f4f4f4;
    color: black;
    font-family: monospace;
}

main {
    width: 100%;
    max-width: 700px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border: 1px solid #ddd;
}

h1 {
    margin: 0 0 10px;
    font-size: 3rem;
    color: black;
}

h2 {
    color: black;
}

p {
    color: #666;
    line-height: 1.5;
}

a {
    color: black;
    text-decoration: none;
}

a:hover {
    background: black;
    color: white;
    transition: 0.3s;
}

form {
    margin-top: 30px;
}

label {
    display: block;
    margin: 18px 0 7px;
    text-align: left;
    color: black;
    font-weight: normal;
}

input[type="file"],
input[type="datetime-local"],
input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 0;
    background: white;
    color: black;
    font: inherit;
    outline: none;
}

input[type="file"]:focus,
input[type="datetime-local"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: black;
}

input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 12px;
    border: none;
    background: black;
    color: white;
    font-family: monospace;
    cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
    background: #333;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

input[type="checkbox"] {
    margin-top: 18px;
    accent-color: black;
}

input[type="checkbox"] + label {
    display: inline;
    margin-left: 5px;
}

button {
    width: 100%;
    margin-top: 20px;
    padding: 10px 18px;
    border: none;
    border-radius: 0;
    background: black;
    color: white;
    font: inherit;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #333;
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#upload-progress-container {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

#upload-progress {
    width: 100%;
    height: 16px;
    accent-color: black;
}

#upload-progress-text {
    margin-top: 8px;
    color: #666;
}

@media (max-width: 600px) {
    body {
        padding: 20px 15px;
    }

    main {
        margin: 20px auto;
        padding: 25px;
    }

    h1 {
        font-size: 2.4rem;
    }
}