:root {
    --primary-bg: #121826;
    --sidebar-bg: #0e1420;
    --card-bg: #1e293b;
    --accent-purple: #8a5cf6;
    --accent-pink: #ec4899;
    --accent-red: #ef4444;
    --accent-blue: #3b82f6;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --gradient-primary: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    --gradient-secondary: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    --gradient-tertiary: linear-gradient(135deg, var(--accent-pink), var(--accent-red));
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition-standard: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-light);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Layout */
.page-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: var(--transition-standard);
    z-index: 100;
    box-shadow: var(--shadow-md);
    border-right: 1px solid var(--border-color);
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-section {
    margin-bottom: 15px;
}

.menu-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.menu-items {
    list-style: none;
}

.menu-item {
    position: relative;
}

.menu-item a {
    display: block;
    padding: 10px 20px;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-standard);
    font-size: 0.9rem;
}

.menu-item a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 25px;
}

.menu-item.active a {
    background-color: rgba(138, 92, 246, 0.1);
    border-left: 3px solid var(--accent-purple);
    font-weight: 500;
}

.menu-item a i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

.content-area {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
    transition: var(--transition-standard);
}

/* Header */
.hero-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--gradient-secondary);
    opacity: 0.1;
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-standard);
    cursor: pointer;
    border: none;
    outline: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 6px rgba(138, 92, 246, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(138, 92, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn i {
    margin-left: 8px;
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-standard);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.card-title i {
    margin-right: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* API Endpoints */
.endpoint {
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.endpoint-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
}

.endpoint-method {
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    margin-right: 12px;
    background-color: var(--accent-blue);
    color: white;
    width: 60px;
    text-align: center;
    text-transform: uppercase;
}

.endpoint-path {
    font-family: monospace;
    font-size: 1rem;
    color: var(--text-light);
    flex: 1;
}

.endpoint-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-standard);
}

.endpoint-toggle.open {
    transform: rotate(180deg);
}

.endpoint-content {
    display: none;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.endpoint-content.open {
    display: block;
}

.endpoint-description {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.endpoint-section {
    margin-bottom: 20px;
}

.endpoint-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-light);
}

/* Parameters Table */
.params-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.params-table th,
.params-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.params-table th {
    font-weight: 600;
    color: var(--text-light);
    background-color: rgba(0, 0, 0, 0.2);
}

.params-table td {
    color: var(--text-muted);
}

.param-name {
    font-family: monospace;
    color: var(--accent-blue);
}

.param-required {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    background-color: var(--accent-red);
    color: white;
    margin-left: 6px;
}

.param-optional {
    display: inline-block;
    padding: 2px 6px;
    border-radius: h4px;
    font-size: 0.7rem;
    font-weight: 600;
    background-color: var(--text-muted);
    color: white;
    margin-left: 6px;
}

/* Code Examples */
.code-block {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-language {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.copy-btn {
    background-color: transparent;
    color: var(--text-muted);
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition-standard);
}

.copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.copy-btn i {
    margin-right: 5px;
}

code {
    font-family: 'Fira Code', 'Consolas', monospace;
    display: block;
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.tab {
    padding: 10px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: var(--transition-standard);
}

.tab:hover {
    color: var(--text-light);
}

.tab.active {
    color: var(--accent-purple);
    border-bottom: 2px solid var(--accent-purple);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Response Examples */
.response-block {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.response-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.response-status {
    display: inline-block;
    padding: 4px 8px;
    margin-right: 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-success {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-error {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Mobile menu */
.mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: var(--sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    box-shadow: var(--shadow-md);
}

.mobile-logo {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.menu-toggle {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

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

    .sidebar.open {
        transform: translateX(0);
    }

    .content-area {
        margin-left: 0;
        padding: 20px;
        margin-top: 60px;
    }

    .mobile-header {
        display: flex;
    }

    .hero-section {
        padding: 30px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .endpoint-header {
        flex-wrap: wrap;
    }

    .endpoint-method {
        margin-bottom: 10px;
    }

    .tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Utility Classes */
.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
}

.badge-purple {
    background-color: rgba(138, 92, 246, 0.2);
    color: var(--accent-purple);
}

.badge-blue {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
}

.badge-pink {
    background-color: rgba(236, 72, 153, 0.2);
    color: var(--accent-pink);
}

/* Overlay for mobile menu */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 90;
}

.overlay.open {
    display: block;
}

/* Loading Animations */
.api-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.api-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    transition: var(--transition-standard);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.api-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-purple);
}

.api-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    background: var(--gradient-primary);
}

.api-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.api-card-description {
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
}

.api-card-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--accent-purple);
    font-weight: 500;
    font-size: 0.9rem;
}

.api-card-link i {
    margin-left: 6px;
    transition: var(--transition-standard);
}

.api-card-link:hover i {
    transform: translateX(3px);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.section-description {
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 800px;
}

/* Dashboard Card */
.dashboard-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-card-content {
    flex: 1;
}

.dashboard-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.dashboard-card-description {
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 600px;
}

.dashboard-card-image {
    width: 150px;
    height: 150px;
    background: var(--gradient-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-left: 20px;
}

@media (max-width: 768px) {
    .dashboard-card {
        flex-direction: column;
    }

    .dashboard-card-image {
        margin-left: 0;
        margin-top: 20px;
    }

    .api-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-standard);
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Version badge */
.version-badge {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 10px;
}