/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6C63FF;
    --secondary-color: #4CAF50;
    --accent-color: #FF6B6B;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 5px 20px rgba(108, 99, 255, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color), #5a52d5);
    color: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo i {
    font-size: 2rem;
    background: white;
    color: var(--primary-color);
    padding: 0.5rem;
    border-radius: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-container input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-container input:focus {
    outline: none;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

/* Main Wrapper */
.main-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: white;
    padding: 2rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.sidebar-content {
    padding: 0;
}

.sidebar h3 {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    width: 24px;
}

.nav-item:hover {
    background-color: rgba(108, 99, 255, 0.05);
    border-left-color: var(--primary-color);
}

.nav-item.active {
    background-color: rgba(108, 99, 255, 0.1);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* Content Area */
.content {
    flex: 1;
    padding: 2rem;
    background: var(--light-bg);
}

.page-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Documentation Sections */
.doc-section {
    background: white;
    margin: 2rem 0;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.doc-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.doc-section h2 i {
    font-size: 2rem;
}

.doc-section h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 1.5rem 0 1rem;
}

.doc-section h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 1rem 0 0.75rem;
}

.doc-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #555;
}

.doc-section ul,
.doc-section ol {
    margin: 1rem 0 1rem 1.5rem;
    line-height: 1.8;
}

.doc-section li {
    margin-bottom: 0.5rem;
    color: #555;
}

.doc-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Content Blocks */
.content-block {
    margin: 1.5rem 0;
}

/* Image Placeholders */
.image-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin: 1.5rem 0;
    border: 2px dashed var(--border-color);
}

.image-placeholder i {
    font-size: 4rem;
    color: #999;
    margin-bottom: 1rem;
}

.image-placeholder p {
    color: #666;
    font-style: italic;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
}

thead {
    background: linear-gradient(135deg, var(--primary-color), #5a52d5);
    color: white;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

tbody tr:hover {
    background-color: rgba(108, 99, 255, 0.05);
}

/* Info Boxes */
.info-box,
.warning-box,
.tip-box {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.info-box {
    background: #e3f2fd;
    border-color: #2196F3;
}

.info-box h4 {
    color: #2196F3;
    margin-top: 0;
}

.warning-box {
    background: #fff3e0;
    border-color: #ff9800;
}

.warning-box h4 {
    color: #ff9800;
    margin-top: 0;
}

.tip-box {
    background: #e8f5e9;
    border-color: #4CAF50;
}

.tip-box h4 {
    color: #4CAF50;
    margin-top: 0;
}

/* Collapsible Sections */
.collapsible-section {
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.collapsible {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), #5a52d5);
    color: white;
    padding: 1.25rem 1.5rem;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.collapsible:hover {
    background: linear-gradient(135deg, #5a52d5, var(--primary-color));
}

.collapsible i {
    transition: transform 0.3s ease;
}

.collapsible.active i {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.collapsible-content.show {
    max-height: 5000px;
    padding: 1.5rem;
}

/* Code Blocks */
code {
    background: #f5f7fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e91e63;
    font-size: 0.9em;
}

pre {
    background: #282c34;
    color: #abb2bf;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Steps */
.step {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #5a52d5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h4 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Quick Links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.quick-link {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.quick-link i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.quick-link h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.25rem;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-success {
    background: var(--secondary-color);
    color: white;
}

.badge-warning {
    background: #ff9800;
    color: white;
}

.badge-info {
    background: #2196F3;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
    }

    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .search-container {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .header .logo h1 {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .doc-section {
        padding: 1.5rem;
    }

    .doc-section h2 {
        font-size: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 0 1rem;
    }

    .logo h1 {
        font-size: 1.25rem;
    }

    .doc-section {
        padding: 1rem;
    }

    .step {
        flex-direction: column;
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a52d5;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doc-section {
    animation: fadeIn 0.5s ease;
}

/* Print Styles */
@media print {
    .header,
    .sidebar,
    .search-container {
        display: none;
    }

    .content {
        padding: 0;
    }

    .doc-section {
        box-shadow: none;
        page-break-inside: avoid;
    }
}
