@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono:ital,wght@0,400;0,700;1,400;700&family=Inter:wght@300;400;500;600;700&display=swap');
* { -webkit-tap-highlight-color: transparent; outline: none; }
html { scroll-behavior: smooth; }
body { font-family: 'Turret Road', monospace; background-color: #f7f7f7; color: #333; margin: 0; padding: 20px; display: flex; justify-content: center; font-size: 14px; }
.container { max-width: 600px; width: 100%; }
header { display: flex; align-items: center; margin-bottom: 20px; padding: 10px; }
.profile-pic { width: 45px; height: 45px; border-radius: 8px; margin-right: 15px; }
.header-text h1 { font-size: 1.5rem; margin: 0; }
.header-text p { margin: 0; font-size: 0.9rem; color: #555; }

.search-container { position: relative; margin-bottom: 25px; }
.search-input { width: 100%; padding: 12px 15px 12px 45px; border: 1px solid #ddd; border-radius: 8px; background-color: #fff; font-family: 'Ubuntu Mono', monospace; box-sizing: border-box; font-size: 0.9em; }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: #888; }

.stats-container { display: flex; justify-content: space-between; text-align: center; background-color: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 15px; margin-bottom: 25px; flex-wrap: wrap; }
.stat-item { flex: 1; min-width: 120px; }
.stat-item-full { flex-basis: 100%; margin-top: 15px; }
.stat-title { font-size: 0.8em; color: #555; margin-bottom: 5px; text-transform: uppercase; }
.stat-value { font-family: 'Ubuntu Mono', monospace; font-weight: 700; font-size: 1.5rem; color: #333; }

.category { border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 15px; background-color: #fff; overflow: hidden; transition: opacity 0.3s ease, max-height 0.3s ease, transform 0.3s ease; }
.category.hidden { opacity: 0; max-height: 0 !important; transform: scale(0.98); margin-bottom: 0; border: none; }
.category-header { display: flex; justify-content: space-between; align-items: center; padding: 15px; cursor: pointer; user-select: none; background-color: #fafafa; border-bottom: 1px solid #e0e0e0; }
.category-title { display: flex; align-items: center; font-weight: bold; }
.folder-icon { width: 20px; height: 20px; fill: #555; margin-right: 10px; }
.endpoint-count { color: #888; margin-left: 8px; font-weight: 700; font-family: 'Ubuntu Mono', monospace; }
.chevron-icon { width: 24px; height: 24px; fill: #555; transition: transform 0.2s ease-in-out; }
.chevron-icon.rotated { transform: rotate(180deg); }

.endpoint-list { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-in-out; }
.endpoint-item { border-top: 1px solid #f0f0f0; transition: opacity 0.3s ease, max-height 0.3s ease, padding 0.3s ease, border 0.3s ease; overflow: hidden; }
.endpoint-item.hidden { opacity: 0; max-height: 0 !important; padding-top: 0; padding-bottom: 0; border-top: none; }
.endpoint-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; cursor: pointer; transition: background-color 0.2s; }
.endpoint-header:hover { background-color: #f9f9f9; }
.endpoint-item.active > .endpoint-header { background-color: #f5f5f5; }
.endpoint-info { display: flex; align-items: center; }
.method-badge { padding: 3px 8px; border-radius: 4px; font-size: 0.8em; font-weight: bold; color: #fff; margin-right: 12px; }
.method-badge.get { background-color: #4a4a4a; }
.endpoint-path { font-family: monospace; font-size: 0.9em; color: #333; }
.interaction-panel { padding: 0 15px; background-color: #fff; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out; }
.interaction-panel.open { padding: 15px; max-height: 1000px; border-top: 1px solid #e9e9e9; }
.panel-section { margin-bottom: 15px; position: relative; }
.panel-section + .panel-section { margin-top: 25px; }
.panel-section label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 0.85em; }
.panel-section input, .panel-section textarea { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; background-color: #fff; font-family: 'Ubuntu Mono', monospace; }
.button-group { display: flex; gap: 10px; margin-top: 25px; }
.panel-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 4px; font-family: 'Turret Road', monospace; cursor: pointer; transition: background-color 0.2s, opacity 0.2s; }
.panel-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.panel-btn svg { width: 16px; height: 16px; fill: currentColor; }
.execute-btn { background-color: #333; color: #fff; border: 1px solid #333; }
.execute-btn svg path { fill: #fff; }
.execute-btn:hover:not(:disabled) { background-color: #555; }
.visit-btn { background-color: #fff; color: #333; border: 1px solid #ccc; }
.visit-btn:hover:not(:disabled) { background-color: #f0f0f0; }
.result-container { margin-top: 20px; position: relative; }
.request-url, .result-pre { background-color: #f0f0f0; padding: 10px; border-radius: 4px; font-family: 'Ubuntu Mono', monospace; font-size: 0.9em; }
.request-url { padding-right: 35px; white-space: pre; overflow-x: auto; }
.result-pre { border: 1px solid #ddd; margin-top: 5px; height: 40vh; display: flex; align-items: center; justify-content: center; overflow: hidden; font-family: 'Ubuntu Mono', monospace; text-align: center; position: relative; }
.result-pre code { text-align: left; white-space: pre; overflow: auto; width: 100%; height: 100%; padding: 10px; box-sizing: border-box; }
.result-image { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.copy-btn { position: absolute; top: 50%; right: 5px; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 5px; }
.result-container .copy-btn { top: 30px; transform: none; right: 8px; }
.copy-btn svg { width: 18px; height: 18px; fill: #555; }
.copy-btn .icon-check { display: none; }
.copy-btn.copied .icon-copy { display: none; }
.copy-btn.copied .icon-check { display: block; fill: #28a745; }
.status-code { position: absolute; top: -1px; right: -1px; padding: 3px 8px; border-radius: 0 4px 0 8px; font-size: 0.8em; font-family: 'Ubuntu Mono', monospace; color: #fff; opacity: 0; transition: opacity 0.3s; z-index: 1; }
.status-code.visible { opacity: 1; }
.status-2xx { background-color: #28a745; }
.status-4xx { background-color: #fd7e14; }
.status-5xx { background-color: #dc3545; }
.request-url::-webkit-scrollbar, .result-pre code::-webkit-scrollbar { width: 4px; height: 4px; }
.request-url::-webkit-scrollbar-track, .result-pre code::-webkit-scrollbar-track { background: transparent; }
.request-url::-webkit-scrollbar-thumb, .result-pre code::-webkit-scrollbar-thumb { background-color: #aaa; border-radius: 4px; }
