/* Custom background for the documentation */
.wy-nav-content-wrap {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8e8e8 100%);
}

/* Main content area */
.wy-nav-content {
    background: rgba(255, 255, 255, 0.95);
    margin: 1.618em auto;
    max-width: 1000px;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Sidebar and top navigation */
.wy-side-nav-search, .wy-nav-top {
    background: #6C0BA9;
}

/* Sidebar background */
.wy-nav-side {
    background: #343131;
}

/* Center headings */
.center h1,
.center h2 {
    text-align: center;
}

/* Add subtle pattern overlay */
.wy-nav-content-wrap::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236C0BA9' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* Improve readability of code blocks */
.rst-content pre.literal-block,
.rst-content div[class^='highlight'] {
    background: #f8f8f8;
    border: 1px solid #e1e4e5;
    border-radius: 4px;
}

/* Style links to match theme */
a {
    color: #6C0BA9;
}

a:hover {
    color: #8A2BE2;
}