/* =========================================================
   SEARCH DEMO WIDGET (scoped to .cb-demo-widget so its own
   --red / --ink / .hero / .btn definitions never leak into
   or get overridden by the page-level hero styles above)
   ========================================================= */
.cb-demo-widget{
    --red:#E2402A;
    --red-dark:#C2331F;
    --pink:#EC3C6D;
    --navy:#22243A;
    --navy-2:#2C2F47;
    --ink:#20222E;
    --ink-soft:#6B7080;
    --line:#E6E6EC;
    --panel:#F4F4F7;
    --row-alt:#F8F8FA;
    --page-bg:#FFFFFF;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    width:100%;
    max-width:500px;
}
.cb-demo-widget *{ box-sizing:border-box; }

.cb-demo-widget .frame{
    width:100%;
    background:#fff;
    border-radius:16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow:hidden;
    border:1px solid #e0e0e0;
    animation: float 3s ease-in-out infinite;
}
.cb-demo-widget .frame-bar{
    display:flex; align-items:center; gap:6px;
    padding:8px 12px;
    background:#F2F2F6;
    border-bottom:1px solid #E3E3EA;
}
.cb-demo-widget .frame-bar span{ width:8px; height:8px; border-radius:50%; background:#DADAE2; }

.cb-demo-widget .viewport{
    height:475px;
    overflow-y:auto;
    background:var(--page-bg);
    scrollbar-width:none;
}
.cb-demo-widget .viewport::-webkit-scrollbar{ display:none; }

.cb-demo-widget .topbar{
    display:flex; align-items:center; justify-content:space-between;
    padding:10px 16px;
    border-bottom:1px solid var(--line);
}
.cb-demo-widget .logo{ display:flex; align-items:center; gap:6px; }
.cb-demo-widget .logo img{ width:130px; }
.cb-demo-widget .about-btn{
    background:var(--red); color:#fff;
    font-size:8.5px; font-weight:700; letter-spacing:.02em;
    padding:7px 12px; border-radius:20px; white-space:nowrap;
}

.cb-demo-widget .demo-hero{
    margin:14px 16px 0;
    height:120px;
    border-radius:12px;
    overflow:hidden;
    background:
      repeating-linear-gradient(115deg, #2b2f3d 0px, #2b2f3d 26px, #23262f 26px, #23262f 52px),
      linear-gradient(120deg,#1c1e27,#33384a);
}
.cb-demo-widget .demo-hero-image{ width:100%; height:100%; object-fit:cover; display:block; }

.cb-demo-widget .layout{ padding:16px; }
.cb-demo-widget .main h1{ font-size:15px; font-weight:800; color:var(--ink); margin:2px 0 10px; }

.cb-demo-widget .search-card{ background:var(--panel); border-radius:10px; padding:12px; }
.cb-demo-widget .panel{ background:#fff; border-radius:8px; margin-bottom:10px; overflow:hidden; border:1px solid var(--line); }
.cb-demo-widget .panel-head{ background:var(--red); color:#fff; font-size:9.5px; font-weight:800; letter-spacing:.03em; padding:8px 12px; }
.cb-demo-widget .panel-body{ padding:12px; }
.cb-demo-widget .field-label{ font-size:10.5px; font-weight:600; color:var(--ink); margin-bottom:5px; }
.cb-demo-widget .field-row{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:10px; }
.cb-demo-widget .field-row:last-child{ margin-bottom:0; }
.cb-demo-widget .field{ flex:1; min-width:130px; }
.cb-demo-widget .input, .cb-demo-widget .select{
    width:100%; border:1.5px solid var(--line); border-radius:6px;
    padding:8px 10px; font-size:11px; color:var(--ink); background:#fff;
    position:relative; min-height:34px; height:34px;
}
.cb-demo-widget .input.is-active{ border-color:var(--red); box-shadow:0 0 0 3px rgba(226,64,42,.12); }
.cb-demo-widget .input .caret2{
    display:inline-block; width:1.5px; height:12px; background:var(--red);
    margin-left:1px; vertical-align:-2px; animation:cbBlink 1s step-start infinite;
}
.cb-demo-widget .placeholder-txt{ color:#A6A9B8; }
.cb-demo-widget .select{ color:#A6A9B8; display:flex; align-items:center; justify-content:space-between; }
.cb-demo-widget .select svg{ width:11px; height:11px; }
.cb-demo-widget .helper{ font-size:9px; color:var(--ink-soft); margin-bottom:5px; }

.cb-demo-widget .groups-field{ min-height:34px; display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.cb-demo-widget .chip{
    display:inline-flex; align-items:center; gap:5px;
    background:var(--navy); color:#fff; font-size:10px; font-weight:600;
    padding:4px 8px 4px 9px; border-radius:5px;
    opacity:0; transform:scale(.85);
    transition:opacity .25s ease, transform .25s ease;
    margin-top:-3px;
}
.cb-demo-widget .chip.show{ opacity:1; transform:scale(1); }
.cb-demo-widget .chip svg{ width:9px; height:9px; }

.cb-demo-widget .btn-row{ display:flex; justify-content:flex-end; flex-wrap:wrap; gap:6px; padding-top:2px; }
.cb-demo-widget .demo-btn{
    padding:8px 14px; border-radius:5px; font-size:9.5px; font-weight:700;
    letter-spacing:.02em; color:#fff; white-space:nowrap;
}
.cb-demo-widget .demo-btn.gray{ background:#AFB2C0; }
.cb-demo-widget .demo-btn.navy{ background:var(--navy); }
.cb-demo-widget .demo-btn.red{ background:var(--red); transition:transform .12s ease, background .12s ease; }
.cb-demo-widget .demo-btn.red.pressed{ transform:scale(.94); background:var(--red-dark); }

.cb-demo-widget .results-total{
    font-size:12px; font-weight:700; color:var(--ink);
    margin:14px 0 8px; display:flex; align-items:center; gap:6px;
}
.cb-demo-widget .count-badge{ display:inline-block; min-width:16px; }

.cb-demo-widget .table-wrap{ border-radius:8px; overflow:hidden; border:1px solid var(--line); }
.cb-demo-widget table{ width:100%; border-collapse:collapse; }
.cb-demo-widget thead tr{ background:var(--red); }
.cb-demo-widget thead th{
    color:#fff; font-size:8.5px; font-weight:800; letter-spacing:.03em;
    text-align:left; padding:7px 8px; white-space:nowrap;
}
.cb-demo-widget tbody td{
    padding:7px 8px; font-size:10px; color:var(--ink);
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    border-bottom:none;
}
.cb-demo-widget tbody tr{ border-bottom:1px solid var(--line); opacity:0; transform:translateY(6px); transition:opacity .3s ease, transform .3s ease; }
.cb-demo-widget tbody tr:last-child{ border-bottom:none; }
.cb-demo-widget tbody tr.show{ opacity:1; transform:translateY(0); }
.cb-demo-widget tbody tr:nth-child(even){ background:var(--row-alt); }
.cb-demo-widget tbody tr:hover{ background:#F1F1F6; }
.cb-demo-widget .rownum{
    display:inline-flex; align-items:center; justify-content:center;
    background:#EDEDF2; color:var(--ink-soft);
    width:20px; height:17px; border-radius:5px; font-size:9px; font-weight:700;
}
.cb-demo-widget td.name mark, .cb-demo-widget td.email mark{
    background:#FBDCD5; color:var(--red-dark); border-radius:3px; padding:0 1px; font-weight:700;
}
.cb-demo-widget .actions{ display:flex; align-items:center; justify-content:space-between; gap:6px; }
.cb-demo-widget .action-icon{ width:13px; height:13px; object-fit:contain; }

/* Keep the demo compact: hide the phone + contact-type columns permanently */
.cb-demo-widget thead th:nth-child(4), .cb-demo-widget tbody td:nth-child(4),
.cb-demo-widget thead th:nth-child(5), .cb-demo-widget tbody td:nth-child(5){ display:none; }


.cb-demo-widget .table-footer{
    display:flex; align-items:center; justify-content:space-between;
    padding:10px 4px 20px; flex-wrap:wrap; gap:10px;
    margin-top:10px;
}
.cb-demo-widget .footer-btns{ display:flex; gap:6px; }
.cb-demo-widget .footer-btns .fbtn:nth-child(1),

.cb-demo-widget .fbtn{
  display: flex;
    align-items: center;
    gap: 2px;
    background: var(--red);
    color: #fff;
    font-size: 8.5px;
    font-weight: 700;
    padding: 7px 11px;
    border-radius: 5px;
}
.cb-demo-widget .fbtn svg{ width:10px; height:10px; }

.cb-demo-widget .pagination{ display:flex; align-items:center; gap:5px; }
.cb-demo-widget .pg-btn{
    min-width:22px; height:22px; padding:0 6px;
    display:flex; align-items:center; justify-content:center;
    border-radius:5px; font-size:10px; font-weight:700;
    background:#EDEDF2; color:var(--ink);
    transition:background .2s ease, color .2s ease;
}
.cb-demo-widget .pg-btn.active{ background:var(--navy); color:#fff; }
.cb-demo-widget .pg-dots{ color:var(--ink-soft); font-size:10px; padding:0 2px; }
.cb-demo-widget 
  .pg-goto{ display:flex; align-items:center; gap:6px; margin-left:6px; position: relative;}
  .pg-goto input{
    width:22px; height:22px; border:1.5px solid var(--line); border-radius:5px;
    text-align:center; font-size:12px; color:var(--ink);
  }
  .pg-goto button{
    height:22px; padding:0 12px; border-radius:5px; background:var(--navy);
    color:#fff; font-size:11.5px; font-weight:700;
  }
  .goto-label{
    font-size:8px;
    color:var(--ink);
    white-space:nowrap;
    position: absolute;
    padding: 0px 2px;
    border-radius: 3px;
    font-size: 9px;
    color: #ffffff;
    left: -10px;
    top: -15px;
    cursor: pointer;
    background: #4c516d;
}
.pg-goto{
    display:flex;
    align-items:center;
    gap:8px;
    margin-left:12px;
}



@keyframes cbBlink{ 50%{ opacity:0; } }
@keyframes float{
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
  @media screen and (min-width: 320px) and (max-width: 1199px) {
    .hero .wrap {
        display:block;
    }
    .hero-copy p{
        max-width:100%;
    }
    .cb-demo-widget{
        margin:auto;
    }
    .hero-actions{
        justify-content:center;
    }
    .starwrap {
        text-align: center;
        margin-top:20px;
    }
 }
  @media screen and (min-width: 800px) and (max-width: 1199px) {
      .cb-demo-widget{
         max-width:700px;
      }
      .cb-demo-widget .actions {
        justify-content: flex-start;
        gap: 11px;
          }
  }
  @media screen and (min-width: 320px) and (max-width: 550px) {
      .cb-demo-widget .table-footer{
         display:block;
      }
      .pagination{
        text-align: center;
        margin-top: 21px;
        justify-content: center;
      }
      .cb-demo-widget .footer-btns {
          justify-content:center;
      }
  }
/*  .mouse-cursor{*/
/*    position:absolute;*/
/*    width:28px;*/
/*    height:28px;*/
/*    background:url("https://cdn-icons-png.flaticon.com/512/32/32339.png") no-repeat center;*/
/*    background-size:contain;*/
/*    pointer-events:none;*/
/*    z-index:9999;*/
/*    transition:left .8s ease, top .8s ease;*/
/*}*/

/*.mouse-cursor.click{*/
/*    transform:scale(.85);*/
/*}*/
#searchBtn {
    transition: all .15s ease;
}

#searchBtn.pressed {
    transform: scale(.94);
    filter: brightness(.85);
    box-shadow: inset 0 3px 8px rgba(0,0,0,.35);
    background:#000;
}
.mouse-cursor{
    position:absolute;
    width:28px;
    height:28px;
    z-index:99999;
    pointer-events:none;
}
.cb-demo-widget .viewport{
    position:relative;   /* <-- add this so cursor coords are relative to the frame */
    height:475px;
    overflow-y:auto;
    background:var(--page-bg);
    scrollbar-width:none;
}

.mouse-cursor{
    position:absolute;
    width:20px;
    height:20px;
    background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 2 L3 20 L8 16 L11 22 L14 20.5 L11 14.5 L17 14.5 Z" fill="black" stroke="white" stroke-width="1.2"/></svg>') no-repeat center;
    background-size:contain;
    pointer-events:none;
    z-index:99999;
    transition:left .8s ease, top .8s ease;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
}
.mouse-cursor.click{
    transform:scale(.85);
}