/* Documentation Styles */
:root {
    --doc-sidebar-width: 280px;
    --doc-text-color: #f0f0f0;
    --doc-heading-color: #ffffff;
    --doc-link-color: #ff3e8c;
    --doc-code-bg: #252536;
    --doc-alert-info-bg: rgba(23, 162, 184, 0.15);
    --doc-alert-warning-bg: rgba(255, 193, 7, 0.15);
    --doc-alert-success-bg: rgba(40, 167, 69, 0.15);
    --doc-alert-danger-bg: rgba(220, 53, 69, 0.15);
    --doc-alert-tip-bg: rgba(255, 62, 140, 0.15);
    --doc-sidebar-bg: #1e1e2d;
    --doc-content-bg: #151521;
    --doc-border-color: #2d2d3f;
    --doc-table-header-bg: #252536;
    --doc-table-row-bg: #1e1e2d;
}

/* Documentation Section */
.documentation-section {
    padding: 100px 0 60px;
    background-color: var(--bg-light);
    min-height: calc(100vh - 60px);
}

.documentation-container {
    display: flex;
    background-color: var(--doc-content-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

/* Documentation Sidebar */
.documentation-sidebar {
    width: var(--doc-sidebar-width);
    background-color: var(--doc-sidebar-bg);
    border-right: 1px solid var(--doc-border-color);
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    padding-bottom: 30px;
    transition: all 0.3s ease;
    z-index: 10;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--doc-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--doc-heading-color);
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--doc-text-color);
    cursor: pointer;
}

.search-box {
    padding: 15px 20px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid var(--doc-border-color);
    border-radius: 5px;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--doc-text-color);
}

.search-box i {
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.documentation-nav {
    padding: 0 10px;
}

.nav-group {
    margin-bottom: 20px;
}

.nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    padding: 10px;
    margin: 0;
    text-transform: uppercase;
}

.documentation-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.documentation-nav li {
    margin-bottom: 2px;
}

.documentation-nav a {
    display: block;
    padding: 8px 15px;
    color: var(--doc-text-color);
    font-size: 14px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.documentation-nav a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
}

.documentation-nav a.active {
    background-color: var(--primary-color);
    color: white;
}

/* Documentation Content */
.documentation-content {
    flex: 1;
    padding: 30px 40px;
    max-width: 100%;
    overflow-x: hidden;
}

.doc-section {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
}

.doc-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--doc-border-color);
}

.doc-header h1 {
    font-size: 32px;
    color: var(--doc-heading-color);
    margin-bottom: 10px;
}

.doc-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.doc-content h2 {
    font-size: 24px;
    color: var(--doc-heading-color);
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--doc-border-color);
}

.doc-content h3 {
    font-size: 20px;
    color: var(--doc-heading-color);
    margin: 25px 0 15px;
}

.doc-content h4 {
    font-size: 18px;
    color: var(--doc-heading-color);
    margin: 20px 0 10px;
}

.doc-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.doc-content a {
    color: var(--doc-link-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.doc-content a:hover {
    text-decoration: underline;
}

.doc-content code {
    background-color: var(--doc-code-bg);
    padding: 2px 5px;
    border-radius: 3px;
    font-family: "Courier New", monospace;
    font-size: 0.9em;
    color: var(--primary-color);
}

.doc-content pre {
    margin: 15px 0;
    border-radius: 5px;
    overflow: hidden;
}

.doc-content pre code {
    padding: 15px;
    background-color: #282c34;
    color: #abb2bf;
    font-family: "Courier New", monospace;
    font-size: 14px;
    line-height: 1.5;
    display: block;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
}

/* Documentation Lists */
.doc-list {
    padding-right: 20px;
    margin-bottom: 20px;
}

.doc-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Documentation Alerts */
.doc-alert {
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.doc-alert i {
    font-size: 20px;
    margin-top: 2px;
}

.doc-alert p {
    margin: 0;
}

.doc-alert strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.doc-alert-info {
    background-color: var(--doc-alert-info-bg);
    border-right: 4px solid #17a2b8;
}

.doc-alert-info i {
    color: #17a2b8;
}

.doc-alert-warning {
    background-color: var(--doc-alert-warning-bg);
    border-right: 4px solid #ffc107;
}

.doc-alert-warning i {
    color: #ffc107;
}

.doc-alert-success {
    background-color: var(--doc-alert-success-bg);
    border-right: 4px solid #28a745;
}

.doc-alert-success i {
    color: #28a745;
}

.doc-alert-danger {
    background-color: var(--doc-alert-danger-bg);
    border-right: 4px solid #dc3545;
}

.doc-alert-danger i {
    color: #dc3545;
}

.doc-alert-tip {
    background-color: var(--doc-alert-tip-bg);
    border-right: 4px solid #ff3e8c;
}

.doc-alert-tip i {
    color: #ff3e8c;
}

/* Documentation Steps */
.doc-steps {
    margin: 25px 0;
}

.doc-step {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.step-number {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-top: 0;
    margin-bottom: 8px;
}

/* Documentation Tables */
.doc-table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--doc-border-color);
}

.doc-table th,
.doc-table td {
    padding: 12px 15px;
    text-align: right;
    border: 1px solid var(--doc-border-color);
}

.doc-table th {
    background-color: var(--doc-table-header-bg);
    font-weight: 600;
    color: var(--doc-heading-color);
}

.doc-table tr:nth-child(even) {
    background-color: var(--doc-table-row-bg);
}

/* Code Tabs */
.code-tabs {
    margin: 20px 0;
    border: 1px solid var(--doc-border-color);
    border-radius: 5px;
    overflow: hidden;
}

.code-tabs-header {
    display: flex;
    background-color: var(--doc-table-header-bg);
    border-bottom: 1px solid var(--doc-border-color);
}

.code-tab {
    padding: 10px 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--doc-text-color);
    transition: all 0.2s ease;
}

.code-tab:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.code-tab.active {
    background-color: var(--doc-content-bg);
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.code-tab-pane {
    display: none;
}

.code-tab-pane.active {
    display: block;
}

.code-tab-pane pre {
    margin: 0;
    border-radius: 0;
}

/* Code Examples */
.code-example {
    margin: 20px 0;
    border: 1px solid var(--doc-border-color);
    border-radius: 5px;
    overflow: hidden;
}

.code-example-request,
.code-example-response {
    padding: 15px;
}

.code-example-request {
    background-color: var(--doc-table-header-bg);
    border-bottom: 1px solid var(--doc-border-color);
}

.code-example-request h4,
.code-example-response h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

/* API Endpoints */
.endpoints {
    margin: 20px 0;
}

.endpoint {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.endpoint-method {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    background-color: #4caf50;
    margin-left: 10px;
}

.endpoint-method:contains("GET") {
    background-color: #2196F3;
}

.endpoint-method:contains("POST") {
    background-color: #4CAF50;
}

.endpoint-method:contains("PUT") {
    background-color: #FF9800;
}

.endpoint-method:contains("DELETE") {
    background-color: #F44336;
}

.endpoint-path {
    font-family: "Courier New", monospace;
    font-size: 14px;
    direction: ltr;
    text-align: left;
}

.endpoint-description {
    color: var(--text-light);
    font-size: 14px;
    margin-right: 10px;
    margin-bottom: 15px;
}

/* Support Options */
.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.support-option {
    background-color: var(--card-bg);
    border: 1px solid var(--doc-border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.support-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.support-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.support-option h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.support-option p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.support-option a {
    color: var(--primary-color);
    font-weight: 500;
}

.support-option a.btn {
    display: inline-block;
    margin-top: 5px;
}

/* Terms Section Styles */
.terms-section {
    padding: 100px 0 60px;
    background-color: var(--bg-light);
    min-height: calc(100vh - 60px);
}

.terms-container {
    display: flex;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.terms-sidebar {
    width: 280px;
    background-color: var(--doc-sidebar-bg);
    border-right: 1px solid var(--doc-border-color);
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 30px 0;
    z-index: 10;
}

.terms-nav {
    padding: 0 20px;
}

.terms-nav h3 {
    font-size: 18px;
    color: var(--doc-heading-color);
    margin-bottom: 20px;
}

.terms-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-nav li {
    margin-bottom: 10px;
}

.terms-nav a {
    display: block;
    padding: 8px 15px;
    color: var(--doc-text-color);
    font-size: 14px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.terms-nav a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
}

.terms-content {
    flex: 1;
    padding: 40px;
    max-width: 100%;
}

.terms-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--doc-border-color);
}

.terms-header h1 {
    font-size: 28px;
    color: var(--doc-heading-color);
    margin-bottom: 10px;
}

.terms-updated {
    color: var(--text-light);
    font-size: 14px;
}

.terms-section-content {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

.terms-section-content h2 {
    font-size: 22px;
    color: var(--doc-heading-color);
    margin-bottom: 20px;
}

.terms-section-content h3 {
    font-size: 18px;
    color: var(--doc-heading-color);
    margin: 20px 0 15px;
}

.terms-section-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.terms-list {
    padding-right: 20px;
    margin-bottom: 20px;
}

.terms-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.terms-alert {
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    background-color: rgba(255, 255, 255, 0.05);
    border-right: 4px solid var(--primary-color);
    display: flex;
    gap: 15px;
}

.terms-alert i {
    color: var(--primary-color);
    font-size: 20px;
    margin-top: 2px;
}

.terms-alert p {
    margin: 0;
}

.terms-alert-warning {
    background-color: var(--doc-alert-warning-bg);
    border-right-color: #ffc107;
}

.terms-alert-warning i {
    color: #ffc107;
}

.terms-alert-info {
    background-color: var(--doc-alert-info-bg);
    border-right-color: #17a2b8;
}

.terms-alert-info i {
    color: #17a2b8;
}

.terms-code-example {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
}

.terms-code-example h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
}

.terms-code-example pre {
    margin: 0;
    background-color: #282c34;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
}

.terms-code-example code {
    color: #abb2bf;
    font-family: "Courier New", monospace;
    font-size: 14px;
    line-height: 1.5;
}

.contact-info {
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contact-item p {
    margin: 0;
}

/* English Documentation Styles */
.english-doc {
    direction: ltr;
    text-align: left;
}

.english-doc .doc-list {
    padding-left: 20px;
    padding-right: 0;
}

.english-doc .doc-alert {
    border-right: none;
    border-left: 4px solid;
}

.english-doc .doc-alert-info {
    border-left-color: #17a2b8;
}

.english-doc .doc-alert-warning {
    border-left-color: #ffc107;
}

.english-doc .doc-alert-success {
    border-left-color: #28a745;
}

.english-doc .doc-alert-danger {
    border-left-color: #dc3545;
}

.english-doc .doc-alert-tip {
    border-left-color: #ff3e8c;
}

.english-doc .doc-table th,
.english-doc .doc-table td {
    text-align: left;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .documentation-container,
    .terms-container {
        flex-direction: column;
    }

    .documentation-sidebar,
    .terms-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid var(--doc-border-color);
        padding: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .documentation-nav,
    .terms-nav {
        display: none;
    }

    .documentation-sidebar.active .documentation-nav,
    .terms-sidebar.active .terms-nav {
        display: block;
        padding-bottom: 20px;
    }

    .documentation-content,
    .terms-content {
        padding: 30px 20px;
    }

    .support-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .doc-header h1 {
        font-size: 26px;
    }

    .doc-content h2 {
        font-size: 22px;
    }

    .doc-content h3 {
        font-size: 18px;
    }

    .terms-header h1 {
        font-size: 24px;
    }

    .code-tabs-header {
        flex-wrap: wrap;
    }

    .code-tab {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .documentation-section,
    .terms-section {
        padding: 80px 0 40px;
    }

    .doc-step {
        flex-direction: column;
        gap: 10px;
    }

    .step-number {
        margin-bottom: 5px;
    }
}

