/* Documentation Styles */
.docs-container {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.docs-sidebar {
    width: 300px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    left: 0;
    top: 80px;
    bottom: 0;
    overflow-y: auto;
    padding: 2rem 1.5rem;
    z-index: 100;
}

.sidebar-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--dark-text);
    font-size: 0.9rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-muted);
}

.menu-section {
    margin-bottom: 2rem;
}

.menu-section h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.menu-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-section li {
    margin-bottom: 0.5rem;
}

.menu-section a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--dark-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.menu-section a i {
    width: 20px;
    margin-right: 10px;
    font-size: 0.9rem;
}

.menu-section a:hover,
.menu-section a.active {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.docs-content {
    flex: 1;
    margin-left: 300px;
    padding: 3rem;
    max-width: 1200px;
}

.docs-hero {
    margin-bottom: 3rem;
}

.docs-hero h1 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

.stat-label {
    color: var(--dark-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-links {
    margin-bottom: 3rem;
}

.quick-link {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-link:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: rgba(67, 97, 238, 0.05);
}

.link-icon {
    width: 60px;
    height: 60px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.quick-link h6 {
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.quick-link p {
    color: var(--dark-muted);
    margin: 0;
}

.docs-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(67, 97, 238, 0.3);
}

.feature-highlights {
    margin: 2rem 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--dark-muted);
    font-size: 0.9rem;
    margin: 0;
}

.info-box {
    background: rgba(67, 97, 238, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
    margin: 2rem 0;
}

.info-box h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.info-box li {
    margin-bottom: 0.5rem;
    color: var(--dark-muted);
}

.steps {
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--dark-muted);
    margin-bottom: 1rem;
}

pre[class*="language-"] {
    background: rgba(15, 23, 42, 0.8) !important;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.code-block {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

.code-block code {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.status-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    height: 100%;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status-indicator.online i {
    color: #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.endpoints-table {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.endpoint {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.endpoint:last-child {
    border-bottom: none;
}

.endpoint-method {
    width: 80px;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-right: 1rem;
}

.endpoint-method.get {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.endpoint-method.post {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.endpoint-method.put {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.endpoint-path {
    flex: 1;
    font-family: 'Monaco', 'Menlo', monospace;
    color: var(--dark-text);
}

.endpoint-desc {
    color: var(--dark-muted);
    margin-right: 1rem;
}

.examples-tabs .nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.examples-tabs .nav-link {
    background: transparent;
    border: none;
    color: var(--dark-muted);
    padding: 0.75rem 1.5rem;
    border-radius: 10px 10px 0 0;
}

.examples-tabs .nav-link.active {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 10px 10px 10px;
    padding: 1.5rem;
}

.feedback-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feedback-card {
    background: rgba(67, 97, 238, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.feedback-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.feedback-btn {
    min-width: 100px;
}

/* Light Mode Styles */
.light-mode .docs-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.light-mode .docs-sidebar {
    background: rgba(255, 255, 255, 0.95);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.light-mode .sidebar-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.light-mode .search-box input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--light-text);
}

.light-mode .menu-section a {
    color: var(--light-muted);
}

.light-mode .menu-section a:hover,
.light-mode .menu-section a.active {
    background: rgba(67, 97, 238, 0.1);
}

.light-mode .quick-link {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .quick-link:hover {
    background: rgba(67, 97, 238, 0.05);
}

.light-mode .feature-card,
.light-mode .status-card,
.light-mode .feedback-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .info-box {
    background: rgba(67, 97, 238, 0.05);
}

.light-mode .endpoints-table {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .endpoint {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.light-mode .examples-tabs .nav-tabs {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.light-mode .tab-content {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 1200px) {
    .docs-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .docs-sidebar.active {
        transform: translateX(0);
    }
    
    .docs-content {
        margin-left: 0;
        padding: 2rem;
    }
    
    .sidebar-toggle {
        position: fixed;
        top: 100px;
        left: 20px;
        z-index: 999;
        background: var(--primary-color);
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    }
}

@media (max-width: 768px) {
    .docs-content {
        padding: 1.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .endpoint {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}