body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #f5f5f5;
    color: #2c3e50;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 30px;
}

.topbar h1 {
    margin: 0;
    font-size: 1.4em;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.iap-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
}

.signin-btn {
    background: white;
    color: #4285F4;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.signin-btn:hover {
    background: #f0f0f0;
}

.signedin-email {
    font-size: 0.9em;
}

.console-user {
    font-size: 0.9em;
}

.signin-gate {
    max-width: 480px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.signin-gate h1 {
    margin-top: 0;
}

.signin-gate #g_id_signin {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.gate-error {
    color: #e74c3c;
    margin-top: 16px;
}

.home {
    max-width: 480px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.home h1 {
    margin-top: 0;
}

.home-link {
    display: inline-block;
    margin-top: 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
}

.home-link:hover {
    background: #2980b9;
}

.tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid #ddd;
    padding: 0 30px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 14px 20px;
    font-size: 1em;
    cursor: pointer;
    color: #7f8c8d;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
    font-weight: 600;
}

.tab-panel {
    display: none;
}

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

#docs .content {
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#docs h1 { color: #2c3e50; border-bottom: 3px solid #3498db; padding-bottom: 10px; }
#docs h2 { color: #34495e; margin-top: 30px; border-bottom: 2px solid #ecf0f1; padding-bottom: 8px; }
#docs h3 { color: #7f8c8d; }
#docs code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
}
#docs pre {
    background-color: #282c34;
    color: #abb2bf;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
#docs pre code { background: none; color: inherit; padding: 0; }
#docs a { color: #3498db; text-decoration: none; }
#docs a:hover { text-decoration: underline; }
#docs table { border-collapse: collapse; width: 100%; margin: 20px 0; }
#docs th, #docs td { border: 1px solid #ddd; padding: 12px; text-align: left; }
#docs th { background-color: #3498db; color: white; }
#docs tr:nth-child(even) { background-color: #f8f9fa; }

.console-layout {
    display: flex;
    height: calc(100vh - 110px);
}

.console-sidebar {
    width: 320px;
    overflow-y: auto;
    background: white;
    border-right: 1px solid #ddd;
    padding: 10px 0;
}

.endpoint-section-title {
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    color: #95a5a6;
    padding: 14px 16px 4px;
}

.endpoint-item {
    display: flex;
    gap: 8px;
    align-items: baseline;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9em;
}

.endpoint-item:hover {
    background: #f0f4ff;
}

.endpoint-item.selected {
    background: #e8edff;
}

.method-tag {
    font-weight: 700;
    font-size: 0.75em;
    width: 48px;
    flex-shrink: 0;
}

.method-tag.GET { color: #2ecc71; }
.method-tag.POST { color: #e67e22; }
.method-tag.PUT { color: #3498db; }
.method-tag.DELETE { color: #e74c3c; }
.method-tag.PATCH { color: #9b59b6; }

.endpoint-path {
    color: #2c3e50;
    word-break: break-all;
}

.console-main {
    flex: 1;
    padding: 20px 30px;
    overflow-y: auto;
}

.request-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.method-badge {
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 4px;
    background: #ecf0f1;
}

#req-url {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
}

#send-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

#send-btn:hover {
    background: #2980b9;
}

.request-doc {
    margin-top: 16px;
    color: #555;
    font-size: 0.92em;
}

.request-doc ul { padding-left: 20px; }

.request-section {
    margin-top: 16px;
}

.request-section label {
    display: block;
    font-size: 0.85em;
    color: #7f8c8d;
    margin-bottom: 6px;
}

#req-body {
    width: 100%;
    min-height: 120px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.response-section {
    margin-top: 24px;
}

.response-section h3 {
    color: #7f8c8d;
    margin-bottom: 8px;
}

#response-status, #response-body {
    background-color: #282c34;
    color: #abb2bf;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    white-space: pre-wrap;
}
