#api-tester-view {
    width: 100%;
    flex: 1;
}

.api-tester-container {
    display: flex;
    flex-direction: column;
    height: calc(100% - 130px);
    margin: 0;
    width: 100%;
    flex: 1;
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.api-tester-tabs {
    display: flex;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    gap: 0.5rem;
}

.api-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.api-tab svg {
    opacity: 0.7;
    transition: all 0.2s;
}

.api-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.api-tab.active {
    background: var(--accent-transparent);
    color: var(--accent-color);
}

.api-tab.active svg {
    opacity: 1;
    transform: scale(1.1);
}

.api-tester-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Tester Layout */
.tester-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    height: 100%;
}

.tester-form-panel {
    padding: 2rem;
    border-right: 1px solid var(--border-light);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.01);
}

.tester-response-panel {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* API Guide View */
.api-guide-view {
    display: grid;
    grid-template-columns: 240px 1fr;
    height: 100%;
}

.guide-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-light);
    padding: 2rem 1rem;
}

.guide-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.nav-item:hover {
    background: var(--bg-tertiary);
}

.nav-item.active {
    background: var(--accent-transparent);
    color: var(--accent-color);
    font-weight: 600;
}

.guide-content {
    padding: 3rem;
    overflow-y: auto;
    flex: 1;
}

.guide-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.75rem;
}

.guide-content h3 {
    font-size: 1.1rem;
    margin: 2rem 0 1rem 0;
}

.guide-content p {
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Info Box */
.info-box {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.info-box.warning {
    background: rgba(243, 123, 32, 0.1);
    border: 1px solid rgba(243, 123, 32, 0.3);
    color: #f37b20;
}

.info-content strong {
    display: block;
    margin-bottom: 0.4rem;
}

.info-content p {
    margin: 0;
    color: currentColor;
    opacity: 0.9;
}

/* Code Display */
.code-block-container {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.code-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lang {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.method {
    font-size: 0.7rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 4px;
}

.method.post {
    background: #10b981;
    color: white;
}

.url {
    color: #cbd5e1;
    font-family: monospace;
    font-size: 0.85rem;
}

.code-content {
    padding: 1.5rem;
    margin: 0;
}

.code-content code {
    color: #2dd4bf;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* JSON Viewer */
.response-card {
    background: #0f172a;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.response-header {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #64748b;
    border-radius: 50%;
}

.has-content .status-dot {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.status-indicator h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    color: #94a3b8;
}

.json-viewer {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.json-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-style: italic;
    font-size: 0.9rem;
}

/* Colors for JSON */
.json-key {
    color: #818cf8;
}

.json-string {
    color: #2dd4bf;
}

.json-number {
    color: #fbbf24;
}

.json-boolean {
    color: #f472b6;
}

.json-null {
    color: #94a3b8;
}

/* Execute Button */
.execute-btn {
    width: 100%;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 4px 12px var(--accent-transparent);
    margin-top: 1.5rem;
    transition: all 0.2s ease;
}

.execute-btn:hover:not(:disabled) {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-transparent);
    filter: brightness(1.1);
}

.execute-btn:active:not(:disabled) {
    transform: translateY(0);
}

.execute-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--text-muted);
    box-shadow: none;
}

.loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Token Display Card */
.token-display-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.token-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.token-value {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #2dd4bf;
    word-break: break-all;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.4;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.copy-code-btn {
    margin-left: auto;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.3);
    color: #2dd4bf;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.copy-code-btn:hover {
    background: #2dd4bf;
    color: #0f172a;
}

/* Polished Form & Input Styles */
.tester-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tester-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-row label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.form-row input,
.form-row select,
.form-row textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.875rem 1.125rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    width: 100%;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.form-row input:hover,
.form-row select:hover,
.form-row textarea:hover {
    border-color: var(--border-color);
    background: var(--bg-tertiary);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: var(--accent-color);
    background: var(--bg-input);
    box-shadow: 0 0 0 4px var(--accent-transparent);
    transform: translateY(-1px);
}

.form-row select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.125rem center;
    background-size: 1rem;
    padding-right: 3rem;
    cursor: pointer;
}

.form-row textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* Secondary Actions */
.rs-ghost-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.rs-ghost-btn:hover {
    background: var(--border-light);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.rs-secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.rs-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}