/* SellerLegend API Documentation Styles */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --sidebar-width: 250px;
}

body {
    padding-top: 56px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - 56px);
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
    z-index: 100;
}

.sidebar .list-group-item {
    border: none;
    border-radius: 0;
    padding: 12px 20px;
}

.sidebar .list-group-item:hover {
    background-color: #e9ecef;
}

.sidebar .list-group-item i {
    width: 20px;
    margin-right: 10px;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 20px;
}

/* Method Badges */
.method-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    border-radius: 4px;
    text-transform: uppercase;
    min-width: 60px;
    text-align: center;
}

.method-badge.get {
    background-color: var(--success-color);
}

.method-badge.post {
    background-color: var(--primary-color);
}

.method-badge.put {
    background-color: var(--warning-color);
}

.method-badge.delete {
    background-color: var(--danger-color);
}

.method-badge.patch {
    background-color: var(--info-color);
}

/* Endpoint Cards */
.endpoint-group {
    margin-bottom: 30px;
}

.endpoint-group h3 {
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.endpoint-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.endpoint-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #dee2e6;
}

.endpoint-path {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
}

.endpoint-desc {
    color: var(--secondary-color);
    font-size: 14px;
    margin-left: auto;
}

.endpoint-body {
    padding: 20px;
    background-color: white;
}

.endpoint-body h6 {
    color: var(--dark-color);
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: 600;
}

.endpoint-body pre {
    background-color: #f4f4f4;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
}

/* Code Blocks */
pre[class*="language-"] {
    background-color: #2d2d2d;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
}

/* Tables */
.table {
    font-size: 14px;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.table code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    color: #d63384;
}

/* Cards */
.card {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* Navigation */
.navbar-brand {
    font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: white;
}

/* Alerts */
.alert {
    border-radius: 8px;
}

.alert h5 {
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .endpoint-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .endpoint-desc {
        margin-left: 0;
        margin-top: 10px;
    }
}

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

/* Section Spacing - Account for fixed navbar (56px) */
section {
    scroll-margin-top: 76px;  /* Modern CSS property for scroll offset */
    padding-top: 30px;
}

/* Also apply to divs with endpoint IDs */
div[id$="-endpoints"] {
    scroll-margin-top: 76px;
    padding-top: 30px;
}

/* Specific targets for better anchor scrolling */
:target {
    scroll-margin-top: 76px;
}

/* Tab Content */
.tab-content {
    padding-top: 20px;
}

.nav-tabs .nav-link {
    color: var(--dark-color);
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Badges */
.badge {
    padding: 5px 10px;
    font-weight: 500;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Display Classes */
.display-4 {
    font-weight: 300;
    margin-bottom: 20px;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--secondary-color);
}

/* List Styles */
ul.list-unstyled li {
    padding: 5px 0;
}

/* Dropdown */
.dropdown-item i {
    width: 20px;
    margin-right: 8px;
}

/* Print Styles */
@media print {
    .sidebar,
    .navbar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding-top: 0;
    }
    
    body {
        padding-top: 0;
    }
}