body, h1, h2, h3, p, form, input, button, div {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}

h1 {
    font-size: 24px;
    color: #bb86fc;
}

#fileInputContainer {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #1e1e1e;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

#fileInput {
    display: none;
}

.file-input-label {
    background-color: #3700b3;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.file-input-label:hover {
    background-color: #6200ee;
}

button {
    background-color: #03dac6;
    color: #000000;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

button:hover {
    background-color: #018786;
}

#progressBarContainer {
    flex-grow: 1;
    margin: 0 20px;
}

#progressBar {
    width: 100%;
    height: 6px;
    background-color: #333333;
    border-radius: 3px;
    overflow: hidden;
}

#progressBarFill {
    width: 0%;
    height: 100%;
    background-color: #bb86fc;
    transition: width 0.3s ease-in-out;
}

#progressText {
    text-align: center;
    margin-top: 5px;
    font-size: 12px;
    color: #bb86fc;
}

#resultContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    flex-grow: 1;
}

.resultBox {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 15px;
    transition: background-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


.resultBox:hover {
    background-color: #2d2d2d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.resultBox h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #bb86fc;
}

.resultBox .content {
    white-space: pre-wrap;
    line-height: 1.4;
    margin-bottom: 10px;
}

.resultBox p {
    margin: 5px 0;
}

.resultBox ul, .resultBox ol {
    margin: 5px 0;
    padding-left: 20px;
}

.resultBox code, .resultBox pre {
    background-color: #2d2d2d;
    padding: 8px;
    border-radius: 5px;
    max-width: 100%;
    overflow-x: auto;
}

.resultBox blockquote {
    margin: 10px 0;
    padding-left: 15px;
    border-left: 5px solid #bb86fc;
    color: #03dac6;
}

.hljs {
    background: none;
}

@media (max-width: 768px) {
    #resultContainer {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        width: calc(100% - 15px); 
        margin-right: 15px;
    }
    
    form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .file-input-label, button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    #resultContainer {
        grid-template-columns: 1fr;
        width: calc(100% - 10px); 
        margin-right: 10px;
    }
    
    #fileInputContainer {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
}

* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}