/* Custom CSS for scriptLog Documentation */

:root {
    --primary-color: #122430;
    --accent-color: #7fff00;
    --text-dark: #000000;
    --text-light: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --transition: all 0.3s ease;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
}

/* Accessibility */
.visually-hidden-focusable:focus {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0.5rem 1rem !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
}

/* Custom Bootstrap Overrides */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: #6ee600;
    border-color: #6ee600;
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 255, 0, 0.3);
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(18, 36, 48, 0.1);
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Main Content */
.main-content {
    padding-top: 60px;
    /* Account for fixed navbar */
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a4a 100%);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(127,255,0,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-section .btn {
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Code Preview */
.code-preview {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.code-header {
    background: rgba(127, 255, 0, 0.1);
    padding: 1rem;
    border-bottom: 1px solid rgba(127, 255, 0, 0.2);
}

.code-title {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.code-preview pre {
    margin: 0;
    padding: 1.5rem;
    background: transparent;
    color: #e6e6e6;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), #6ee600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.feature-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Installation Steps */
.installation-steps {
    margin-top: 3rem;
}

.step-item {
    display: flex;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 2rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Code Blocks */
.code-block {
    background: #1a1a2e;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin: 1rem 0;
    overflow-x: auto;
    /* horizontal scroll if needed */
    max-width: 100%;
    /* prevents overflow */
}

.code-block pre {
    margin: 0;
    padding: 1.5rem;
    background: transparent;
    color: #e6e6e6;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    /* wrap long lines */
    word-wrap: break-word;
    /* break long words if necessary */

}

/* Code Block with Header */
.code-block-header {
    display: flex;
    align-items: center;
    background: #2d2d44;
    border: 1px solid #3d3d5c;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
}

.code-lang {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 0.75rem;
}

.code-file {
    color: #a0a0b0;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.code-block-header + .code-block {
    margin-top: 0;
    border-radius: 0 0 8px 8px;
}

/* Doc Hero Section */
.doc-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a4a 100%);
    color: var(--text-light);
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.doc-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(127,255,0,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.doc-hero .container {
    position: relative;
    z-index: 2;
}

.doc-hero-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.doc-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.doc-hero .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.doc-breadcrumb {
    font-size: 0.9rem;
    opacity: 0.8;
}

.doc-breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
}

.doc-breadcrumb a:hover {
    text-decoration: underline;
}

/* Architecture Flow Diagram */
.architecture-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(18, 36, 48, 0.05) 0%, rgba(26, 58, 74, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(127, 255, 0, 0.1);
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    width: 100%;
    max-width: 400px;
    transition: all 0.3s ease;
}

.flow-step:hover {
    transform: translateX(5px);
    border-color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(127, 255, 0, 0.15);
}

.flow-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--primary-color), #1a3a4a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent-color);
}

.flow-content h5 {
    margin: 0 0 0.25rem;
    color: var(--primary-color);
    font-weight: 600;
}

.flow-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.flow-arrow {
    color: var(--accent-color);
    font-size: 1.5rem;
    padding: 0.5rem 0;
}

/* Component Cards Grid */
.component-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.component-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.component-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(127, 255, 0, 0.1);
    transform: translateY(-2px);
}

.component-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, var(--primary-color), #1a3a4a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.component-info h5 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: var(--primary-color);
}

.component-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Best Practices Grid */
.best-practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.practice-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(127, 255, 0, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(127, 255, 0, 0.1);
    font-size: 0.95rem;
}

.practice-item i {
    font-size: 1.1rem;
}

.practice-item code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Example Steps */
.example-steps {
    margin-top: 2rem;
}

.example-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.example-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.example-step .step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.example-step .step-body {
    flex: 1;
}

.example-step h5 {
    margin: 0 0 0.75rem;
    color: var(--primary-color);
}

.example-step p {
    margin: 0 0 1rem;
    color: #6c757d;
}

.example-step code {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Security Grid */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.security-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.security-card:hover {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.03);
}

.security-card i {
    font-size: 1.25rem;
    color: #28a745;
}

/* Related Docs */
.related-docs {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(18, 36, 48, 0.03) 0%, rgba(26, 58, 74, 0.03) 100%);
    border-radius: 16px;
    border: 1px solid rgba(127, 255, 0, 0.1);
}

.related-docs h5 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    height: 100%;
}

.related-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.related-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.related-card span {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.related-card small {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Access Table */
.access-table {
    border-radius: 10px;
    overflow: hidden;
}

.access-table thead {
    background: var(--primary-color);
    color: white;
}

.access-table thead th {
    font-weight: 600;
    padding: 1rem;
}

.access-table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
}

.access-table tbody tr:hover {
    background: rgba(127, 255, 0, 0.03);
}

/* Doc Navigation */
.doc-navigation {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(18, 36, 48, 0.03) 0%, rgba(26, 58, 74, 0.03) 100%);
    border-radius: 12px;
    border: 1px solid rgba(127, 255, 0, 0.1);
}

.doc-navigation a {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.2s ease;
}

.doc-navigation a:hover {
    color: var(--accent-color);
}

/* Guide Grid */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.guide-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
}

.guide-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.guide-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* API Section */
.api-section {
    margin-bottom: 3rem;
}

.api-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table th {
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

.table td {
    vertical-align: middle;
}

.badge {
    font-size: 0.75rem;
    padding: 0.5em 0.75em;
}

/* Accordion */
.accordion-item {
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    border: none;
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--accent-color);
    color: var(--text-dark);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(127, 255, 0, 0.25);
}

.accordion-body {
    padding: 1.5rem;
    background: #f8f9fa;
}

/* Footer */
.footer {
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer h5,
.footer h6 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer a {
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--accent-color) !important;
}

.social-links a {
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-2px);
}

/* Back to Top Button */
#backToTop {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto 1rem;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding-top: 60px;
    }
}

@media (max-width: 576px) {
    .content-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .feature-card,
    .guide-item {
        padding: 1.5rem;
    }

    .docs-grid {
        grid-template-columns: 1fr;
    }

    .doc-link-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .doc-icon-wrap {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .doc-arrow {
        display: none;
    }

    .doc-topics {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .docs-grid {
        grid-template-columns: 1fr;
    }
}

/* Documentation Section */
.docs-section {
    background: linear-gradient(180deg, var(--gray-light) 0%, #fff 100%);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.doc-link-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.doc-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color), #6ee600);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doc-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(18, 36, 48, 0.12);
    border-color: var(--accent-color);
}

.doc-link-card:hover::before {
    opacity: 1;
}

.doc-link-card:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.doc-icon-wrap {
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a4a 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.doc-link-card:hover .doc-icon-wrap {
    transform: scale(1.1);
}

.doc-content {
    flex: 1;
    min-width: 0;
}

.doc-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}

.doc-content p {
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin-bottom: 0.75rem;
}

.doc-topics {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topic-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.65rem;
    background: rgba(127, 255, 0, 0.1);
    color: #3d5a00;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.doc-link-card:hover .topic-tag {
    background: var(--accent-color);
    color: var(--text-dark);
}

.doc-arrow {
    font-size: 1.5rem;
    color: var(--gray-medium);
    transition: all 0.3s ease;
    opacity: 0.5;
}

.doc-link-card:hover .doc-arrow {
    color: var(--accent-color);
    opacity: 1;
    transform: translateX(4px);
}

/* Button Outline Accent */
.btn-outline-accent {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-accent:hover {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 36, 48, 0.2);
}

.btn-outline-accent:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Requirements Section */
.requirements-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a4a 100%);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.requirements-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dot-grid" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="rgba(127,255,0,0.15)"/></pattern></defs><rect width="100" height="100" fill="url(%23dot-grid)"/></svg>');
    opacity: 0.5;
}

.requirements-section .container {
    position: relative;
    z-index: 2;
}

.requirements-section .section-title {
    color: var(--text-light);
}

.requirements-section .section-title::after {
    background: var(--accent-color);
}

.requirements-section .lead {
    color: rgba(255, 255, 255, 0.8);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.req-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(127, 255, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.req-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(127, 255, 0, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.req-icon-bg {
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: linear-gradient(135deg, var(--accent-color), #6ee600);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.req-card:hover .req-icon-bg {
    transform: rotate(-5deg) scale(1.05);
}

.req-info {
    flex: 1;
    min-width: 0;
}

.req-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.req-version {
    font-size: 0.95rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.req-extensions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ext-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.ext-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ext-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    background: rgba(127, 255, 0, 0.15);
    color: var(--accent-color);
    border-radius: 4px;
    border: 1px solid rgba(127, 255, 0, 0.3);
}

.req-status {
    font-size: 1.5rem;
    opacity: 0.8;
}

.status-ok {
    color: var(--accent-color);
}

/* Requirements Note */
.requirements-note {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.requirements-note i {
    font-size: 1.25rem;
    color: var(--accent-color);
}

.requirements-note p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.requirements-note a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.requirements-note a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .req-card {
        flex-wrap: wrap;
    }

    .req-icon-bg {
        width: 52px;
        height: 52px;
        min-width: 52px;
        font-size: 1.5rem;
    }

    .req-status {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .req-card {
        position: relative;
        padding-right: 3rem;
    }
}

/* Quick Start Section */
.quick-start-section {
    background: linear-gradient(180deg, #fff 0%, var(--gray-light) 100%);
    padding: 6rem 0;
}

.steps-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.step-timeline {
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-color) 0%, rgba(127, 255, 0, 0.3) 100%);
}

.step-row {
    position: relative;
    margin-bottom: 2rem;
}

.step-row:last-child {
    margin-bottom: 0;
}

.step-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step-marker {
    position: relative;
    z-index: 2;
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: linear-gradient(135deg, var(--accent-color), #6ee600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(127, 255, 0, 0.3);
}

.step-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.step-content-card {
    flex: 1;
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.step-card:hover .step-content-card {
    transform: translateX(8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
}

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

.step-icon-wrap {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a4a 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent-color);
}

.step-icon-wrap.success {
    background: linear-gradient(135deg, var(--accent-color), #6ee600);
}

.step-icon-wrap.success i {
    color: var(--primary-color);
}

.step-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.step-description {
    color: var(--gray-medium);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.step-description code {
    background: rgba(127, 255, 0, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--primary-color);
}

.code-snippet {
    position: relative;
    background: #1a1a2e;
    border-radius: 10px;
    overflow: hidden;
}

.code-snippet pre {
    margin: 0;
    padding: 1.25rem;
    padding-top: 2.5rem;
    background: transparent;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-snippet code {
    color: #a8e6cf;
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.step-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(127, 255, 0, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    font-size: 0.85rem;
    color: #3d5a00;
}

.step-tip i {
    color: var(--accent-color);
}

.step-url {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(18, 36, 48, 0.05);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.step-url i {
    color: var(--accent-color);
}

.step-url code {
    font-family: 'Courier New', monospace;
    background: none;
    padding: 0;
    color: var(--primary-color);
}

.quick-start-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 1rem;
}

.qs-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.qs-success i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Architecture Section */
.arch-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a4a 100%);
    color: var(--text-light);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.arch-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hex-grid" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M15 0 L30 8 L30 22 L15 30 L0 22 L0 8 Z" fill="none" stroke="rgba(127,255,0,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23hex-grid)"/></svg>');
    opacity: 0.5;
}

.arch-section .container {
    position: relative;
    z-index: 2;
}

.section-title.light {
    color: var(--text-light);
}

.section-title.light::after {
    background: var(--accent-color);
}

.arch-diagram-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    align-items: start;
}

.arch-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.arch-request {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(127, 255, 0, 0.1);
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    color: var(--accent-color);
    font-weight: 600;
}

.arch-request.outgoing {
    background: rgba(127, 255, 0, 0.2);
    border-color: var(--accent-color);
}

.arch-request-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.arch-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.connector-line {
    width: 2px;
    height: 24px;
    background: linear-gradient(180deg, var(--accent-color) 0%, rgba(127, 255, 0, 0.3) 100%);
}

.connector-arrow {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.arch-layer-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    min-width: 320px;
    max-width: 400px;
    width: 100%;
}

.arch-layer-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.arch-layer-card.primary {
    background: linear-gradient(135deg, var(--accent-color), #6ee600);
}

.arch-layer-card.primary .layer-icon {
    background: var(--primary-color);
    color: var(--accent-color);
}

.arch-layer-card.primary h5,
.arch-layer-card.primary p {
    color: var(--primary-color);
}

.layer-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a4a 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.layer-content h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.layer-content p {
    font-size: 0.85rem;
    color: var(--gray-medium);
    margin: 0;
}

/* Architecture Stack */
.arch-stack {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(127, 255, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
    margin: 1rem 0;
}

.arch-stack-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.stack-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    background: rgba(127, 255, 0, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

.arch-stack-layers {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stack-layer {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stack-layer:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.stack-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.stack-info {
    display: flex;
    flex-direction: column;
}

.stack-name {
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.95rem;
}

.stack-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.stack-connector {
    color: var(--accent-color);
    font-size: 1.25rem;
    opacity: 0.6;
}

/* Architecture Sidebar */
.arch-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 100px;
}

.arch-sidebar-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.arch-sidebar-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.arch-sidebar-card h5 i {
    color: var(--accent-color);
}

.arch-sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.arch-sidebar-card ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.benefit-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.component-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 0.75rem;
    background: rgba(127, 255, 0, 0.1);
    border-radius: 10px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 992px) {
    .arch-diagram-wrapper {
        grid-template-columns: 1fr;
    }

    .arch-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .arch-sidebar-card {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .arch-section {
        padding: 4rem 0;
    }

    .arch-layer-card {
        min-width: auto;
        max-width: 100%;
        padding: 1.25rem;
    }

    .layer-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1.25rem;
    }

    .arch-sidebar {
        flex-direction: column;
    }

    .arch-sidebar-card {
        min-width: auto;
    }

    .component-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-item {
        padding: 0.5rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .quick-start-section {
        padding: 4rem 0;
    }

    .step-timeline {
        display: none;
    }

    .step-card {
        flex-direction: column;
        gap: 1rem;
    }

    .step-marker {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .step-number {
        font-size: 1.25rem;
    }

    .step-content-card {
        width: 100%;
    }

    .step-card:hover .step-content-card {
        transform: translateY(-4px);
    }

    .quick-start-footer {
        flex-direction: column;
        text-align: center;
    }

    .qs-success {
        justify-content: center;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {

    .feature-card,
    .guide-item,
    .doc-link-card {
        border: 2px solid var(--primary-color);
    }

    .btn-accent {
        border: 2px solid var(--text-dark);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-section h1,
    .hero-section .lead,
    .hero-section .btn,
    .code-preview {
        animation: none;
    }
}

/* Focus styles for better accessibility */
.btn:focus,
.nav-link:focus,
.accordion-button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {

    .navbar,
    .footer,
    #backToTop {
        display: none !important;
    }

    .main-content {
        padding-top: 0 !important;
    }

    .hero-section {
        background: white !important;
        color: black !important;
    }

    .section-title::after {
        background: black !important;
    }
}

@media (max-width: 991px) {

    /* applies when navbar is collapsed */
    .navbar-nav {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 1rem;
    }

    /* Ensure the search form wraps instead of pushing menu sideways */
    .navbar-collapse .d-flex {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Search Styles */
.doc-search-wrapper {
    position: relative;
    margin-right: 0.5rem;
}

@media (max-width: 991px) {
    .doc-search-wrapper {
        margin-right: 0;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

.doc-search-form {
    position: relative;
}

.doc-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.doc-search-icon {
    position: absolute;
    left: 12px;
    color: #6c757d;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 2;
}

.doc-search-input {
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 0.5rem 2.5rem 0.5rem 2.5rem;
    color: #212529;
    width: 220px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.doc-search-input::placeholder {
    color: #6c757d;
}

.doc-search-input:focus {
    background: #ffffff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(127, 255, 0, 0.3);
    width: 280px;
    outline: none;
    color: #212529;
}

.doc-search-kbd {
    position: absolute;
    right: 10px;
    background: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.7rem;
    color: #6c757d;
    font-family: inherit;
    pointer-events: none;
}

.doc-search-input:focus + .doc-search-kbd {
    display: none;
}

/* Search Hint Tooltip */
.doc-search-hint {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1a3a4a;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    z-index: 1045;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.doc-search-input:focus ~ .doc-search-hint {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.doc-search-hint code {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: inherit;
    color: var(--accent-color);
}

/* Search Results Dropdown */
.doc-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    min-width: 380px;
    max-width: 450px;
    max-height: 450px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
    animation: searchFadeIn 0.2s ease;
    border: 1px solid #e9ecef;
}

.doc-search-results.active {
    display: block;
}

@keyframes searchFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doc-search-results-header {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.8rem;
    font-weight: 700;
    color: #495057;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.doc-search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f0f0f0;
}

.doc-search-result-item:last-child {
    border-bottom: none;
}

.doc-search-result-item:hover,
.doc-search-result-item:focus {
    background: rgba(127, 255, 0, 0.08);
    outline: none;
}

.doc-search-result-item:hover .result-title,
.doc-search-result-item:focus .result-title {
    color: var(--accent-color);
}

.result-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, var(--primary-color), #1a3a4a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-title {
    font-weight: 700;
    color: #122430;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    transition: color 0.15s ease;
}

.result-description {
    font-size: 0.85rem;
    color: #495057;
    line-height: 1.4;
    margin-bottom: 0.35rem;
}

.result-category {
    font-size: 0.7rem;
    color: #3d5a00;
    font-weight: 700;
    background: rgba(127, 255, 0, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.doc-search-result-item mark {
    background: #fff3cd;
    color: #856404;
    padding: 0 3px;
    border-radius: 3px;
    font-weight: 600;
}

.doc-search-result-item.selected {
    background: rgba(127, 255, 0, 0.1);
}

.doc-search-no-results {
    padding: 2.5rem 2rem;
    text-align: center;
    color: #495057;
}

.doc-search-no-results i {
    font-size: 2.5rem;
    color: #dee2e6;
    margin-bottom: 0.75rem;
}

.doc-search-no-results p {
    margin: 0;
    font-size: 0.95rem;
}

.doc-search-footer {
    padding: 0.6rem 1rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #6c757d;
}

.search-shortcuts kbd {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.7rem;
    margin-right: 0.25rem;
    color: #495057;
}

.search-count {
    color: #3d5a00;
    font-weight: 700;
}

@media (max-width: 991px) {
    .doc-search-wrapper {
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .doc-search-input-wrap {
        width: 100%;
    }
    
    .doc-search-input {
        width: 100%;
    }
    
    .doc-search-input:focus {
        width: 100%;
    }
    
    .doc-search-results {
        position: fixed;
        top: 70px;
        left: 1rem;
        right: 1rem;
        min-width: auto;
        max-width: none;
        max-height: calc(100vh - 120px);
    }
}

/* Responsive Footer */
@media (max-width: 991px) {
    .footer h6 {
        margin-top: 1.5rem;
    }
    
    .footer .col-lg-4 {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .footer .text-md-end {
        text-align: center !important;
    }
}

/* Responsive Hero */
@media (max-width: 768px) {
    .doc-hero {
        padding: 5rem 0 3rem;
    }
    
    .doc-hero h1 {
        font-size: 2.5rem;
    }
    
    .doc-hero-icon {
        font-size: 3rem;
    }
    
    .doc-hero .lead {
        font-size: 1rem;
    }
}

/* Responsive Component Cards */
@media (max-width: 768px) {
    .component-cards {
        grid-template-columns: 1fr;
    }
    
    .component-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Responsive Requirements Grid */
@media (max-width: 768px) {
    .requirements-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Step Items */
@media (max-width: 768px) {
    .step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Responsive Architecture Flow */
@media (max-width: 768px) {
    .architecture-flow {
        padding: 1rem;
    }
    
    .flow-step {
        max-width: 100%;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
}

/* Best Practice Cards */
.best-practice-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.2s ease;
    height: 100%;
}

.best-practice-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(127, 255, 0, 0.15);
    transform: translateY(-2px);
}

.best-practice-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(127, 255, 0, 0.1) 0%, rgba(127, 255, 0, 0.05) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.best-practice-icon i {
    font-size: 1.4rem;
    color: var(--accent-color);
}

.best-practice-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #122430;
    margin-bottom: 0.5rem;
}

.best-practice-content p {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.best-practice-content code {
    background: rgba(127, 255, 0, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #3d5a00;
}

/* Timeline Cards for Recently Added Tests */
.timeline-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.timeline-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 30px rgba(127, 255, 0, 0.15);
    transform: translateY(-4px);
}

.timeline-header {
    background: linear-gradient(135deg, rgba(18, 36, 48, 0.95) 0%, rgba(18, 36, 48, 0.85) 100%);
    padding: 1.25rem 1.5rem;
    color: #fff;
}

.timeline-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.25rem 0 0;
    color: #fff;
}

.timeline-date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-color);
    font-weight: 600;
}

.timeline-header.security-header {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.9) 0%, rgba(18, 36, 48, 0.95) 100%);
}

.timeline-body {
    padding: 1.25rem 1.5rem;
}

.test-item {
    padding: 0.875rem 0;
    border-bottom: 1px solid #e9ecef;
}

.test-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.test-item:first-child {
    padding-top: 0;
}

.test-item-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.test-item-header i {
    color: var(--primary-color);
    font-size: 1rem;
}

.test-item-header code {
    background: rgba(18, 36, 48, 0.08);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #122430;
    font-weight: 500;
}

.test-item-header .badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
}

.test-item p {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
    padding-left: 1.5rem;
}

.test-item p code {
    background: rgba(127, 255, 0, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.75rem;
    color: #3d5a00;
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.security-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #495057;
}

.security-feature i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Security Checklist */
.security-checklist {
    background: linear-gradient(135deg, rgba(18, 36, 48, 0.03) 0%, rgba(18, 36, 48, 0.01) 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.checklist-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.checklist-item:first-child {
    padding-top: 0;
}

.checklist-item i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.checklist-item span {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.4;
}

/* Responsive Best Practices */
@media (max-width: 768px) {
    .best-practice-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .best-practice-icon {
        margin: 0 auto 0.75rem;
    }
    
    .security-checklist {
        padding: 1rem;
    }
    
    .checklist-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .timeline-card {
        margin-bottom: 1rem;
    }
    
    .timeline-header h3 {
        font-size: 1rem;
    }
    
    .test-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
    
    .test-item-header .badge {
        margin-left: 1.5rem;
    }
    
    .resource-card {
        flex-direction: column;
        text-align: center;
    }
    
    .resource-icon {
        margin: 0 auto 1rem;
    }
}

/* Resource Cards */
.resource-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.resource-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(127, 255, 0, 0.15);
    transform: translateY(-4px);
    color: inherit;
}

.resource-card:hover .resource-link {
    color: var(--accent-color);
}

.resource-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(127, 255, 0, 0.1) 0%, rgba(127, 255, 0, 0.05) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-icon i {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.resource-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #122430;
    margin-bottom: 0.5rem;
}

.resource-content p {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.resource-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
}

.resource-link i {
    font-size: 0.75rem;
}

/* Theme Step Card */
.theme-step-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.2s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.theme-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), rgba(127, 255, 0, 0.3));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.theme-step-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(127, 255, 0, 0.15);
    transform: translateY(-3px);
}

.theme-step-card:hover::before {
    opacity: 1;
}

.theme-step-card .step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(127, 255, 0, 0.15) 0%, rgba(127, 255, 0, 0.05) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-color);
    flex-shrink: 0;
}

.theme-step-card .step-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #122430;
    margin-bottom: 0.5rem;
}

.theme-step-card .step-content p {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.theme-step-card .step-content code {
    background: rgba(127, 255, 0, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #3d5a00;
}

/* Responsive Theme Steps */
@media (max-width: 768px) {
    .theme-step-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .theme-step-card .step-number {
        margin: 0 auto 0.75rem;
    }
}

/* Plugin Lifecycle Timeline */
.plugin-lifecycle-timeline {
    position: relative;
    padding: 1rem 0;
}

.lifecycle-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.lifecycle-step-last {
    margin-bottom: 0;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), rgba(127, 255, 0, 0.7));
    color: #122430;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(127, 255, 0, 0.3);
    z-index: 2;
}

.step-line {
    width: 3px;
    flex: 1;
    background: linear-gradient(to bottom, var(--accent-color), rgba(127, 255, 0, 0.3));
    margin-top: 0.5rem;
    min-height: 40px;
}

.lifecycle-step-last .step-line {
    display: none;
}

.step-content {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.step-content:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(127, 255, 0, 0.15);
}

.step-header {
    margin-bottom: 1rem;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.step-badge i {
    font-size: 0.85rem;
}

.step-badge-upload {
    background: rgba(0, 123, 255, 0.1);
    color: #0d6efd;
}

.step-badge-activate {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.step-badge-deactivate {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
}

.step-badge-delete {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.step-header h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #122430;
    margin: 0;
}

.step-details p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.step-code {
    background: #122430;
    color: #7fff00;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.step-list-check {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-list-check li {
    font-size: 0.85rem;
    color: #495057;
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-list-check li i {
    font-size: 0.9rem;
}

/* Quick Reference Cards */
.quick-ref-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.25rem;
    height: 100%;
}

.quick-ref-card h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #122430;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.quick-ref-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-ref-card li {
    font-size: 0.8rem;
    color: #6c757d;
    padding: 0.25rem 0;
    font-family: 'Courier New', monospace;
}

/* Responsive Plugin Lifecycle */
@media (max-width: 768px) {
    .plugin-lifecycle-timeline {
        padding-left: 1rem;
    }
    
    .lifecycle-step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-indicator {
        flex-direction: row;
        gap: 1rem;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-line {
        width: 100%;
        height: 3px;
        flex: none;
        min-height: auto;
        margin: 0;
    }
}