body {
    font-family: monospace;
}

a {
    text-decoration: none;
}

a:hover {
    color: #a30417;
}

input[type=text], select {
    font-size: 15px;
    padding: 10px;
    border: 1px solid #CCC;
    box-sizing: border-box;
    border-radius: 2px;
}

input[type=text]:hover {
    border-color: #000;
}

input[type=text]:focus {
    border-color: #285ee8;
    outline: none;
}

.file-box {
    width: 90%;
    background: white;
    margin: 0 auto;
    border-radius: 8px;
}

.timer {
    font-size: 30px;
    font-family: monospace;
    font-weight: bold;
    margin-bottom: 10px;
}

/* === Button style === */
.style_button {
    font-family: monospace;
    background-color: #4CAF50;
    border: none;
    color: black;
    padding: 0 15px;
    height: 42px;
    text-align: center;
    font-size: 15px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.style_button:hover {
    background-color: #45a049;
    color: white;
}

/* === Upload file input === */
.js .inputfile {
    width: 0;
    height: 0;
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.inputfile + label {
    font-family: monospace;
    color: #000;
    border: 1px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    padding: 0 15px;
    height: 42px;
    border-radius: 3px;
    background: white;
    overflow: hidden;
    white-space: nowrap;
}

.inputfile + label svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    margin-right: 8px;
}

.inputfile:hover + label,
.inputfile + label:hover {
    color: #285ee8;
}

/* === Upload layout === */
.upload-controls {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 8px;
}

#fileNameDisplay {
    font-family: monospace;
    margin: 5px 0 2px;
    font-size: 15px;
}

#progressWrapper {
    margin-top: 10px;
    max-width: 600px;
}

#uploadProgress {
    width: 100%;
    height: 10px; /* tăng chiều cao */
    border-radius: 10px;
    overflow: hidden;
    appearance: none;
    background-color: #eee;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

#uploadPercent {
    font-size: 14px;
    margin-top: 4px;
}

#uploadSpeed {
    font-size: 14px;
    margin-top: 4px;
    font-style: italic;
    color: #555;
}

/* === Tùy chỉnh <progress> cho Chrome, Safari (WebKit) === */
#uploadProgress::-webkit-progress-bar {
    background-color: #eee;
    border-radius: 10px;
}

#uploadProgress::-webkit-progress-value {
    background-color: #4CAF50;
    border-radius: 10px;
}

/* === Tùy chỉnh <progress> cho Firefox === */
#uploadProgress::-moz-progress-bar {
    background-color: #4CAF50;
    border-radius: 10px;
}
