.api-tester-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    min-height: calc(100vh - 200px);
}

@media (max-width: 1024px) {
    .api-tester-layout {
        grid-template-columns: 1fr;
    }
}

.endpoint-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.endpoint-group {
    margin-bottom: 1rem;
}

.endpoint-group-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
}

.endpoint-item {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.endpoint-item:hover {
    background: rgba(255,255,255,0.1);
}

.endpoint-item.active {
    background: var(--color-primary);
    color: white;
}

.method-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-family: monospace;
}

.method-GET { background: #22c55e; color: white; }
.method-POST { background: #3b82f6; color: white; }
.method-PUT { background: #f59e0b; color: black; }
.method-DELETE { background: #ef4444; color: white; }
.method-PATCH { background: #8b5cf6; color: white; }

.request-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.url-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.url-bar select {
    width: 100px;
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: inherit;
    font-weight: 600;
}

.url-bar input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: inherit;
    font-family: 'Fira Code', monospace;
}

.key-select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.key-select label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.key-select select {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: inherit;
}

.body-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.body-editor label {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.7);
}

.body-editor textarea {
    flex: 1;
    min-height: 150px;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    color: #e2e8f0;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    resize: vertical;
}

.response-panel {
    margin-top: 1rem;
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.response-status {
    font-size: 0.85rem;
}

.response-status.success { color: #22c55e; }
.response-status.error { color: #ef4444; }

.response-time {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.response-body {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    max-height: 400px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.params-grid {
    display: grid;
    gap: 0.5rem;
}

.param-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

.param-row input {
    padding: 0.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: inherit;
    font-size: 0.85rem;
}

.param-row button {
    padding: 0.5rem;
    background: rgba(239,68,68,0.2);
    border: none;
    border-radius: 6px;
    color: #ef4444;
    cursor: pointer;
}

.add-param-btn {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px dashed rgba(255,255,255,0.3);
    border-radius: 6px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.add-param-btn:hover {
    background: rgba(255,255,255,0.15);
}

.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}

.tab {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

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

.tab-content {
    display: none;
}

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

.history-item {
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.history-item:hover {
    background: rgba(255,255,255,0.1);
}

.history-method {
    font-size: 0.7rem;
    font-weight: 600;
}

.history-url {
    font-size: 0.85rem;
    font-family: monospace;
    word-break: break-all;
}

.history-time {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.25rem;
}
