body {
    margin: 0;
    padding: 0;
    background-color: #0f0c08;
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

nav {
    background-color: #120e09;
    border-bottom: 2px solid #2a1f0d;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 60px;
}

.uex-logo {
    width: 44px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 179, 71, 0.3));
}

.logo-text {
    font-size: 2rem;
    font-weight: 600;
    color: #ffb347;
    letter-spacing: 0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffb347;
}

main {
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.highlight {
    color: #ffb347;
}

p {
    font-size: 1.25rem;
    max-width: 650px;
    color: #a0a0a0;
    margin-bottom: 40px;
}

.cta-group {
    display: flex;
    gap: 15px;
    margin-bottom: 80px;
}

.btn-primary {
    background-color: #ffb347;
    color: #000;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: transform 0.2s;
}

.btn-secondary {
    border: 1px solid #ffb347;
    color: #ffb347;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: #ffc470;
}

.btn-secondary:hover {
    background: rgba(255, 179, 71, 0.1);
}

.code-preview {
    background: #000000;
    border: 1px solid #2a1f0d;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 800px;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

code {
    color: #ffb347;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1.1rem;
    line-height: 1.8;
}
.docs-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 260px;
    background-color: #0c0a07;
    border-right: 1px solid #2a1f0d;
    padding: 30px 20px;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar-section h3 {
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.sidebar ul li a {
    display: block;
    padding: 8px 0;
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.sidebar ul li a:hover, 
.sidebar ul li a.active {
    color: #ffb347;
}

.docs-content {
    flex: 1;
    padding: 60px 10%;
    max-width: 1000px;
}

.docs-img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.docs-link {
    color: #ffb347;
    text-decoration: underline;
}

#loader {
    display: none;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 179, 71, 0.1);
    border-radius: 50%;
    border-top-color: #ffb347;
    animation: spin 1s ease-in-out infinite;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-404 {
    text-align: center;
    padding: 100px 20px;
}

.error-404 h1 {
    font-size: 8rem;
    color: #ffb347;
    margin: 0;
    line-height: 1;
}

.error-404 p {
    font-size: 1.5rem;
    color: #888;
}

.error-404 .btn-primary {
    display: inline-block;
    margin-top: 30px;
}