/* Docs Layout Styles */

/* Header */
.docs-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.docs-logo {
    font-size: 20px;
    font-weight: 600;
    color: #1976d2;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.docs-logo:hover {
    color: #1565c0;
}

.docs-sidebar-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #374151;
}

.docs-sidebar-toggle:hover {
    background: #f3f4f6;
    border-radius: 8px;
}

/* Wrapper */
.docs-wrapper {
    display: flex;
    padding-top: 60px;
    min-height: 100vh;
}

/* Sidebar */
.docs-sidebar {
    width: 280px;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 24px 16px;
}

.docs-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-nav-section {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 12px 8px;
    margin-top: 8px;
}

.docs-nav-section:first-child {
    margin-top: 0;
    padding-top: 0;
}

.docs-nav-item {
    margin-bottom: 2px;
}

.docs-nav-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.docs-nav-link .material-symbols-outlined {
    font-size: 20px;
    margin-right: 10px;
    color: #6b7280;
}

.docs-nav-link:hover {
    background: #e5e7eb;
    color: #111827;
}

.docs-nav-link.active {
    background: #1976d2;
    color: #fff;
}

.docs-nav-link.active .material-symbols-outlined {
    color: #fff;
}

/* Main content */
.docs-content {
    flex: 1;
    margin-left: 280px;
    min-width: 0;
}

.docs-content-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 32px;
}

/* Typography */
.docs-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    line-height: 1.2;
}

.docs-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.docs-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-top: 32px;
    margin-bottom: 12px;
}

.docs-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 16px;
}

.docs-content ul,
.docs-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.docs-content li {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 8px;
}

/* Lead text */
.docs-lead {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 32px;
}

/* Cards */
.docs-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.docs-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.docs-card-title .material-symbols-outlined {
    font-size: 20px;
    margin-right: 8px;
    color: #1976d2;
}

/* Info boxes */
.docs-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.docs-info-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.docs-info-title .material-symbols-outlined {
    font-size: 18px;
    margin-right: 6px;
}

.docs-info p {
    font-size: 14px;
    color: #1e40af;
    margin-bottom: 0;
}

.docs-warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.docs-warning-title {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.docs-warning-title .material-symbols-outlined {
    font-size: 18px;
    margin-right: 6px;
}

.docs-warning p {
    font-size: 14px;
    color: #92400e;
    margin-bottom: 0;
}

/* Screenshots */
.docs-screenshot {
    margin: 24px 0;
    text-align: center;
}

.docs-screenshot img {
    max-width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.docs-screenshot-caption {
    font-size: 14px;
    color: #6b7280;
    margin-top: 12px;
}

/* Screenshot placeholder */
.docs-screenshot-placeholder {
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px 24px;
    margin: 24px 0;
    text-align: center;
}

.docs-screenshot-placeholder .material-symbols-outlined {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.docs-screenshot-placeholder-text {
    font-size: 14px;
    color: #6b7280;
}

.docs-screenshot-placeholder-filename {
    font-size: 12px;
    color: #9ca3af;
    font-family: monospace;
    margin-top: 8px;
}

/* Tables */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.docs-table th,
.docs-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.docs-table th {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    background: #f9fafb;
}

.docs-table td {
    font-size: 14px;
    color: #374151;
}

/* Steps */
.docs-steps {
    counter-reset: step;
    margin-bottom: 24px;
}

.docs-step {
    position: relative;
    padding-left: 48px;
    margin-bottom: 24px;
}

.docs-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: #1976d2;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.docs-step-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.docs-step-content {
    font-size: 15px;
    color: #374151;
    line-height: 1.6;
}

/* Navigation cards (for index page) */
.docs-nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.docs-nav-card {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.docs-nav-card:hover {
    border-color: #1976d2;
    box-shadow: 0 4px 6px -1px rgba(25, 118, 210, 0.1);
}

.docs-nav-card-icon {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.docs-nav-card-icon .material-symbols-outlined {
    font-size: 22px;
    color: #1976d2;
}

.docs-nav-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.docs-nav-card-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 991.98px) {
    .docs-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        transform: translateX(-100%);
        z-index: 1050;
        padding-top: 0;
    }

    .docs-sidebar.show {
        transform: translateX(0);
    }

    .docs-content {
        margin-left: 0;
    }

    .docs-content-inner {
        padding: 24px 16px;
    }
}

@media (max-width: 575.98px) {
    .docs-header {
        padding: 0 16px;
    }

    .docs-content h1 {
        font-size: 26px;
    }

    .docs-content h2 {
        font-size: 20px;
    }

    .docs-nav-cards {
        grid-template-columns: 1fr;
    }
}
