/* ============================================================
   components3.css — third batch
   ============================================================ */

/* ---------------- COLOR PICKER ---------------- */
.colorpicker { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cp-preview { width: 52px; height: 52px; border-radius: var(--radius-md); border: 1px solid var(--border-strong); flex: none; }
.cp-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-sw { width: 30px; height: 30px; border-radius: var(--radius); border: 2px solid var(--border); cursor: pointer; padding: 0; transition: transform .12s ease, box-shadow .12s ease; }
.cp-sw:hover { transform: scale(1.1); }
.cp-sw[data-active="true"] { box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--foreground); }
.cp-custom { width: 30px; height: 30px; border-radius: var(--radius); border: 2px dashed var(--border-strong); cursor: pointer; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.cp-custom .ic { font-size: 15px; color: #fff; mix-blend-mode: difference; }
.cp-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cp-hex { font-size: 13px; color: var(--muted-foreground); font-weight: 600; }

/* ---------------- TREE VIEW ---------------- */
.treeview { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 6px; background: var(--card); font-size: 14px; }
.tree-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--radius); cursor: pointer; }
.tree-row:hover { background: var(--accent); }
.tree-caret { font-size: 15px; color: var(--muted-foreground); transition: transform .15s ease; flex: none; }
.tree-caret-spacer { width: 15px; flex: none; }
.tree-ic { font-size: 16px; color: var(--brand); flex: none; }
.tree-label { flex: 1; }
.tree-tag { margin-left: auto; }

/* ---------------- DROPZONE ---------------- */
.dropzone { border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease; background: var(--muted); }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-tint); }
.dz-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.dz-ic .ic { font-size: 22px; }
.dz-hint { font-size: 14px; font-weight: 600; }
.dz-sub { font-size: 12px; color: var(--muted-foreground); margin-top: 4px; }
.dz-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.dz-file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13.5px; background: var(--card); }
.dz-file .ic { font-size: 16px; color: var(--brand); }
.dz-name { flex: 1; }
.dz-size { color: var(--muted-foreground); font-size: 12px; }
.dz-x { cursor: pointer; opacity: .6; display: inline-flex; }
.dz-x:hover { opacity: 1; color: var(--destructive); }
.dz-x .ic { font-size: 15px; }

/* ---------------- DRAWER (bottom sheet) ---------------- */
.sheet.bottom { top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-width: 100%; height: auto; max-height: 80vh; border-left: 0; border-top: 1px solid var(--border); border-radius: var(--radius-xl) var(--radius-xl) 0 0; animation: drawerUp .28s cubic-bezier(.4,0,.2,1); }
@keyframes drawerUp { from { transform: translateY(100%); } }
.sheet.bottom .sheet-body { max-height: 60vh; }

/* ---------------- TOOLBAR ---------------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); }
.toolbar .tb-search { width: 240px; }
.toolbar .tb-spacer { flex: 1; }
.toolbar .tb-sep { width: 1px; align-self: stretch; background: var(--border); margin: 0 2px; }
.toolbar-count { font-size: 13px; color: var(--muted-foreground); }

/* ---------------- NOTIFICATIONS ---------------- */
.notif-list { display: flex; flex-direction: column; }
.notif { display: flex; gap: 12px; padding: 14px 12px; border-radius: var(--radius); cursor: pointer; position: relative; }
.notif:hover { background: var(--accent); }
.notif.unread { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.notif-ic { width: 38px; height: 38px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex: none; }
.notif-ic .ic { font-size: 18px; }
.notif-title { font-size: 14px; font-weight: 600; }
.notif-desc { font-size: 13px; color: var(--muted-foreground); margin: 1px 0 4px; line-height: 1.45; }
.notif-time { font-size: 11.5px; color: var(--muted-foreground); }
.notif-dot { position: absolute; top: 18px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
