/*----------------------------------------
  Variables (override in tokens.css if needed)
----------------------------------------*/
:root {
  --color-navy:      #003366;
  --color-teal:      #00D0B0;
  --color-white:     #ffffff;
  --color-grey-50:   #f7fafc;
  --color-grey-100:  #edf2f7;
  --color-grey-200:  #e2e8f0;
  --color-grey-300:  #cbd5e0;
  --color-grey-400:  #a0aec0;
  --radius-sm:       4px;
  --radius-md:       8px;
  --radius-lg:       12px;
  --shadow-sm:       0 1px 3px rgba(0,0,0,0.1);
  --shadow-md:       0 4px 6px rgba(0,0,0,0.1);
  --font-stack:      'Poppins', sans-serif;
}

/*----------------------------------------
  Global reset & base
----------------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font-stack);
  background: var(--color-grey-50);
  color: var(--color-navy);
  line-height: 1.6;
}
h1, h2 {
  margin: 0 0 1rem;
  font-weight: 600;
  color: var(--color-navy);
}
a {
  text-decoration: none;
  color: inherit;
}

/*----------------------------------------
  Navbar
----------------------------------------*/
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #1D3557, #003366);
  padding: 1rem 2rem;
  box-shadow: var(--shadow-md);
}
.nav-container .logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li a,
.nav-links li button {
  color: var(--color-white);
  font-weight: 500;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.nav-links li a:hover,
.nav-links li button:hover {
  background: rgba(255,255,255,0.1);
}

/*----------------------------------------
  Main container & headings
----------------------------------------*/
.dashboard-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
}
.dashboard-container h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

/*----------------------------------------
  Button styles
----------------------------------------*/
.btn {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  transition: background 0.2s, transform 0.1s;
}
.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}
.btn-accent {
  background: var(--color-teal);
  color: var(--color-white);
}
.btn-accent:hover {
  background: #00b399;
  transform: translateY(-1px);
}
.btn-primary {
  background: #00D0B0;
  color: var(--color-white);
}
.btn-primary:hover {
  background: #138496;
  transform: translateY(-1px);
}

/*----------------------------------------
  QR Section & Form
----------------------------------------*/
.qr-section {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  text-align: left;
  width: 60%;
  margin: 0 auto 2rem;
}
.qr-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.qr-section form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  align-items: end;
}
.qr-section .form-group {
  display: flex;
  flex-direction: column;
}
.qr-section .form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.qr-section .form-group input,
.qr-section .form-group select,
.qr-section .form-group button {
  width: 100%;
}
.qr-section input[type="text"],
.qr-section input[type="number"],
.qr-section input[type="file"],
.qr-section select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-grey-300);
  border-radius: var(--radius-md);
  transition: border 0.2s;
}
.qr-section input:focus,
.qr-section select:focus {
  outline: none;
  border-color: var(--color-teal);
}

/*----------------------------------------
  Self-Registration Link
----------------------------------------*/
.self-registration-section {
  background: var(--color-white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  width: 60%;
  margin: 0 auto 2rem;
}
.self-registration-section h2 {
  text-align: center;
}
.self-registration-section .copy-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.self-registration-section input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-grey-300);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 500;
  background: var(--color-grey-50);
}
.self-registration-section .copy-icon {
  font-size: 1.5rem;
  color: var(--color-teal);
  cursor: pointer;
  transition: color 0.2s;
}
.self-registration-section .copy-icon:hover {
  color: #008f80;
}

/*----------------------------------------
  Generated QR Table
----------------------------------------*/
.generated-qr-section {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;

}
.generated-qr-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.generated-qr-section .search-container {
  text-align: right;
  margin-bottom: 1rem;
}
.generated-qr-section .search-container input {
  width: 250px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-grey-300);
  border-radius: var(--radius-md);
}
.generated-qr-section table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.generated-qr-section thead {
  background: var(--color-grey-200);
}
.generated-qr-section th,
.generated-qr-section td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-grey-100);
}
.generated-qr-section tbody tr:nth-child(even) {
  background: var(--color-grey-50);
}

/*----------------------------------------
  Action button in table
----------------------------------------*/
button.action-btn {
  background: none;
  border: 1px solid var(--color-grey-300);
  color: var(--color-teal);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
button.action-btn:hover {
  background: var(--color-teal);
  color: var(--color-white);
}

/*----------------------------------------
  Design Invite Modal
----------------------------------------*/
.design-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}
.design-modal.active {
  visibility: visible;
  opacity: 1;
}
.design-modal .modal-content {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.3s ease-out;
}
@keyframes fadeInUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);      opacity: 1; }
}
.design-modal .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-grey-400);
  transition: color 0.2s;
}
.design-modal .close:hover {
  color: var(--color-grey-600);
}

/*----------------------------------------
  Design form & preview area
----------------------------------------*/
.design-modal form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.preview-area {
  text-align: center;
  margin-bottom: 1rem;
}
.design-board {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  border: 2px dashed var(--color-grey-300);
  background: var(--color-white);
  overflow: hidden;
}
.bg-preview {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.draggable {
  position: absolute;
  z-index: 2;
  cursor: move;
}
.text-box {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
  user-select: text;
  background: rgba(255,255,255,0.8);
}
.qr-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
.text-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.text-controls select,
.text-controls input,
.text-controls button {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-grey-300);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  cursor: pointer;
}
.text-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/*----------------------------------------
  Responsive adjustments
----------------------------------------*/
@media (max-width: 768px) {
  .qr-section form,
  .design-modal form {
    grid-template-columns: 1fr;
  }
  .generated-qr-section .search-container {
    text-align: center;
  }
  .generated-qr-section .search-container input {
    width: 100%;
    max-width: 300px;
  }
}




       .copy-container {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .copy-container input {
            flex: 1;
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 5px;
            background-color: #f9f9f9;
            text-align: center;
            font-weight: bold;
        }

        .copy-icon {
            cursor: pointer;
            font-size: 1.5em;
            color: #007bff;
            transition: color 0.3s ease;
        }

        .copy-icon:hover {
            color: #0056b3;
        }


        
     body.modal-open {
  overflow: hidden;
}


.design-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.design-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.3s ease-in-out;
   margin: auto;
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

    
    .close {
      position: absolute;
      top: 10px;
      right: 20px;
      font-size: 24px;
      cursor: pointer;
      font-weight: bold;
      color: #333;
    }

    .form-group {
      margin-bottom: 1rem;
    }

    .preview-area {
      text-align: center;
      margin-top: 1rem;
    }

    .design-board {
      position: relative;
      width: 400px;
      height: 400px;
      border: 2px dashed #ccc;
      background: #fff;
      margin: 0 auto;
      overflow: hidden;
    }

    .bg-preview {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      object-fit: contain;
      z-index: 0;
    }

    .draggable {
      position: absolute;
      cursor: move;
      z-index: 2;
    }

    .text-box {
      padding: 5px;
      
      border-radius: 5px;
      outline: none;
      font-size: 20px;
      font-family: 'Poppins';
      white-space: pre-wrap;
      word-break: break-word;
      overflow: hidden;
      border: none;
      user-select: text;
      pointer-events: auto;
    }

    .text-box.selected {
      outline: 2px solid lightblue;
    }

    .qr-box {
      width: 100px;
      height: 100px;
      background: #fff;
      border: 1px solid #ccc;
      overflow: hidden;
      position: absolute;
      bottom: 20px;
      right: 20px;
      user-select: none;
      box-sizing: border-box;
    }

    #qr-inner {
      width: 100%;
      height: 100%;
    }

   
    .text-controls {
      display: flex;
      justify-content: center;
      gap: 10px;
      align-items: center;
      margin: 10px 0;
    }

    .text-controls select,
    .text-controls input,
    .text-controls button {
      padding: 4px 8px;
      font-size: 14px;
      border: 1px solid #ccc;
      border-radius: 5px;
      cursor: pointer;
    }

    .btn {
      background-color: #007bff;
      color: #fff;
      padding: 10px 20px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }

    .btn:hover {
      background-color: #0056b3;
    }

    .btn-accent {
      background-color: #28a745;
    }

    .btn-accent:hover {
      background-color: #218838;
    }

    .btn-primary {
      background-color: #17a2b8;
    }

    .btn-primary:hover {
      background-color: #138496;
    }

    .qr-img {
  	position: absolute;
  	width: 100px;
  	height: 100px;
  	object-fit: contain;
  	cursor: move;
  	z-index: 2;
   }


/* place these at the end of your file */

.tools-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
/* left column (QR form) takes 60%, right takes 40%: */
.tools-row .qr-section {
  flex: 0 0 60%;
}
.tools-row .self-registration-section {
  flex: 0 0 40%;
}

/* make sure each section’s internal margins are reset */
.tools-row .qr-section,
.tools-row .self-registration-section {
  margin: 0;
}


.btn-save {
  padding: 0.75rem 1.5rem;
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: var(--color-teal);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-save:hover {
  background: #00b399;
  transform: translateY(-1px);
}


.btn.btn-accent{
	background: #00D0B0;
}

/* center the modal title */
.design-modal .modal-content h2 {
  text-align: center;
  margin-bottom: 1.5rem; /* optional spacing */
}

/* override the default .btn (Generate) */
.btn {
  background-color: #00D0B0;    /* your teal */
  color: #ffffff;               /* white text */
}

/* hover state */
.btn:hover {
  background-color: #00b399;    /* slightly darker teal */
}

/* override .btn-primary (Sample Invite) */
.btn-primary {
  background-color: #001F3F;    /* your navy */
  color: #ffffff;               /* white text */
}

/* hover state */
.btn-primary:hover {
  background-color: #001732;    /* a bit darker navy */
}

/*──────────────────────────────────────────────────────────────────────────────
  RESPONSIVE OVERRIDES
──────────────────────────────────────────────────────────────────────────────*/

/* NAVBAR: stack & center on small */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
}

/* DASHBOARD: full-width container */
@media (max-width: 900px) {
  .dashboard-container {
    width: 100%;
    padding: 1rem;
  }
}

/* QR / SELF-REG sections: fluid & full-width */
@media (max-width: 768px) {
  .qr-section,
  .self-registration-section {
    width: 100%;
    max-width: none;
    margin: 1rem auto;
    padding: 1rem;
  }

  /* form grid collapses to single column */
  .qr-section form,
  .design-modal form {
    grid-template-columns: 1fr !important;
  }
}

/* GENERATED TABLE: scroll on mobile */
@media (max-width: 600px) {
  .generated-qr-section table {
    display: block;
    overflow-x: auto;
    width: 100%;
  }
}

/* TOOL ROW: stack on mobile */
@media (max-width: 768px) {
  .tools-row {
    flex-direction: column !important;
    gap: 1.5rem;
  }
  .tools-row .qr-section,
  .tools-row .self-registration-section {
    flex: 1 1 100%;
  }
}

/* HERO / FEATURES / HOW-IT-WORKS already fluid, but adjust text: */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.5rem; }
  .hero p  { font-size: 0.9rem; }
  .features h2,
  .how-it-works h2 {
    font-size: 1.25rem;
  }
  .feature p {
    font-size: 0.85rem;
  }
  .feature {
    padding: 1rem;
  }
}



/* when modal is open, lock the viewport */
html.modal-open,
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* ensure your modal still centers */
.design-modal.active {
  visibility: visible;
  opacity: 1;
  /* z-index: 9999 already covers it */
}




.design-modal .modal-content {
  overscroll-behavior: contain;
}
.design-modal .modal-content {
  max-height: calc(100vh - 2rem);  /* leave a little gutter */
  overflow-y: auto;
}


.draggable,
.qr-img {
  /* prevent the browser from scrolling/zooming when you touch‐drag */
  touch-action: none;
  /* ensure pointer events actually fire */
  -ms-touch-action: none;
}



/*──────────────────────────────────────────
  1) Table wrapper & base table styles
──────────────────────────────────────────*/
.table-wrapper {
  overflow-x: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.table-wrapper table {
  width: auto;
  min-width: 1200px;      /* force horizontal scroll before overflow */
  border-collapse: collapse;
  table-layout: fixed;
}

/*──────────────────────────────────────────
  2) Sticky first two columns (Serial & Guest)
──────────────────────────────────────────*/
.table-wrapper th:nth-child(1),
.table-wrapper td:nth-child(1),
.table-wrapper th:nth-child(2),
.table-wrapper td:nth-child(2) {
  position: sticky;
  background: var(--color-white);
  z-index: 3;  /* Highest for Serial */
  box-shadow: 2px 0 4px -2px rgba(0,0,0,0.15);
}
.table-wrapper th:nth-child(1),
.table-wrapper td:nth-child(1) {
  left: 0;
  width: 80px;     /* Serial */
}

.table-wrapper th:nth-child(2),
.table-wrapper td:nth-child(2) {
  position: sticky;
  background: var(--color-white);
  z-index: 2;  /* Just under Serial */
  box-shadow: 2px 0 4px -2px rgba(0,0,0,0.10);
  left: 80px;
  width: 140px;    /* Guest Name */
  padding: 0.4rem 0.8rem;
}

/*──────────────────────────────────────────
  3) Seat column: clear & white backdrop
──────────────────────────────────────────*/
.table-wrapper th:nth-child(3),
.table-wrapper td:nth-child(3) {
  position: relative;
  z-index: 1;                      /* Above zebra stripe, below sticky cols */
  background: var(--color-white);  /* Prevent bleed-through */
  padding: 0.3rem 1rem;            /* Extra horizontal room so “S” is never cut */
  min-width: 60px;                 /* Don’t collapse too small */
}

/*──────────────────────────────────────────
  4) Default padding & truncation
──────────────────────────────────────────*/
.table-wrapper th,
.table-wrapper td {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid var(--color-grey-100);
}

/*──────────────────────────────────────────
  5) Tighter columns: Serial, Seat, Table
──────────────────────────────────────────*/
.table-wrapper th:nth-child(1),
.table-wrapper td:nth-child(1),
.table-wrapper th:nth-child(3),
.table-wrapper td:nth-child(3),
.table-wrapper th:nth-child(4),
.table-wrapper td:nth-child(4) {
  padding: 0.3rem 0.5rem;
}

/*──────────────────────────────────────────
  6) Wider columns: Contact, Status, Checked‑In, Time
──────────────────────────────────────────*/
.table-wrapper th:nth-child(5),
.table-wrapper td:nth-child(5),
.table-wrapper th:nth-child(6),
.table-wrapper td:nth-child(6),
.table-wrapper th:nth-child(7),
.table-wrapper td:nth-child(7),
.table-wrapper th:nth-child(8),
.table-wrapper td:nth-child(8) {
  padding: 0.6rem 1.2rem;
}

/*──────────────────────────────────────────
  7) Contact column: wrap & custom width
──────────────────────────────────────────*/
.table-wrapper th:nth-child(5),
.table-wrapper td:nth-child(5) {
  white-space: normal;    /* allow wrapping */
  overflow: visible;
  text-overflow: clip;
  min-width: 200px;
  max-width: 400px;
  word-break: break-word;
}

/*──────────────────────────────────────────
  8) Zebra‑stripe rows
──────────────────────────────────────────*/
.table-wrapper tbody tr:nth-child(even) {
  background: var(--color-grey-50);
}

/*──────────────────────────────────────────
  9) Tablet adjustments
──────────────────────────────────────────*/
@media (max-width: 1024px) {
  .table-wrapper th,
  .table-wrapper td {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
}

/*──────────────────────────────────────────
 10) Mobile “card” layout
──────────────────────────────────────────*/
@media (max-width: 600px) {
  .table-wrapper {
    overflow: visible; /* disable x‑scroll */
  }
  .table-wrapper table,
  .table-wrapper thead,
  .table-wrapper tbody,
  .table-wrapper th,
  .table-wrapper td,
  .table-wrapper tr {
    display: block;
    width: 100%;
  }
  .table-wrapper thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  .table-wrapper tr {
    margin-bottom: 1rem;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    padding: 0.75rem;
  }
  .table-wrapper td {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border: none;
    white-space: normal;
    font-size: 0.85rem;
  }
  .table-wrapper td:before {
    content: attr(data-label) ":";
    font-weight: 600;
    color: var(--color-grey-400);
    margin-right: 0.5rem;
    flex: 0 0 40%;
  }
  .table-wrapper td:last-child {
    border-bottom: none;
  }
}



/* tighten up the Guest column (2nd) so it never expands past X */
.table-wrapper th:nth-child(2),
.table-wrapper td:nth-child(2) {
  width: 140px;           /* desired fixed width */
  max-width: 160px;       /* will never go wider than this */
  min-width: 120px;       /* won’t shrink smaller than this */
  padding: 0.4rem 0.6rem; /* adjust to taste */
  white-space: nowrap;    
  overflow: hidden;       
  text-overflow: ellipsis;
}


.table-wrapper th:nth-child(5),
.table-wrapper td:nth-child(5) {
  width: 140px;           /* desired fixed width */
  max-width: 160px;       /* will never go wider than this */
  min-width: 120px;       /* won’t shrink smaller than this */
  padding: 0.4rem 0.6rem; /* adjust to taste */
  white-space: nowrap;    
  overflow: hidden;       
  text-overflow: ellipsis;
}


.table-wrapper th:nth-child(3),
.table-wrapper td:nth-child(3) {
  width: 65px;           /* desired fixed width */
  max-width: 70px;       /* will never go wider than this */
  min-width: 60px;       /* won’t shrink smaller than this */
  padding: 0.4rem 0.6rem; /* adjust to taste */
  white-space: nowrap;    
  overflow: hidden;       
  text-overflow: ellipsis;
}



.generated-qr-section .toolbar {
  text-align: left;
  margin-bottom: 0.5rem;
}



/* simple on/off switch */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  margin-left: 1rem;
  vertical-align: middle;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-grey-200);
  border-radius: 20px;
  transition: .2s;
}
.switch .slider:before {
  position: absolute;
  content: "";
  height: 16px; width: 16px;
  left: 2px; bottom: 2px;
  background: white;
  border-radius: 50%;
  transition: .2s;
}
.switch input:checked + .slider {
  background: var(--color-teal);
}
.switch input:checked + .slider:before {
  transform: translateX(20px);
}
/test/