body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f6f8fa;
    color: #333;
}

.container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

h1, h2, h3 {
    color: #005f73;
}

pre {
    background: #eef;
    padding: 0.75rem;
    overflow-x: auto;
    border-radius: 6px;
}

code {
    font-family: 'Courier New', monospace;
}

button#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 16px;
    font-size: 14px;
    background-color: #0077b6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: none;
}

button#backToTop:hover {
    background-color: #023e8a;
}

.code-line {
    position: relative;
    display: block;
    padding-right: 60px; /* Padding for the copy button */
    white-space: pre; /* Preserve spaces */
}

.copy-button {
    position: absolute;
    float: right;
    right: 0; /* Changed from negative to positive */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Perfect vertical centering */
    background-color: #0077b6;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 10; /* Ensure button appears above code */
}

pre {
    position: relative;
    margin: 8px 0;
    padding-right: 50px; /* Increased padding */
    overflow-x: auto;
    border-radius: 6px;
    background: #eef;
    padding: 0.75rem;
}

pre.file-content {
    background: #f8f8ff;
    border-left: 4px solid #7b9ed9;
    padding: 0.75rem 0.75rem 0.75rem 1rem;
    white-space: pre; /* Preserve spaces */
}

pre.file-content code {
    color: #444; /* Darker text for better readability */
}

pre.file-content .copy-button {
    background-color: #7b9ed9; /* Different color for file content copy button */
}

pre.file-content .copy-button:hover {
    background-color: #5a78b1;
}

/* File content copy button */
.file-content-copy {
    position: absolute;
    top: 20px;
    right: 12px;
    background-color: #7b9ed9;
    z-index: 20;
}

.file-content-copy:hover {
    background-color: #5a78b1;
}

li {
    margin: 12px 0 8px 0;
}

.description {
    font-style: italic;
    color: #646464;
}

.file-path {
    color: rgb(138, 140, 223);
    font-weight: 600;
    font-size: 1.1rem;
    padding-left: 4px;
}