.border {
    border: 2px solid red;
}

.flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.gap {
    gap: 10px;
}

.align-items {
    align-items: center;
}

.bg-black {
    background-color: black;
    /* color: white; */
}

.bg-grey{
    background-color: #2d2c2c;
}

.invert {
    filter: invert(1);
}

.m-1{
    margin: 5px;
}

.p-1{
    padding: 5px
}

.rounded{
    border-radius: 5px;
}

/* ---------- configurable variables ---------- */
:root{
  --scrollbar-bg: #0f0f10;      /* track background */
  --scrollbar-thumb: #2f2f2f;   /* thumb (drag handle) */
  --scrollbar-thumb-hover: #3f3f3f;
  --scrollbar-thumb-active: #4f4f4f;
  --scrollbar-border: rgba(255,255,255,0.04); /* subtle outline */
  --scrollbar-radius: 8px;
  --scrollbar-width: 12px; /* change to 8px / 16px as needed */
}

/* ---------- apply to whole page ---------- */
html, body {
  scrollbar-width: thin; /* Firefox: 'auto' | 'thin' | 'none' */
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-bg); /* thumb track */
}

/* ---------- WebKit (Chrome, Edge, Safari) ---------- */
/* vertical scrollbar width */
::-webkit-scrollbar {
  width: var(--scrollbar-width);
  height: var(--scrollbar-width); /* horizontal */
}

/* track (background) */
::-webkit-scrollbar-track {
  background: var(--scrollbar-bg);
  border-radius: var(--scrollbar-radius);
}

/* thumb (drag handle) */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--scrollbar-thumb), var(--scrollbar-thumb-hover));
  border-radius: var(--scrollbar-radius);
  border: 2px solid var(--scrollbar-border);
}

/* thumb hover */
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--scrollbar-thumb-hover), var(--scrollbar-thumb-active));
}

/* thumb active (while dragging/clicked) */
::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-thumb-active);
}

/* corner (where horizontal & vertical meet) */
::-webkit-scrollbar-corner {
  background: var(--scrollbar-bg);
}

/* Optional: hide on small screens (mobile) */
@media (max-width: 600px){
  :root { --scrollbar-width: 8px; }
}

/* ---------- example: scoped container variant ---------- */
/* Use this if you only want a dark scrollbar for a specific scrollable panel */
.my-scrollable {
  max-height: 400px;
  overflow: auto;
  /* For Firefox scoped styling */
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-bg);
}
.my-scrollable::-webkit-scrollbar { width: var(--scrollbar-width); }
.my-scrollable::-webkit-scrollbar-track { background: var(--scrollbar-bg); }
.my-scrollable::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: var(--scrollbar-radius); }
