/* ==========================
   DOCUMENTATION PAGE STYLES
   ========================== */

.docs-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 20px;
}

/* Sidebar */
.docs-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.docs-nav h3 {
    font-size: 1.1rem;
    color: #667eea;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.docs-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-nav li {
    margin-bottom: 0.3rem;
}

.docs-nav a {
    display: block;
    color: #495057;
    text-decoration: none;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.docs-nav a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding-left: 1.3rem;
    transform: translateX(3px);
}

.docs-nav a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Main Content */
.docs-content {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    min-height: 80vh;
}

.docs-content h1 {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead {
    font-size: 1.3rem;
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.docs-content section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.docs-content h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #667eea, #764ba2) 1;
    font-weight: 700;
}

.docs-content h3 {
    font-size: 1.5rem;
    color: #495057;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.docs-content h4 {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 1.5rem 0 0.8rem;
    font-weight: 600;
}

.docs-content p {
    color: #495057;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.docs-content ul,
.docs-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #495057;
    line-height: 1.9;
}

.docs-content li {
    margin-bottom: 0.7rem;
}

.docs-content ul ul,
.docs-content ol ul,
.docs-content ul ol,
.docs-content ol ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Code Blocks */
.docs-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    color: #e83e8c;
    font-size: 0.9em;
    border: 1px solid #e9ecef;
}

.docs-content pre {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.docs-content pre code {
    background-color: transparent;
    color: #ecf0f1;
    padding: 0;
    border: none;
    font-size: 0.95em;
    line-height: 1.6;
}

.code-block {
    margin: 1.5rem 0;
}

/* Alert Boxes */
.alert {
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    border-left: 5px solid;
}

.alert-info {
    background: linear-gradient(135deg, #e7f0ff 0%, #f0f7ff 100%);
    border-left-color: #667eea;
    color: #2c5282;
}

.alert-warning {
    background: linear-gradient(135deg, #fff8e7 0%, #fffcf0 100%);
    border-left-color: #ffc107;
    color: #856404;
}

.alert-success {
    background: linear-gradient(135deg, #e7f8f0 0%, #f0fff7 100%);
    border-left-color: #28a745;
    color: #155724;
}

.alert strong {
    font-weight: 700;
}

.alert ul {
    margin: 0.5rem 0 0 1.5rem;
}

/* FAQ Section */
.faq-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.faq-item h3 {
    color: #667eea;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.faq-item p {
    margin-bottom: 0;
}

/* Solution Boxes */
.solution {
    background: linear-gradient(135deg, #f0fff7 0%, #e7f8f0 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 5px solid #28a745;
    margin: 1rem 0 2rem;
}

.solution strong {
    color: #155724;
    font-size: 1.1rem;
}

/* Support Section */
.support-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.support-box h3 {
    color: white;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.support-box p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
}

.support-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.support-info p {
    margin-bottom: 0.8rem;
}

.support-info strong {
    color: white;
    font-size: 1.1rem;
}

.support-info ul {
    margin: 1rem 0 0 1.5rem;
}

.support-info li {
    color: rgba(255, 255, 255, 0.95);
}

.support-box .alert-info {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: white;
    color: white;
}

.support-box .alert-info strong {
    color: white;
}

.support-box .alert-info li {
    color: rgba(255, 255, 255, 0.95);
}

/* Version Info */
.version-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    border: 2px dashed #dee2e6;
}

.version-info p {
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.version-info strong {
    color: #2c3e50;
}

/* Links */
.docs-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.docs-content a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.2rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

table td {
    padding: 1.2rem;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background-color: #f8f9fa;
}

/* Ordered Lists with Numbers */
.docs-content ol {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
}

.docs-content ol > li {
    counter-increment: item;
    position: relative;
    padding-left: 2.5rem;
}

.docs-content ol > li:before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Nested lists reset */
.docs-content ol ol,
.docs-content ul ol {
    counter-reset: none;
    list-style-type: decimal;
    padding-left: 1.5rem;
}

.docs-content ol ol > li:before,
.docs-content ul ol > li:before {
    display: none;
}

/* Screenshot */
.screenshot-doc {
    margin: 2.5rem 0;
    text-align: center;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.screenshot-doc img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.screenshot-doc img:hover {
    transform: scale(1.02);
}

.screenshot-doc p {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #6c757d;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .docs-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .docs-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .docs-content {
        padding: 2rem;
    }

    .docs-content h1 {
        font-size: 2.2rem;
    }

    .docs-content h2 {
        font-size: 1.7rem;
    }

    .docs-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .docs-container {
        padding: 1.5rem 15px;
    }

    .docs-content {
        padding: 1.5rem;
    }

    .docs-content h1 {
        font-size: 1.8rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .support-box {
        padding: 2rem;
    }

    .docs-content ol > li {
        padding-left: 2rem;
    }

    .docs-content ol > li:before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.8rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: #667eea;
    color: white;
}

::-moz-selection {
    background: #667eea;
    color: white;
}
