/* Trustist Ecommerce API Documentation Styles */

:root {
    --trustist-primary: #0066cc;
    --trustist-secondary: #ff6600;
    --trustist-dark: #1a1a1a;
    --trustist-light: #f8f9fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.navbar-brand {
    font-size: 1.25rem;
}

.bg-primary {
    background-color: var(--trustist-primary) !important;
}

.btn-primary {
    color: #ffffff !important;
    background-color: var(--trustist-primary);
    border-color: var(--trustist-primary);
}

.btn-primary:hover {
    color: #ffffff !important;
    background-color: #0052a3;
    border-color: #0052a3;
}

.btn-outline-primary {
    color: var(--trustist-primary) !important;
    border-color: var(--trustist-primary);
}

.btn-outline-primary:hover {
    color: #ffffff !important;
    background-color: var(--trustist-primary);
    border-color: var(--trustist-primary);
}

.text-primary {
    color: var(--trustist-primary) !important;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border-right: 1px solid #dee2e6;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.5rem 1rem;
}

.sidebar .nav-link:hover {
    color: var(--trustist-primary);
    background-color: #f8f9fa;
}

.sidebar .nav-link.active {
    color: var(--trustist-primary);
    border-left: 3px solid var(--trustist-primary);
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

/* Main content */
.docs-content {
    max-width: 900px;
}

.docs-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--trustist-dark);
}

.docs-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    color: var(--trustist-dark);
}

.docs-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--trustist-dark);
}

.docs-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Code blocks */
.docs-content pre {
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.45;
    margin: 1rem 0;
}

.docs-content code {
    background-color: #f6f8fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 85%;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

.docs-content pre code {
    background-color: transparent;
    padding: 0;
    font-size: 100%;
}

/* Alert boxes */
.alert-info {
    background-color: #e7f3ff;
    border-color: #b3d9ff;
    color: #004085;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Cards */
.card {
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f6f8fa;
    border-bottom: 1px solid #e1e4e8;
    font-weight: 600;
}

/* Lists */
.docs-content ul,
.docs-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.docs-content li {
    margin-bottom: 0.5rem;
}

/* Tables */
.docs-content table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.docs-content table th,
.docs-content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.docs-content table th {
    background-color: #f6f8fa;
    font-weight: 600;
    text-align: left;
}

.docs-content table tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35em 0.65em;
}

.badge-method {
    font-family: monospace;
    font-size: 0.85rem;
}

/* Feature cards on homepage */
.feature-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
    }
    
    .docs-content h1 {
        font-size: 2rem;
    }
    
    .docs-content h2 {
        font-size: 1.5rem;
    }
}

/* Anchor links */
.docs-content a {
    color: var(--trustist-primary);
    text-decoration: none;
}

.docs-content a:hover {
    text-decoration: underline;
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

/* Copy code button */
.code-block-wrapper {
    position: relative;
}

.copy-code-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.copy-code-btn:hover {
    opacity: 1;
}

