/* Developer Documentation Styles */
.dev-docs {
    background: #f7f8fa;
    min-height: 100vh;
}

.dev-sidebar {
    position: sticky;
    top: 80px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    background: white;
    border-right: 1px solid #e5e7eb;
    padding: 2rem 0;
}

.dev-sidebar::-webkit-scrollbar {
    width: 6px;
}

.dev-sidebar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.dev-sidebar .nav-link {
    color: #374151;
    padding: 0.5rem 1.5rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.dev-sidebar .nav-link:hover {
    color: #1e40af;
    background: #f3f4f6;
    border-left-color: #e5e7eb;
}

.dev-sidebar .nav-link.active {
    color: #1e40af;
    border-left-color: #2563eb;
    background: #eff6ff;
    font-weight: 600;
}

.dev-sidebar .nav-section {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #6b7280;
    padding: 1rem 1.5rem 0.5rem;
    letter-spacing: 0.8px;
}

.dev-content {
    padding: 2rem 3rem;
    background: white;
    max-width: 1000px;
}

.dev-content h1,
.dev-content h2,
.dev-content h3,
.dev-content h4 {
    color: #1f2937;
    font-weight: 700;
}

.dev-content h2 {
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    margin-top: 2rem;
}

.dev-content p {
    color: #374151;
    line-height: 1.7;
}

.dev-content .table {
    border-color: #e5e7eb;
}

.dev-content .table th {
    background-color: #f9fafb;
    color: #374151;
    font-weight: 600;
    border-color: #e5e7eb;
}

.dev-content .table td {
    color: #4b5563;
    border-color: #e5e7eb;
}

.dev-content .table tbody tr:hover {
    background-color: #f9fafb;
}

.dev-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dev-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.dev-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.endpoint-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.endpoint-header {
    background: #f9fafb;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.endpoint-method {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-right: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method-get { background: #10b981; color: white; }
.method-post { background: #3b82f6; color: white; }
.method-put { background: #f59e0b; color: white; }
.method-delete { background: #ef4444; color: white; }

.endpoint-path {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
}

.code-tabs {
    margin-top: 1rem;
}

.code-tabs .nav-tabs {
    background: #1f2937;
    border: none;
    padding: 0.5rem 1rem 0;
}

.code-tabs .nav-link {
    color: #9ca3af;
    border: none;
    background: transparent;
    border-radius: 6px 6px 0 0;
    margin-right: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.code-tabs .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.code-tabs .nav-link.active {
    color: white;
    background: #111827;
    font-weight: 600;
}

.code-block {
    background: #111827;
    color: #e5e7eb;
    padding: 1.5rem;
    border-radius: 6px;
    position: relative;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid #1f2937;
}

.code-block pre {
    margin: 0;
    color: #e5e7eb;
}

.code-block code {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #e5e7eb;
}

.copy-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #374151;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    font-weight: 500;
}

.copy-button:hover {
    background: #1f2937;
}

.copy-button.copied {
    background: #10b981;
}

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

.param-table table {
    width: 100%;
    font-size: 0.9rem;
}

.param-table th {
    background: #f9fafb;
    padding: 0.75rem;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
    color: #374151;
}

.param-table td {
    padding: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.param-name {
    font-family: 'Courier New', monospace;
    color: #1e40af;
    font-weight: 600;
}

.param-type {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
}

.param-required {
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.response-example {
    background: #f9fafb;
    border-left: 4px solid #2563eb;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.quick-start-box {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.quick-start-box h3 {
    color: white;
    font-weight: 700;
}

.quick-start-box code {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: white;
    font-weight: 600;
}

.badge-stable {
    background: #10b981;
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.api-version {
    background: #374151;
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.section-anchor {
    scroll-margin-top: 100px;
}

/* Custom colors for developer pages */
.dev-docs .text-primary {
    color: #1e40af !important;
}

.dev-docs .btn-primary {
    background-color: #1e40af;
    border-color: #1e40af;
}

.dev-docs .btn-primary:hover {
    background-color: #1e3a8a;
    border-color: #1e3a8a;
}

.dev-docs .btn-outline-primary {
    color: #1e40af;
    border-color: #1e40af;
}

.dev-docs .btn-outline-primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
    color: white;
}

.dev-docs .text-success {
    color: #059669 !important;
}

.dev-docs .btn-outline-success {
    color: #059669;
    border-color: #059669;
}

.dev-docs .btn-outline-success:hover {
    background-color: #059669;
    border-color: #059669;
    color: white;
}

.dev-docs .card {
    border-color: #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dev-docs .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dev-docs .card-title {
    color: #1f2937;
    font-weight: 600;
}

.dev-docs .card-text {
    color: #6b7280;
}

.dev-docs .alert {
    border-radius: 6px;
    border-left: 4px solid;
}

.dev-docs .alert-info {
    background-color: #eff6ff;
    border-left-color: #2563eb;
    color: #1e40af;
}

.dev-docs .alert-warning {
    background-color: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
}

.dev-docs .alert-success {
    background-color: #f0fdf4;
    border-left-color: #10b981;
    color: #065f46;
}

.dev-docs .alert-danger {
    background-color: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

.dev-docs .badge {
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
}

.dev-docs .badge-primary {
    background-color: #1e40af;
}

.dev-docs .badge-secondary {
    background-color: #6b7280;
}

.dev-docs .badge-success {
    background-color: #059669;
}

.dev-docs .badge-warning {
    background-color: #d97706;
}

.dev-docs .badge-danger {
    background-color: #dc2626;
}

/* Syntax highlighting colors */
.code-block .string { color: #10b981; }
.code-block .number { color: #f59e0b; }
.code-block .boolean { color: #3b82f6; }
.code-block .null { color: #8b5cf6; }
.code-block .key { color: #3b82f6; }
.code-block .comment { color: #6b7280; }

/* Responsive */
@media (max-width: 991.98px) {
    .dev-sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        margin-bottom: 2rem;
    }
    
    .dev-content {
        padding: 1rem;
    }
    
    .dev-header {
        padding: 2rem 0;
    }
}

