/* Revvo API Documentation Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #2B2A35;
    background-color: #f8f9fa;
    font-size: 14px;
}

/* Layout Structure */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #005E93 0%, #004A80 100%);
    color: white;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.main-content {
    margin-left: 280px;
    min-height: 100vh;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    min-height: 100vh;
}

/* Environment Selector */
.environment-selector {
    background: linear-gradient(135deg, #F0F7FF 0%, #E8F4FD 100%);
    border: 2px solid #005E93;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 4px 15px rgba(0, 94, 147, 0.1);
}

.environment-label {
    font-weight: 700;
    color: #004A80;
    font-size: 1rem;
}

.environment-toggle {
    display: flex;
    gap: 10px;
}

.env-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #606C80;
    transition: all 0.3s ease;
}

.env-btn:hover {
    border-color: #005E93;
    background: rgba(0, 94, 147, 0.05);
}

.env-btn.active {
    background: linear-gradient(135deg, #005E93 0%, #004A80 100%);
    border-color: #005E93;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 94, 147, 0.3);
}

.env-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc3545;
    animation: pulse 2s ease-in-out infinite;
}

.env-btn.active .env-indicator {
    background: #28a745;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.environment-url {
    flex: 1;
    min-width: 200px;
}

.environment-url {
    position: relative;
}

.environment-url code {
    background: white;
    color: #005E93;
    padding: 10px 40px 10px 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    border: 1px solid #CCE8FF;
}

/* Copyable Boxes and Mini Copy Buttons */
.copyable-box {
    position: relative;
}

.mini-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 94, 147, 0.8);
    color: white;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.mini-copy-btn:hover {
    background: rgba(0, 94, 147, 1);
    opacity: 1;
    transform: scale(1.1);
}

.mini-copy-btn:active {
    transform: scale(0.95);
}

.mini-copy-btn svg {
    display: block;
}

.copyable-box:hover .mini-copy-btn {
    opacity: 1;
}

.intro-card .copyable-box code {
    padding-right: 35px;
}

.json-example.copyable-box {
    padding-top: 35px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    background: #005E93;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.open {
    z-index: 1200;
}

/* Sidebar Header */
.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.revvo-logo {
    width: 160px;
    height: auto;
    margin-bottom: 15px;
    max-width: 100%;
    object-fit: contain;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.sidebar-header p {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Sidebar Menu */
.sidebar-menu {
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
}

.menu-item {
    margin-bottom: 2px;
}

.menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-link:hover,
.menu-link.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #CCE8FF;
    color: white;
}

.menu-group-title {
    font-weight: 600;
    position: relative;
}

.toggle-icon {
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    font-style: normal;
}

.menu-group.open .toggle-icon {
    transform: rotate(90deg);
}

.menu-subitems {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.menu-group.open .menu-subitems {
    max-height: 500px;
}

.menu-sublink {
    display: block;
    padding: 10px 20px 10px 50px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-sublink:hover,
.menu-sublink.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #CCE8FF;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-footer p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.sidebar-footer small {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Content Sections */
.section {
    margin-bottom: 60px;
    scroll-margin-top: 80px;
}

.section h1 {
    color: #005E93;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.section h2 {
    color: #005E93;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #CCE8FF;
}

.section-description {
    color: #606C80;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Introduction Cards */
.intro-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.intro-card {
    background: linear-gradient(135deg, #F8FBFF 0%, #F0F7FF 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 94, 147, 0.1);
    text-align: center;
}

.intro-card h3 {
    color: #004A80;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.intro-card code {
    background: #005E93;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    word-break: break-all;
    max-width: 100%;
}

/* Rules Box */
.rules-box {
    background: linear-gradient(135deg, #FFF5E6 0%, #FFEFCC 100%);
    border: 2px solid #FF9500;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.rule-item {
    margin-bottom: 15px;
    padding: 10px 0;
    color: #8B5A00;
    font-weight: 500;
}

.rule-item:last-child {
    margin-bottom: 0;
}

.rule-item strong {
    color: #B8690A;
    font-weight: 700;
}

.rule-item code {
    background: rgba(184, 105, 10, 0.1);
    color: #B8690A;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

/* Endpoint Sections */
.endpoint-section {
    margin-bottom: 50px;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
    scroll-margin-top: 80px;
}

.endpoint-section:last-child {
    border-bottom: none;
}

.endpoint-header h3 {
    color: #005E93;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.endpoint-header p {
    color: #606C80;
    font-size: 1rem;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Method and URL */
.method-url {
    background: linear-gradient(135deg, #F8FBFF 0%, #F0F7FF 100%);
    border: 1px solid rgba(0, 94, 147, 0.15);
    border-left: 4px solid #005E93;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 20px;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
}

.method.post { background: linear-gradient(135deg, #28a745, #20a041); }
.method.get { background: linear-gradient(135deg, #007bff, #0066cc); }
.method.put { background: linear-gradient(135deg, #ffc107, #e0a800); color: #000; }
.method.patch { background: linear-gradient(135deg, #17a2b8, #138496); }
.method.delete { background: linear-gradient(135deg, #dc3545, #c82333); }

.url {
    font-family: 'Courier New', monospace;
    color: #004A80;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(0, 94, 147, 0.08);
    padding: 8px 40px 8px 12px;
    border-radius: 6px;
    flex: 1;
    min-width: 300px;
    word-break: break-all;
    position: relative;
    display: inline-block;
}

/* Parameters Section */
.params-section {
    margin: 30px 0;
}

.params-section h4 {
    color: #004A80;
    font-weight: 700;
    margin: 25px 0 15px 0;
    font-size: 1.2rem;
}

.params-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    font-size: 0.9rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.params-table th {
    background: linear-gradient(135deg, #005E93 0%, #004A80 100%);
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.params-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.params-table tr:hover {
    background-color: rgba(0, 94, 147, 0.02);
}

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

.param-type {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #CCE8FF 0%, #B8DCFF 100%);
    color: #004A80;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.param-required {
    color: #dc3545;
    font-weight: 700;
    font-size: 0.85rem;
}

.param-optional {
    color: #28a745;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Return Section */
.return-section {
    margin: 30px 0;
}

.return-grid {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.return-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.return-item.success {
    border-left: 4px solid #28a745;
}

.return-item.error {
    border-left: 4px solid #dc3545;
}

.return-code {
    background: #f8f9fa;
    padding: 12px 20px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.return-item.success .return-code {
    background: #d4edda;
    color: #155724;
}

.return-item.error .return-code {
    background: #f8d7da;
    color: #721c24;
}

.return-content {
    padding: 20px;
}

.return-content p {
    margin-top: 15px;
    color: #606C80;
    font-size: 0.9rem;
}

/* Code Examples */
.examples-section {
    margin: 30px 0;
}

.code-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.code-tab {
    padding: 10px 20px;
    background: #e9ecef;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.code-tab.active,
.code-tab:hover {
    background: #005E93;
    color: white;
}

.code-block {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-radius: 0 8px 8px 8px;
    position: relative;
    overflow: hidden;
}

.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 94, 147, 0.8);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 10;
}

.copy-btn:hover {
    background: rgba(0, 74, 128, 0.9);
    transform: translateY(-1px);
}

.code-content {
    display: none;
    padding: 25px;
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre;
    overflow-x: auto;
}

.code-content.active {
    display: block;
}

/* JSON Examples */
.json-example {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    overflow-x: auto;
}

.json-example pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #004A80;
    white-space: pre;
    line-height: 1.6;
    tab-size: 2;
}

/* Info Boxes */
.info-box,
.warning-box {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid;
}

.info-box {
    background: linear-gradient(135deg, #E8F4FD 0%, #D1E9FB 100%);
    border-left-color: #005E93;
    color: #004A80;
}

.info-box h5 {
    color: #004A80;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1rem;
}

.info-box ul {
    margin: 15px 0;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 8px;
}

.warning-box {
    background: linear-gradient(135deg, #FFF5E6 0%, #FFEFCC 100%);
    border-left-color: #FF9500;
    color: #B8690A;
    font-weight: 600;
}

/* Schemas */
.schema-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.schema-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.schema-item h4 {
    background: linear-gradient(135deg, #005E93 0%, #004A80 100%);
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

.schema-item .json-example {
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

/* Enumerations */
.enum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.enum-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.enum-item h4 {
    background: linear-gradient(135deg, #005E93 0%, #004A80 100%);
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

.enum-list {
    padding: 0;
}

.enum-row {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.enum-row:last-child {
    border-bottom: none;
}

.enum-row.success {
    background: rgba(40, 167, 69, 0.05);
}

.enum-row.error {
    background: rgba(220, 53, 69, 0.05);
}

.enum-value {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #005E93 0%, #004A80 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-right: 15px;
    min-width: 35px;
    text-align: center;
}

.enum-row.success .enum-value {
    background: linear-gradient(135deg, #28a745 0%, #20a041 100%);
}

.enum-row.error .enum-value {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #005E93 0%, #004A80 100%);
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: center;
}

.revvo-logo-small {
    width: 120px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.footer-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-info p {
    opacity: 0.9;
    margin-bottom: 4px;
}

.footer-info small {
    opacity: 0.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: none;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .content-wrapper {
        padding: 80px 20px 40px 20px;
    }

    .intro-cards {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .environment-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }

    .environment-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .env-btn {
        flex: 1;
        justify-content: center;
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    .environment-url {
        width: 100%;
    }

    .environment-url code {
        width: 100%;
        font-size: 0.8rem;
        word-break: break-all;
    }

    .section h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .endpoint-header h3 {
        font-size: 1.3rem;
    }

    .method-url {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        gap: 10px;
    }

    .method {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .url {
        min-width: auto;
        width: 100%;
        word-break: break-all;
        font-size: 0.85rem;
    }

    .params-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
    }

    .params-table thead,
    .params-table tbody,
    .params-table tr,
    .params-table th,
    .params-table td {
        display: block;
    }

    .params-table thead {
        display: none;
    }

    .params-table tr {
        margin-bottom: 15px;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 10px;
    }

    .params-table td {
        border: none;
        padding: 8px 0;
        text-align: left;
    }

    .params-table td:before {
        content: attr(data-label);
        font-weight: 700;
        color: #004A80;
        display: inline-block;
        margin-right: 10px;
    }

    .code-tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .code-tab {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 8px 15px;
    }

    .code-content {
        font-size: 0.75rem;
        padding: 20px 15px;
    }

    .copy-btn {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .intro-cards {
        grid-template-columns: 1fr;
    }

    .intro-card code {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .content-wrapper {
        padding: 70px 10px 30px 10px;
    }

    .section {
        margin-bottom: 40px;
    }

    .section h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .section h2 {
        font-size: 1.3rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .endpoint-header h3 {
        font-size: 1.2rem;
    }

    .intro-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .intro-card {
        padding: 15px;
    }

    .intro-card h3 {
        font-size: 0.8rem;
    }

    .intro-card code {
        font-size: 0.7rem;
        padding: 6px 8px;
    }

    .sidebar-header {
        padding: 20px 15px;
    }

    .revvo-logo {
        width: 120px;
    }

    .revvo-logo-small {
        width: 100px;
    }

    .method-url {
        padding: 12px;
    }

    .code-block {
        border-radius: 8px;
    }

    .code-tabs {
        gap: 5px;
    }

    .code-tab {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .footer-content {
        padding: 0 20px;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-links a {
        font-size: 0.85rem;
    }
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar,
.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.sidebar-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb,
.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.code-content::-webkit-scrollbar {
    height: 8px;
}

.code-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.code-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

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

/* Loading and Animation States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Print Styles */
@media print {
    .sidebar,
    .mobile-menu-toggle,
    .copy-btn,
    .code-tabs {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .content-wrapper {
        padding: 20px !important;
        max-width: none !important;
    }

    .section,
    .endpoint-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .code-content {
        background: #f8f9fa !important;
        color: #2d3748 !important;
        border: 1px solid #dee2e6 !important;
    }
}