/* ============================================================
   components2.css — second batch of components
   ============================================================ */

/* ---------------- NAVIGATION MENU ---------------- */
.navmenu { display: inline-flex; gap: 2px; position: relative; }
.navmenu-item { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: var(--radius); font-family: var(--ui-font); font-size: 14px; font-weight: 600; color: var(--foreground); background: transparent; border: none; cursor: pointer; transition: .12s ease; }
.navmenu-item .ic { font-size: 15px; transition: transform .18s ease; }
.navmenu-item:hover, .navmenu-item[data-open="true"] { background: var(--accent); }
.navmenu-item[data-open="true"] .ic.caret { transform: rotate(180deg); }
.navmenu-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; background: var(--popover); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; min-width: 460px; animation: pop .16s ease; }
.navmenu-link { display: flex; gap: 12px; padding: 11px 12px; border-radius: var(--radius); cursor: pointer; align-items: flex-start; }
.navmenu-link:hover { background: var(--accent); }
.navmenu-link .nl-ic { width: 34px; height: 34px; border-radius: var(--radius); background: var(--brand-tint); color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.navmenu-link .nl-ic .ic { font-size: 17px; }
.navmenu-link .t { font-size: 13.5px; font-weight: 600; }
.navmenu-link .d { font-size: 12px; color: var(--muted-foreground); margin-top: 2px; line-height: 1.4; }

/* ---------------- MENUBAR ---------------- */
.menubar { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 3px; background: var(--card); position: relative; }
.menubar-trigger { padding: 6px 12px; border-radius: var(--radius); font-family: var(--ui-font); font-size: 13.5px; font-weight: 500; color: var(--foreground); background: transparent; border: none; cursor: pointer; }
.menubar-trigger:hover, .menubar-trigger[data-open="true"] { background: var(--accent); }

/* ---------------- CAROUSEL ---------------- */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track { display: flex; transition: transform .38s cubic-bezier(.4,0,.2,1); }
.carousel-slide { min-width: 100%; box-sizing: border-box; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); color: var(--foreground); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); z-index: 2; }
.carousel-btn:hover { color: var(--brand); border-color: var(--brand); }
.carousel-btn.prev { left: -18px; }
.carousel-btn.next { right: -18px; }
.carousel-btn:disabled { opacity: .4; pointer-events: none; }
.carousel-btn .ic { font-size: 18px; }
.carousel-dots { display: flex; gap: 7px; justify-content: center; margin-top: 16px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--border-strong); border: none; cursor: pointer; padding: 0; transition: .2s ease; }
.carousel-dot[data-active="true"] { width: 22px; background: var(--brand); }

/* ---------------- RESIZABLE ---------------- */
.resizable { display: flex; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; height: 240px; background: var(--card); }
.resizable-pane { padding: 18px 20px; overflow: auto; min-width: 60px; }
.resizable-handle { width: 8px; cursor: col-resize; background: var(--border); flex: none; position: relative; transition: background .15s ease; }
.resizable-handle:hover, .resizable-handle.dragging { background: var(--brand); }
.resizable-handle::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 2px; height: 26px; border-radius: 99px; background: color-mix(in srgb, var(--foreground) 30%, transparent); }

/* ---------------- SCROLL AREA ---------------- */
.scrollarea { max-height: 230px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px; background: var(--card); }
.scrollarea::-webkit-scrollbar { width: 12px; }
.scrollarea::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 3px solid var(--card); }
.scrollarea::-webkit-scrollbar-thumb:hover { background: var(--muted-foreground); }
.scrollarea::-webkit-scrollbar-track { background: transparent; }
.scrollarea-row { padding: 10px 12px; border-radius: var(--radius); font-size: 14px; }
.scrollarea-row:hover { background: var(--accent); }

/* ---------------- COLLAPSIBLE ---------------- */
.collapsible-trigger { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ui-font); font-size: 14px; font-weight: 600; color: var(--foreground); background: transparent; border: none; cursor: pointer; padding: 0; }
.collapsible-trigger .ic { font-size: 17px; color: var(--muted-foreground); transition: transform .2s ease; }
.collapsible[data-open="true"] .collapsible-trigger .ic { transform: rotate(180deg); }
.collapsible-content { overflow: hidden; transition: height .25s ease; }
.collapsible-item { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13.5px; margin-top: 8px; background: var(--card); }

/* ---------------- RADIO GROUP (cards) ---------------- */
.radio-cards { display: grid; gap: 12px; }
.radio-card { display: flex; gap: 13px; padding: 16px 18px; border: var(--border-weight) solid var(--border-strong); border-radius: var(--radius-md); cursor: pointer; transition: .14s ease; }
.radio-card:hover { border-color: var(--muted-foreground); }
.radio-card[data-selected="true"] { border-color: var(--brand); background: var(--brand-tint); box-shadow: var(--active-glow); }
.radio-card .rc-body { flex: 1; }
.radio-card .rc-title { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.radio-card .rc-desc { font-size: 13px; color: var(--muted-foreground); margin-top: 3px; line-height: 1.5; }
.radio-card .rc-price { font-size: 15px; font-weight: 700; margin-left: auto; white-space: nowrap; }

/* ---------------- NUMBER INPUT ---------------- */
.number-input { display: inline-flex; align-items: center; border: var(--border-weight) solid var(--input); border-radius: var(--radius); overflow: hidden; }
.number-input button { width: 40px; height: 40px; background: var(--secondary); border: none; cursor: pointer; color: var(--foreground); display: flex; align-items: center; justify-content: center; }
.number-input button .ic { font-size: 16px; }
.number-input button:hover { background: var(--accent); color: var(--brand); }
.number-input button:disabled { opacity: .4; pointer-events: none; }
.number-input input { width: 62px; text-align: center; border: none; outline: none; background: var(--background); font-family: var(--ui-font); font-size: 15px; font-weight: 600; color: var(--foreground); height: 40px; -moz-appearance: textfield; }
.number-input input::-webkit-outer-spin-button, .number-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------------- TAGS INPUT ---------------- */
.tags-input { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; border: var(--border-weight) solid var(--input); border-radius: var(--radius); padding: 7px 10px; min-height: 44px; background: var(--background); }
.tags-input:focus-within { border-color: var(--ring); box-shadow: var(--focus-glow, 0 0 0 3px color-mix(in srgb, var(--ring) 18%, transparent)); }
.tag-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-tint); color: var(--brand); border: 1px solid var(--brand-tint-border); border-radius: var(--radius-pill); padding: 4px 6px 4px 11px; font-size: 13px; font-weight: 600; }
.tag-chip .x { cursor: pointer; opacity: .65; display: inline-flex; }
.tag-chip .x:hover { opacity: 1; }
.tag-chip .x .ic { font-size: 13px; }
.tags-input input { flex: 1; min-width: 90px; border: none; outline: none; background: transparent; font-family: var(--ui-font); font-size: 14px; color: var(--foreground); height: 28px; }

/* ---------------- RATING ---------------- */
.rating { display: inline-flex; gap: 4px; }
.rating button { background: none; border: none; padding: 0; cursor: pointer; line-height: 0; }
.rating .ic { font-size: 24px; color: var(--border-strong); transition: color .12s ease, transform .12s ease; }
.rating button:hover .ic { transform: scale(1.12); }
.rating .ic.on { color: #FFB020; }

/* ---------------- TIMELINE ---------------- */
.timeline { position: relative; padding-left: 26px; }
.timeline-item { position: relative; padding-bottom: 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -24px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); z-index: 1; }
.timeline-item::after { content: ""; position: absolute; left: -19px; top: 15px; bottom: -3px; width: 2px; background: var(--border); }
.timeline-item:last-child::after { display: none; }
.timeline-time { font-size: 12px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.timeline-title { font-size: 14px; font-weight: 600; margin: 1px 0 3px; }
.timeline-desc { font-size: 13px; color: var(--muted-foreground); line-height: 1.5; }

/* ---------------- BANNER ---------------- */
.banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius-md); }
.banner-brand { background: var(--brand-tint); border: 1px solid var(--brand-tint-border); }
.banner-brand .b-ic { color: var(--brand); }
.banner-dark { background: var(--gunmetal-primary); color: #fff; }
.banner-dark .b-ic { color: var(--cyan-dark); }
.banner .b-ic { font-size: 20px; flex: none; }
.banner .b-text { flex: 1; font-size: 14px; }
.banner .b-text b { font-weight: 700; }
.banner .b-text .sub { display: block; font-size: 12.5px; opacity: .8; margin-top: 1px; }

/* ---------------- ASPECT RATIO ---------------- */
.aspect { position: relative; width: 100%; border-radius: var(--radius-md); overflow: hidden; background: var(--muted); }
.aspect-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted-foreground); }
.aspect-inner .ic { font-size: 30px; opacity: .5; }

/* ---------------- KBD & CODE ---------------- */
.kbd { display: inline-flex; align-items: center; font-family: var(--ui-font); font-size: 12px; font-weight: 600; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 3px 8px; color: var(--foreground); background: var(--card); }
.codeblock { background: var(--gunmetal-secondary); color: #B9F5E8; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; line-height: 1.7; overflow-x: auto; }
.codeblock .tk-key { color: #7C5CFF; }
.codeblock .tk-str { color: #00FFD4; }
.codeblock .tk-com { color: rgba(255,255,255,.4); }
.code-inline { font-family: ui-monospace, Menlo, monospace; font-size: .9em; background: var(--secondary); padding: 2px 6px; border-radius: 5px; }

/* ---------------- DATE RANGE ---------------- */
.cal-day.range-start, .cal-day.range-end { background: var(--brand); color: var(--brand-contrast); font-weight: 600; }
.cal-day.range-mid { background: var(--brand-tint); border-radius: 0; }

/* ---------------- BAR CHART ---------------- */
.bars { display: flex; align-items: flex-end; gap: 14px; height: 180px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; max-width: 46px; background: var(--brand); border-radius: var(--radius-sm) var(--radius-sm) 0 0; transition: height .5s cubic-bezier(.4,0,.2,1); box-shadow: var(--active-glow); }
.bar.muted { background: var(--secondary); box-shadow: none; }
.bar-label { font-size: 11.5px; color: var(--muted-foreground); }

/* ---------------- DONUT ---------------- */
.donut-wrap { display: flex; align-items: center; gap: 26px; }
.donut-legend { display: flex; flex-direction: column; gap: 10px; }
.donut-legend .lg { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.donut-legend .dot { width: 11px; height: 11px; border-radius: 3px; }
.donut-legend .val { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; padding-left: 18px; }
