body {
    background-color: #1A1E27;
    color: #f5f5f5;
    font-family: Space Mono,sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.create-form {
    position: fixed;
    top: 0;
    right: -100%;
    width: calc(100% - 250px);
    height: 100vh;
    background-color: #1A1E27;
    padding: 20px;
    transition: right 0.8s ease;
    z-index: 2;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.create-form.open {
    right: 0;
}

.create-form h3 {
    text-align: center;
    color: #f5f5f5;
}

.create-form .form-group.full-width {
    grid-column: span 2;
}


.create-form form {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    grid-template-rows: auto auto; 
    gap: 20px; 
    margin-bottom: 20px;
}


.create-form .form-group {
    margin: 0;
}

.form-control {
    background-color: #212531;
    color: #f5f5f5;
    border: none;
    padding: 10px;
}

.form-control::placeholder {
    color: white;
    opacity: 1;
}

.form-control:focus {
    background-color: #212531;
    color: white;
}

.form-control:focus::placeholder {
    color: white;
}


.create-form button {
    grid-column: span 2;
    padding: 10px 0;
    background-color: #0069d9;
    border: none;
    color: #f5f5f5;
    font-size: 16px;
    cursor: pointer;
}

.create-form button:hover {
    background-color: #0056b3;
}


.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #f5f5f5;
    cursor: pointer;
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .create-form {
        width: 100%;
        margin-left: 0;
        right: -100%;
    }

    .create-form.open {
        right: 0;
    }

    .create-form form {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px; 
    }

    .form-control {
        padding: 8px;
    }

    .sidebar-toggle-btn {
        display: block;
        position: absolute;
        top: 20px;
        left: 20px;
        background-color: #212531;
        color: #f5f5f5;
        border: none;
        font-size: 20px;
        padding: 10px;
        cursor: pointer;
        z-index: 2;
    }

    .create-form-toggle-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background-color: #212531;
        color: #f5f5f5;
        border: none;
        font-size: 20px;
        padding: 10px;
        cursor: pointer;
        z-index: 2;
    }
}

.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #212531;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 20px;
    transition: width 0.3s ease;
    color: white;
}

.sidebar.open {
    width: 200px;
}

.sidebar-toggle-btn {
    display: none;
}

.pastes-section {
    margin-top: 20px;
}


.pastes-list {
    margin-top: 20px;
}

.paste-item {
    background-color: #212531;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.paste-item h3 {
    margin: 0 0 10px;
    color: #f5f5f5;
}

.paste-item p {
    color: #ccc;
    margin: 0 0 10px;
}

.paste-actions {
    display: flex;
    gap: 10px;
}

.code-snippet {
    background-color: transparent; /* No background for the outer container */
    color: #f8f8f2; /* Light text color */
    border-radius: 8px; /* Rounded corners */
    padding: 0; /* Remove padding from the container */
    font-family: 'Fira Code', monospace; /* Monospace font for code */
    font-size: 14px; /* Font size for code */

    margin-bottom: 10px; /* Space below each snippet */
    width: 100%; /* Set a specific width (you can adjust this percentage) */
    max-width: 90%; /* Optional: Limit the maximum width */
    margin-left: auto; /* Center the box horizontally */
    margin-right: auto; /* Center the box horizontally */
}

.code-snippet pre {
    margin: 0; /* Remove default margin from <pre> */
    background-color: #1f232e; /* Dark background for the code block */
    color: #f8f8f2; /* Light text color */
    padding: 10px; /* Add padding inside the code block */
    border-radius: 8px; /* Rounded corners for the code block */
    overflow: auto; /* Allow scrolling if content overflows */
    white-space: pre-wrap; /* Allow wrapping of long lines */

}

.code-snippet:hover pre {
    overflow-y: auto; /* Show vertical scrollbar on hover */
}








@media (max-width: 768px) {
    .sidebar {
        width: 0;
        padding-top: 10px;
        display: none;
    }

    .sidebar.open {
        width: 200px;
        display: flex;
    }

    .sidebar-toggle-btn {
        display: block;
        position: absolute;
        top: 20px;
        left: 20px;
        background-color: #212531;
        color: #f5f5f5;
        border: none;
        font-size: 20px;
        padding: 10px;
        cursor: pointer;
        z-index: 2;
    }
}
