body {
    padding-top: 20px;
    padding-bottom: 10px;
    background-color: #f8f9fa;
    color: #212529;
    transition: background-color 0.3s, color 0.3s;
}

#file-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    height: 80vh;
    overflow-y: auto;
    font-family: monospace;
    position: relative;
}

.container {
    max-width: 95%;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    font-size: 2.5rem;
}

.dark-mode {
    background-color: #212529;
    color: #f8f9fa;
}

.dark-mode #file-content {
    background-color: #343a40;
    color: #f8f9fa;
}

.dark-mode .form-control {
    background-color: #343a40;
    color: #f8f9fa;
    border: 1px solid #495057;
}

.dark-mode .form-control::placeholder {
    color: #adb5bd;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.header-container h1 {
    margin: 0;
    text-align: center;
}

.search-darkmode-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.search-darkmode-container i {
    font-size: 1.5rem;
    cursor: pointer;
    color: #495057;
    transition: color 0.3s;
}

.dark-mode .search-darkmode-container i {
    color: #f8f9fa;
}

#search-box {
    flex-grow: 1;
    max-width: 300px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

#line-limit {
    max-width: 100px;
}

@media (min-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .search-darkmode-container {
        flex-direction: row;
        gap: 10px;
        margin-top: 0;
    }

    #search-box {
        max-width: 300px;
    }
}

@media (max-width: 767px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }

    .search-darkmode-container {
        margin-top: 10px;
        width: 100%;
        justify-content: space-between;
    }
}

