diff --git a/templates/index.html b/templates/index.html index fade638..1c68375 100644 --- a/templates/index.html +++ b/templates/index.html @@ -73,6 +73,77 @@ a{color:var(--link)} margin-bottom: 0; } +/* Collapsible sections */ +.control-group.collapsible { + border: 1px solid var(--border); + border-radius: 8px; + overflow: hidden; +} + +.control-header { + display: flex; + align-items: center; + justify-content: space-between; + padding: 12px 16px; + background: var(--chip); + cursor: pointer; + user-select: none; + transition: background-color 0.2s ease; +} + +.control-header:hover { + background: var(--tab-active); +} + +.control-header label { + display: block; + font-size: 11px; + color: var(--muted); + margin: 0; + font-weight: 500; + text-transform: uppercase; + letter-spacing: 0.5px; +} + +.collapse-btn { + background: none; + border: none; + color: var(--muted); + cursor: pointer; + padding: 4px; + border-radius: 4px; + transition: all 0.2s ease; + display: flex; + align-items: center; + justify-content: center; +} + +.collapse-btn:hover { + background: var(--border); + color: var(--fg); +} + +.collapse-btn i { + font-size: 12px; + transition: transform 0.2s ease; +} + +.control-group.collapsed .collapse-btn i { + transform: rotate(-90deg); +} + +.control-content { + padding: 16px; + transition: all 0.3s ease; + overflow: hidden; +} + +.control-group.collapsed .control-content { + padding: 0 16px; + max-height: 0; + opacity: 0; +} + .control-group label { display: block; font-size: 11px; @@ -445,74 +516,116 @@ footer{position:fixed;right:10px;bottom:10px;opacity:.6;font-size:11px}