html {
    height: 100%;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: sans-serif;
    background-color: #f4f4f4;
}

.upload-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    
    background-color: #e0e0e0;
    border: 3px solid black;
    border-radius: 10px;

    width: 90%;
    height: 90vh;
    padding: 20px;
    box-sizing: border-box;
}

#right-box, #left-box {
    border: 3px solid lightgray;
    border-radius: 10px;

    width: 48%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

#right-box {
    margin-left: 0; 
}

#json-display {
    background: #eee;
    padding: 10px;
    overflow: auto;
    height: 90%;
    width: 30dvw;
    border: 1px solid #ccc;
}

input {
    padding: 10px 15px;
    width: 100%;
    max-width: 300px;

    border: 2px solid #ccc;
    border-radius: 8px;
    background-color: white;
    font-size: 16px;
    
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
}

input[type="file"] {
    display: none;
}

.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    background-color: #4A90E2;
    color: white;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

.custom-file-upload:hover {
    background-color: #357ABD;
}

button {
    padding: 10px 15px;
    width: 100%;
    max-width: 300px;
    
    border: none;
    border-radius: 8px;
    background-color: #4A90E2;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    
    transition: background-color 0.3s ease, transform 0.1s ease;
}

button:hover {
    background-color: #357ABD;
}

button:active {
    transform: scale(0.98);
}

#progress-container {
    margin-top: 15px;
    display: none; /* Hidden by default */
    width: 100%;
    max-width: 300px;
}

progress {
    width: 100%;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: none;
}

progress::-webkit-progress-bar {
    background-color: #eee;
}

progress::-webkit-progress-value {
    background-color: #4A90E2;
    border-radius: 10px;
}