body {
    font-family: Arial, sans-serif;
    font-size: 14px;
    background-color: #15161c;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.navbar {
    background-color: #15161c;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 5px 10px;
}

.navbar-brand {
    color: #007bff;
    font-size: 18px;
    font-weight: bold;
}

.navbar .form-inline {
    flex-grow: 1;
    justify-content: flex-end;
}

.navbar .form-control {
    border-radius: 20px;
    border: 1px solid #dee2e6;
    height: 30px;
    font-size: 12px;
}

.navbar .btn {
    border-radius: 20px;
    margin-left: 10px;
    color: #fff;
    background-color: #007bff;
    border: none;
    font-size: 12px;
    padding: 5px 10px;
}

    .navbar .btn:hover {
        background-color: #0056b3;
    }

.sidebar {
    background-color: #15161C;
    height: 100vh;
    position: fixed;
    top: 50px;
    left: 0;
    width: 300px;
    padding-top: 20px;
    overflow-y: auto;
    padding-bottom: 5%;
}

    .sidebar .nav-header {
        font-size: 15px;
        color: #e8ff5f;
        padding: 10px 20px;
        text-transform: uppercase;
        font-weight: bold;
    }

    .sidebar .nav-link {
        color: whitesmoke;
        display: block;
        padding: 8px 20px;
        text-decoration: none;
        font-size: 14px;
        font-family: 'Roboto', sans-serif;
    }

        .sidebar .nav-link:hover {
            background-color: whitesmoke;
            color: #15161C;
        }

        .sidebar .nav-link.active {
            color: whitesmoke;
            font-weight: bold;
            background-color: #1a1d22;
            border-left: 3px solid whitesmoke;
        }

        .sidebar .nav-link i {
            margin-right: 10px;
        }

.desc {
    font-size: 20px;
}

.content {
    margin-left: 320px;
    padding: 18px;
    background-color: #1a1d22;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    margin-top: 80px;
    width: 1050px;
    color: whitesmoke;
}

    .content h1, .content h2 {
        color: whitesmoke;
        font-size: 25px;
    }

    .content p {
        line-height: 1.6;
        color: whitesmoke;
    }

    .content a {
        color: #007bff;
    }

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
    }

        .sidebar .nav-link {
            float: left;
            text-align: left;
            padding: 10px 15px;
        }

    .content {
        margin-left: 0;
        margin-top: 100px;
    }
}

.code-block {
    position: relative;
}

.btn-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
}

    .btn-copy:hover {
        background-color: #0056b3;
    }

.code-editor {
    position: relative;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #1e1e1e;
    margin-top: 10px;
    max-width: 1000px;
    width: 160%;
    box-sizing: border-box;
    color: #d4d4d4;
    font-family: 'Consolas', 'Courier New', Courier, monospace;
}

    .code-editor pre {
        background: #1e1e1e;
        color: #d4d4d4;
        padding: 2px;
        border-radius: 4px;
        max-height: 400px;
        margin: 0;
        font-size: 1em;
        line-height: 1.5;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    .code-editor .copy-button {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: whitesmoke;
        border: none;
        color: #15161c;
        padding: 5px 10px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        margin-right: 25px;
    }

        .code-editor .copy-button:hover {
            background-color: #e8ff5f;
        }

.nav-link {
    background-color: #15161c;
    color: whitesmoke;
}

    .nav-link.active {
        background-color: #e8ff5f;
        color: #15161c;
    }

@media (max-width: 1024px) {
    .code-editor {
        width: 100%;
    }
}

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #888;
    }

::-webkit-scrollbar:horizontal {
    height: 7px;
}

.nav-header {
    font-weight: bold;
    margin-top: 10px;
}

    .nav-header i {
        margin-right: 5px;
    }

.toggle-button {
    display: none;
    background-color: #15161c;
    color: #fff;
    padding: 10px;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 8%;
    left: 10px;
    z-index: 1000;
    width: 100%;
    text-align: left;
}

.toggle-button:focus {
    outline: none;
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 250px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1;
    }

        .sidebar.active {
            transform: translateX(0);
            display: block;
        }

    .toggle-button {
        display: block;
    }

    .gnr {
        margin-top: 30%;
    }

    .content {
        width: 100%;
        overflow: auto;
    }
}
