/* Documentation Specific Styles */

/* Base Layout */
.docs-body {
    background-color: var(--body-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.docs-main {
    flex: 1;
    padding: 2rem 0;
}

.docs-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    padding: 0 1rem;
}

/* Sidebar */
.docs-sidebar {
    width: 280px;
    flex-shrink: 0;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.docs-nav {
    padding: 1rem 0;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section h3 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary-color);
    padding: 0 1.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

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

.nav-section li {
    margin: 0;
}

.nav-section a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-section a:hover {
    color: var(--primary-color);
    background-color: rgba(0, 212, 170, 0.1);
    font-weight: 500;
}

.nav-section a.active {
    color: var(--primary-color);
    background-color: rgba(0, 212, 170, 0.15);
    border-left: 3px solid var(--primary-color);
    font-weight: 600;
}

/* Main Content */
.docs-content {
    flex: 1;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
}

.docs-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.docs-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.docs-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.docs-meta span {
    display: flex;
    align-items: center;
}

.docs-meta i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.docs-section {
    margin-bottom: 3rem;
}

.docs-section:last-child {
    margin-bottom: 0;
}

.docs-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.docs-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    border-radius: 3px;
}

.docs-section h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.75rem 0 1rem;
}

.docs-section h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

.docs-section p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.docs-section p.lead {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.docs-section ul, .docs-section ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.docs-section li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.docs-section code {
    font-family: var(--font-family);
    background: var(--dark-elevated);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--primary-color);
    word-break: break-all;
    max-width: 100%;
    overflow-wrap: break-word;
    border: 1px solid var(--border-color);
}

.docs-section pre {
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    position: relative;
    max-width: 100%;
    word-break: break-all;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.docs-section pre code {
    background: transparent;
    padding: 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    border: none;
}

/* Special handling for JWT tokens */
.docs-section code.jwt-token, 
.docs-section pre code.jwt-token {
    word-break: break-all;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
    font-size: 0.85rem;
}

/* Attack steps styling */
.attack-steps {
    margin: 2rem 0;
}

.attack-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(0, 212, 170, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content p {
    margin: 0;
    line-height: 1.6;
}

/* Attack techniques grid */
.attack-techniques {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.attack-technique {
    padding: 1.5rem;
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--box-shadow);
}

.attack-technique:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.attack-technique h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.attack-technique h3 i {
    margin-right: 0.75rem;
    color: var(--danger-color);
}

.attack-technique p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Algorithm categories */
.algorithm-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.algorithm-category {
    padding: 1.5rem;
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.algorithm-category h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.algorithm-category h3 i {
    margin-right: 0.5rem;
}

/* Comparison cards */
.comparison-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.comparison-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    text-align: center;
}

.card-header i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.card-content {
    padding: 1.5rem;
}

.card-content p {
    margin: 0;
    line-height: 1.6;
}

/* Claim types */
.claim-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.claim-type {
    padding: 1.5rem;
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.claim-type h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.claim-type h3 i {
    margin-right: 0.75rem;
}

/* Pros and cons layout */
.pros-cons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.pros, .cons {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.pros {
    background-color: rgba(16, 185, 129, 0.05);
    border-left: 4px solid var(--success-color);
}

.cons {
    background-color: rgba(239, 68, 68, 0.05);
    border-left: 4px solid var(--danger-color);
}

.pros h4, .cons h4 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.pros h4 i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

.cons h4 i {
    color: var(--danger-color);
    margin-right: 0.5rem;
}

/* Tool links */
.tool-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tool-link {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.tool-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
    text-decoration: none;
    color: inherit;
}

.tool-link i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.tool-link h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.tool-link p {
    margin: 0;
    color: var(--text-secondary);
}

/* Claim examples and usage tips */
.claim-examples, .usage-tips {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background-color: rgba(0, 212, 170, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.claim-examples h4, .usage-tips h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.claim-examples pre {
    margin-bottom: 0;
}

.usage-tips ul {
    margin: 0;
}

/* Method cards for tool guides */
.method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.method-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.2s ease;
}

.method-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.method-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.method-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 0.75rem;
}

.method-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.method-card ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.method-card li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.method-card p {
    margin: 0.75rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.method-card p:last-child {
    margin-bottom: 0;
}

/* Claim buttons demo for JWT Generator */
.claim-buttons-demo {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: rgba(0, 212, 170, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.claim-button-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.claim-button-group:last-child {
    margin-bottom: 0;
}

.claim-btn-demo {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    min-width: 60px;
    transition: all 0.2s ease;
}

.claim-btn-demo:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.claim-button-group span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex: 1;
}

/* Signature options cards */
.signature-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.option-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}

.option-card h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.option-card p {
    margin: 0.75rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.option-card ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.option-card li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* FAQ items */
.faq-item {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.faq-item h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.faq-item p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Progress bars for tool guides */
.progress-container {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: rgba(0, 212, 170, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Step indicators */
.step-indicator {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    padding: 1rem;
    background-color: rgba(0, 212, 170, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Warning and info boxes */
.warning-box, .info-box {
    display: flex;
    align-items: flex-start;
    margin: 1.5rem 0;
    padding: 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.warning-box {
    background-color: rgba(245, 158, 11, 0.05);
    border-left: 4px solid var(--warning-color);
}

.info-box {
    background-color: rgba(6, 182, 212, 0.05);
    border-left: 4px solid var(--info-color);
}

.warning-icon, .info-icon {
    margin-right: 1rem;
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.warning-icon {
    color: var(--warning-color);
}

.info-icon {
    color: var(--info-color);
}

.warning-content, .info-content {
    flex: 1;
}

.warning-content p, .info-content p {
    margin: 0;
    line-height: 1.6;
}

/* Security level indicators */
.security-low {
    color: var(--danger-color);
    font-weight: 600;
}

.security-medium {
    color: var(--warning-color);
    font-weight: 600;
}

.security-high {
    color: var(--success-color);
    font-weight: 600;
}

/* Text color utilities */
.text-danger {
    color: var(--danger-color);
}

.text-success {
    color: var(--success-color);
}

.text-warning {
    color: var(--warning-color);
}

/* Copy button for code blocks */
.copy-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: var(--dark-elevated);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    line-height: 1;
    z-index: 10;
}

.copy-button:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
}

.copy-button i {
    font-size: 0.8rem;
}

/* Sidebar toggle button */
.sidebar-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    display: none;
}

.sidebar-toggle:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.sidebar-toggle i {
    display: block;
}

.text-info {
    color: var(--info-color);
}

/* Constraint cards for algorithm limitations */
.constraint-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.constraint-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.2s ease;
}

.constraint-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.constraint-card.supported {
    border-left: 4px solid var(--success-color);
}

.constraint-card.unsupported {
    border-left: 4px solid var(--danger-color);
}

.constraint-header {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background-color: rgba(0, 212, 170, 0.05);
}

.constraint-card.supported .constraint-header {
    background-color: rgba(16, 185, 129, 0.08);
}

.constraint-card.unsupported .constraint-header {
    background-color: rgba(239, 68, 68, 0.08);
}

.constraint-header i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.constraint-card.supported .constraint-header i {
    color: var(--success-color);
}

.constraint-card.unsupported .constraint-header i {
    color: var(--danger-color);
}

.constraint-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.constraint-content {
    padding: 1.25rem;
}

.constraint-content p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.constraint-content ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.constraint-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.algorithm-list {
    list-style: none;
    padding-left: 0;
}

.algorithm-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background-color: rgba(0, 212, 170, 0.05);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.algorithm-name {
    font-family: var(--font-family);
    font-weight: 600;
    color: var(--primary-color);
    background-color: var(--dark-elevated);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.75rem;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.constraint-note {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(0, 212, 170, 0.05);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Next steps styling */
.next-steps {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.next-steps h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.next-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.next-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--primary-color);
    color: var(--dark-bg) !important;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    font-weight: 500;
}

.next-link:hover {
    background: var(--primary-light);
    color: var(--dark-bg) !important;
    transform: translateY(-2px);
}

.next-link i {
    margin-right: 0.5rem;
}

/* Analysis example styling */
.analysis-example {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.vulnerability {
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--border-color);
}

.vulnerability.high {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: var(--danger-color);
}

.vulnerability.medium {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: var(--warning-color);
}

.vulnerability.low {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: var(--info-color);
}

.vulnerability.none {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success-color);
}

.vulnerability h4 {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.vulnerability h4 i {
    margin-right: 0.5rem;
}

.vulnerability.high h4 i {
    color: var(--danger-color);
}

.vulnerability.medium h4 i {
    color: var(--warning-color);
}

.vulnerability.low h4 i {
    color: var(--info-color);
}

.vulnerability.none h4 i {
    color: var(--success-color);
}

.vulnerability p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.vulnerability p:last-child {
    margin-bottom: 0;
}

/* Button text color fixes */
.header-btn:hover {
    color: var(--text-light) !important;
}

.tool-btn:hover {
    color: var(--dark-bg) !important;
    background-color: var(--primary-dark) !important;
}

.github-btn:hover {
    color: white !important;
}

.docs-btn:hover {
    color: var(--text-light) !important;
}

/* Link styling to prevent default blue */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-light);
}

a:visited {
    color: var(--text-secondary);
}

/* Vulnerability styling */
.vulnerability {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.vulnerability h4 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.vulnerability h4 i {
    margin-right: 0.5rem;
}

.vulnerability.high {
    border-left: 4px solid var(--danger-color);
}

.vulnerability.medium {
    border-left: 4px solid var(--warning-color);
}

.vulnerability.low {
    border-left: 4px solid var(--info-color);
}

.vulnerability.none {
    border-left: 4px solid var(--success-color);
}

/* Flow diagram container */
.flow-diagram-container {
    text-align: center;
    margin: 2rem 0;
}

.flow-diagram {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Copy button for code blocks */
.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 10;
}

.copy-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

pre:hover .copy-button {
    opacity: 1;
}

/* Table of contents highlighting */
.toc-list a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.table-responsive table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

@media (max-width: 768px) {
    .table-responsive {
        margin: 0 -1.5rem;
        width: calc(100% + 3rem);
    }
    
    .table-responsive table {
        margin: 0;
        border-radius: 0;
    }
}

.docs-section pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.docs-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.docs-section th {
    background-color: rgba(0, 0, 0, 0.02);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.docs-section td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.docs-section tr:last-child td {
    border-bottom: none;
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    padding: 1.75rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.card-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.card-link i {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.card-link:hover {
    color: var(--primary-light) !important;
}

.card-link:hover i {
    transform: translateX(3px);
}

/* Tool Overview */
.tool-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.tool-card {
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    box-shadow: var(--box-shadow);
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.tool-card h3 {
    font-size: 1.15rem;
    margin: 0 0 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.tool-card h3 i {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.tool-link {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.tool-link i {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.tool-link:hover {
    color: var(--primary-color);
}

.tool-link:hover i {
    transform: translateX(3px);
}

/* Resource List */
.resource-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.resource-list li {
    margin-bottom: 1rem;
}

.resource-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 1.25rem;
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.resource-link:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow);
}

.resource-link i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1.25rem;
}

.resource-link h4 {
    margin: 0 0 0.25rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.resource-link p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Info and Warning Boxes */
.info-box, .warning-box {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
}

.info-box {
    background-color: rgba(79, 70, 229, 0.05);
    border-left: 4px solid var(--primary-color);
}

.warning-box {
    background-color: rgba(239, 68, 68, 0.05);
    border-left: 4px solid var(--danger-color);
}

.info-icon, .warning-icon {
    margin-right: 1rem;
    font-size: 1.5rem;
    line-height: 1;
}

.info-icon i {
    color: var(--primary-color);
}

.warning-icon i {
    color: var(--danger-color);
}

.info-content, .warning-content {
    flex: 1;
}

.info-content p, .warning-content p {
    margin: 0;
}

/* Code Diagram */
.code-diagram {
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--dark-surface);
}

.diagram-step {
    display: flex;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.diagram-step:last-child {
    border-bottom: none;
}

.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;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.step-content pre {
    margin: 0;
}

.diagram-arrow {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
    color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.05);
}

/* Use Cases */
.use-case {
    display: flex;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.use-case:hover {
    transform: translateX(5px);
}

.use-case-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    flex-shrink: 0;
}

.use-case-icon i {
    font-size: 1.25rem;
    color: white;
}

.use-case-content {
    flex: 1;
}

.use-case-content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.use-case-content p {
    margin: 0;
    color: var(--text-secondary);
}

/* Library List */
.library-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.library-item {
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
}

.library-item h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.library-item ul {
    margin: 0;
    padding-left: 1.25rem;
}

.library-item li {
    margin-bottom: 0.5rem;
}

.library-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.library-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Next Steps */
.next-steps {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.next-steps h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.next-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.next-link {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--dark-elevated);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.next-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
    color: var(--primary-color);
}

.next-link i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    color: var(--primary-color);
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
}

/* Flow Diagram */
.flow-diagram {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 1.5rem 0;
}

/* Table of Contents */
.toc-list {
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    padding: 1.25rem 1.25rem 1.25rem 2.5rem;
    border: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.toc-list a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Tool Guide Specific Styles */
.tool-screenshot {
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
}

.screenshot {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-caption {
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.02);
}

.tip-box {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
    background-color: rgba(245, 158, 11, 0.05);
    border-left: 4px solid var(--warning-color);
}

.tip-icon {
    margin-right: 1rem;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--warning-color);
}

.tip-content {
    flex: 1;
}

.tip-content p {
    margin: 0;
}

.analysis-example {
    margin: 1.5rem 0;
}

.analysis-example .vulnerability {
    margin-bottom: 1rem;
}

.analysis-example .vulnerability h4 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
}

.analysis-example .vulnerability h4 i {
    margin-right: 0.5rem;
}

.analysis-example .vulnerability.high h4 i {
    color: var(--danger-color);
}

.analysis-example .vulnerability.medium h4 i {
    color: var(--warning-color);
}

.analysis-example .vulnerability.low h4 i {
    color: var(--info-color);
}

.analysis-example .vulnerability.none h4 i {
    color: var(--success-color);
}

/* Mobile Sidebar Toggle */
@media (max-width: 768px) {
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .docs-container {
        flex-direction: column;
    }
    
    .docs-sidebar {
        width: 100%;
        position: static;
        max-height: none;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .docs-sidebar {
        display: none;
    }
    
    .docs-sidebar.active {
        display: block;
    }
    
    .next-links {
        flex-direction: column;
    }
    
    .library-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .docs-content {
        padding: 1.5rem;
        overflow-x: hidden;
    }
    
    .docs-header h1 {
        font-size: 1.75rem;
    }
    
    .docs-section h2 {
        font-size: 1.5rem;
    }
    
    .docs-section h3 {
        font-size: 1.25rem;
    }
    
    .docs-section pre {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
        padding: 1rem;
    }
    
    .docs-section pre code {
        font-size: 0.8rem;
    }
    
    .docs-section code.jwt-token, 
    .docs-section pre code.jwt-token {
        font-size: 0.75rem;
    }
    
    .code-diagram {
        margin-left: -1rem;
        margin-right: -1rem;
    }
    
    .feature-cards, .tool-overview {
        grid-template-columns: 1fr;
    }
    
    .resource-link {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .resource-link i {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    pre {
        max-width: 100%;
        overflow-x: auto;
    }
    
    .code-diagram {
        overflow-x: auto;
    }
    
    .diagram-step {
        min-width: 300px;
    }
    
    .use-case {
        flex-direction: column;
    }
    
    .use-case-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .docs-content {
        padding: 1rem;
    }
    
    .docs-header h1 {
        font-size: 1.5rem;
    }
    
    .docs-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .docs-section h2 {
        font-size: 1.35rem;
    }
    
    .docs-section h3 {
        font-size: 1.15rem;
    }
    
    .docs-section p.lead {
        font-size: 1rem;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .header-btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-section {
        width: 100%;
    }
}

/* Footer styles */
footer {
    background: linear-gradient(135deg, var(--header-bg) 0%, #0f172a 100%);
    color: var(--text-light);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><rect fill="rgba(255,255,255,0.03)" width="50" height="50"/><rect fill="rgba(255,255,255,0.03)" x="50" y="50" width="50" height="50"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    border-radius: 3px;
}

.footer-section p {
    margin-bottom: 0.75rem;
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    opacity: 0.8;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-light);
    transform: translateX(3px);
}

.footer-links a::before {
    content: '→';
    margin-right: 0.5rem;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.social-links a:hover {
    opacity: 1;
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 212, 170, 0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.scroll-to-top:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}