/* ERP Mobile Bridge Documentation Styles */

:root {
    --primary-color: #2196f3;
    --secondary-color: #ffc107;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1976d2 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 50px;
}

.hero-section .btn {
    font-weight: 600;
    padding: 12px 30px;
    border-width: 2px;
    white-space: nowrap;
}

.hero-section .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.hero-section .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-section .btn-outline-primary {
    color: white;
    border-color: white;
    background-color: transparent;
}

.hero-section .btn-outline-primary:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.sidebar {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.sidebar .nav-link {
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: var(--light-color);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.content-section {
    scroll-margin-top: 80px;
}

.content-section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.content-section h3 {
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.alert-info {
    background-color: #e3f2fd;
    border-color: #2196f3;
    color: #0d47a1;
}

.alert-warning {
    background-color: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}

.alert-success {
    background-color: #e8f5e9;
    border-color: #4caf50;
    color: #1b5e20;
}

code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    color: #d63384;
    font-size: 0.9em;
}

pre {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
}

pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.badge-endpoint {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    font-weight: 600;
}

.api-endpoint {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.api-endpoint h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.api-endpoint .endpoint-url {
    font-family: 'Courier New', monospace;
    background-color: white;
    padding: 0.5rem;
    border-radius: 3px;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.table-responsive {
    margin: 1rem 0;
}

.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: bold;
    margin-right: 0.5rem;
}

.screenshot {
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }

    .sidebar {
        position: relative;
        top: 0;
        max-height: none;
    }
}