/* Apidog Clone Document Stylesheet */

.apidog-layout {
    display: flex;
    min-height: calc(100vh - 56px);
}

/* 1. Left Sidebar Navigation tree */
.apidog-sidebar {
    width: 280px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
    overflow-y: auto;
    padding: 16px 0;
}

.apidog-nav-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 0 20px 8px;
    letter-spacing: 0.05em;
}

.apidog-category {
    margin-bottom: 8px;
}

.apidog-category-title {
    padding: 8px 20px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s;
}

.apidog-category-title:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.apidog-api-list {
    list-style: none;
    padding-left: 12px;
    margin: 0;
}

.apidog-api-item a {
    display: flex;
    align-items: center;
    padding: 6px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 4px;
    margin: 2px 8px;
    transition: background-color 0.2s, color 0.2s;
}

.apidog-api-item a:hover, .apidog-api-item.active a {
    background-color: rgba(99, 102, 241, 0.08);
    color: var(--accent);
}

/* Method pills */
.method-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
    width: 42px;
    text-align: center;
}

.method-badge.POST {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.method-badge.GET {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.method-badge.PUT {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.method-badge.DELETE {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* 2. Middle Content pane */
.apidog-content {
    flex-grow: 1;
    padding: 32px;
    overflow-y: auto;
}

/* 3. Right Sandbox panel (Live test & code samples) */
.apidog-sandbox {
    width: 420px;
    background-color: #0f172a;
    color: #cbd5e1;
    border-left: 1px solid #334155;
    flex-shrink: 0;
    overflow-y: auto;
    padding: 24px;
}

.apidog-sandbox h5 {
    color: #ffffff;
}

/* Codeblock wrapper style */
.codeblock-container {
    background-color: #1e293b;
    border-radius: 8px;
    border: 1px solid #334155;
    margin-bottom: 20px;
    overflow: hidden;
}

.codeblock-header {
    background-color: #0f172a;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #334155;
    font-size: 0.8rem;
}

.codeblock-body pre {
    margin: 0;
    padding: 16px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    color: #38bdf8;
}

/* Sandbox response pretty screen */
.response-container {
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.response-meta {
    display: flex;
    gap: 16px;
    border-bottom: 1px solid #334155;
    padding-bottom: 8px;
    margin-bottom: 12px;
    font-size: 0.8rem;
}

/* Search bar styling */
.apidog-search {
    padding: 0 16px 12px;
}

.apidog-search input {
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 8px 12px;
    width: 100%;
}

/* Tab systems */
.tab-custom {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.tab-btn {
    padding: 8px 16px;
    border: none;
    background: none;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
