:root {
    --primary-color: #0a0a0a;
    /* Luxury Black */
    --accent-color: #C9A962;
    /* Luxury Gold */
    --accent-hover: #b09048;
    --text-color: #334155;
    --bg-color: #f8fafc;
    --sidebar-width: 280px;
    --header-height: 70px;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

/* Typography Overrides */
h1.page-title,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
}

/* Sidebar */
.docs-sidebar {
    width: var(--sidebar-width);
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1000;
}

.brand-logo {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid #f1f5f9;
}

.menu-group {
    padding: 24px 0;
}

.menu-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
    padding: 0 24px 12px;
    letter-spacing: 0.05em;
}

.nav-item {
    display: block;
    padding: 10px 24px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    color: var(--primary-color);
    background: #f8fafc;
}

.nav-item.active {
    color: var(--accent-color);
    background: #f0f9ff;
    border-left-color: var(--accent-color);
    font-weight: 500;
}

.nav-icon {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: var(--accent-color);
}

/* Main Content */
.main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-header {
    height: var(--header-height);
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.search-container {
    position: relative;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #f8fafc;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #fff;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.header-actions .btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: #1e293b;
}

.content-area {
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.doc-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

h1.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 40px;
    max-width: 600px;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 30px 0 16px;
}

p {
    margin-bottom: 16px;
    color: #475569;
}

/* Core Attributes */
.core-attributes {
    margin: 20px 0 40px;
}

.core-attributes ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 16px;
}

.core-attributes li {
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.2s ease;
}

.core-attributes li:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.core-attributes li i {
    font-size: 1.1rem;
    margin-top: 3px;
}

.core-attributes li strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 4px;
}

/* Dashboard Grid */
.admin-dashboard-grid {
    margin: 30px 0;
}

.admin-dashboard-grid h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.feature-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border-color: rgba(201, 169, 98, 0.3);
}

.feature-icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #0a0a0a 0%, #2a2a2a 100%);
    color: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Code Blocks */
pre {
    background: #1e293b;
    color: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    margin: 24px 0;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 24px 0;
    border-left: 4px solid;
    display: flex;
    gap: 12px;
}

.alert-info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.alert-warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

/* Footer */
footer {
    padding: 40px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    background: #fff;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .docs-sidebar.show {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0;
    }

    .toggle-menu {
        display: block;
        margin-right: 16px;
        cursor: pointer;
    }
}