* {
  margin: 0;

  padding: 0;

  box-sizing: border-box;

  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

body {
  padding-top: 2rem;
  display: none;
  background-color: #fff;
  background-image: url("assets/images/body-back.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}
body,
html {
  overscroll-behavior: none;
}
.action-cell button {
  margin: 2px;
}
#result {
  scrollbar-color: #656565a7 #ffffff00;
}
a {
  text-decoration: underline;
  color: #0a58ca;
}
.copy_url {
  margin-left: 0.4rem;
  cursor: pointer;
  color: #214fe9;
  user-select: none;
  font-size: 12px;
  padding: 2px 4px;
  border: 1px dashed #555;
  transition: color 0.2s;
}
.copy_url:hover {
  color: #0a58ca;
}
.time-cell {
  min-width: 140px;
}
.result {
  margin-top: 1rem;
}
.headtitle svg {
  width: 48px;
  height: 48px;
}
.mlinktitle svg {
  width: 48px;
  height: 48px;
}
.centerdiv {
  width: 100%;
  margin: 0px;
  background-color: #f9f9f99d;
  top: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  max-width: 400px;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0px 2px 15px 0px #80808087;
}
.centerdiv a {
  background-color: #cbcbcb;
  width: 70%;
  font-weight: bold;
}
.centerdiv a:hover {
  background-color: #a2a2a2;
  transform: scale(0.98);
}
.centerdiv h2 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  color: #333;
  font-weight: bold;
}
.backdrop {
  width: 100%;
  height: 100vh;
  margin: 0px;
  background-color: #fff;
  background-image: url("assets/images/body-back.png");
  top: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.credata {
  display: block;
}

button svg {
  pointer-events: none;
}
#myLinks {
  width: 100%;
  overflow-x: auto;
  position: relative;
}
.form-control {
  box-shadow: 0px 1px 0px 1px #333;
  background-color: #ffffff5c;
}
.form-control:active,
.form-control:focus {
  box-shadow: 0px 1px 0px 0px #333;
  border: 1px solid #333;
  transition: all 0.2s ease;
}
.amritinf {
  top: 10px;
  right: 20px;
  position: absolute;
  color: #33333384;
  font-size: 13px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
}
.amritinf a {
  text-decoration: none;
  color: #666;
}
#shortenForm button {
  width: 100%;
  background-color: #1317e993;
  border: none;
  border-radius: 6px;
  color: white;
  box-shadow: 2px 2px 0px 0px #1317e9da;
  border: 1px solid #1317e9da;
}
#shortenForm button:hover {
  transform: scale(0.98);
  transition: all 0.2s ease;
}

#myLinks {
  overflow-y: auto !important;
  scrollbar-width: thin;
  max-height: calc(100vh - 90px);
  background-color: transparent;
}
#myLinks .table {
  position: relative;
}
#myLinks .table-light {
  position: sticky;
  top: 0;
}
.pghinf {
  margin-top: 1rem;
  color: #333;
  font-size: 13px;
}
input:read-only {
  background: #ffd6d6b0;
}
input:read-only:focus,
input:read-only:active {
  background: #ffd6d6b0;
}
.pghinf a {
  color: #333;
  font-size: 13px;
  text-decoration: none;
}

/* ---------------------------------------------------------
   1.  Basic variables – easy to tweak in one place
   --------------------------------------------------------- */
:root {
  --footer-bg: #000000c5; /* Dark background (GitHub‑like) */
  --footer-fg: #c9d1d9; /* Light text */
  --footer-link: #b9b9b9; /* Accent colour for links */
  --footer-link-hover: #8479ff;
  --footer-padding: clamp(1rem, 4vw, 2.5rem);
  --col-gap: clamp(2rem, 5vw, 4rem);
}

/* ---------------------------------------------------------
   2.  Global reset for the footer (doesn't affect the rest)
   --------------------------------------------------------- */
.site-footer {
  margin-top: 40px;
  background: var(--footer-bg);
  color: var(--footer-fg);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  line-height: 1.6;
  padding: var(--footer-padding);
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
  box-shadow: 2px 10px 0px 1px rgb(180, 56, 56);
}

/* ---------------------------------------------------------
   3.  Layout – Flexbox, wrapping at narrow viewports
   --------------------------------------------------------- */
.footer-brand,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--col-gap);
}

/* Brand (logo + tagline) takes full width on tiny screens */
.footer-brand {
  flex-basis: 100%;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--footer-padding);
}

/* Logo – simple text, you can replace with an <img> */
.footer-brand .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--footer-fg);
  text-decoration: none;
}

/* Tagline – smaller & subtle */
.footer-brand .tagline {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Navigation columns */
.footer-nav {
  width: 100%;
  justify-content: space-between;
}

/* Each column */
.footer-col {
  flex: 1 1 200px; /* shrink‑grow‑basis – ensures a min‑width */
  min-width: 140px; /* prevents columns from getting too narrow */
}

/* Heading for each column */
.footer-col .col-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--footer-fg);
}

/* Links list */
.footer-col .col-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Individual link */
.footer-col .col-links a {
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Hover / focus state – good for keyboard users */
.footer-col .col-links a:hover,
.footer-col .col-links a:focus {
  color: var(--footer-link-hover);
}

/* ---------------------------------------------------------
   4.  Bottom line (copyright)
   --------------------------------------------------------- */
.footer-bottom {
  margin-top: var(--footer-padding);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ---------------------------------------------------------
   5.  Responsive tweaks – small screens
   --------------------------------------------------------- */
@media (max-width: 620px) {
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer-col {
    flex-basis: 100%; /* stack columns vertically on very narrow screens */
  }

  .footer-nav {
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  #myLinks .table-light {
    position: unset;
  }
  .stcklft1 {
    position: sticky;
    left: 0px;
    z-index: 1000;
    top: 0 !important;
  }
  .stcklft2 {
    position: sticky;
    left: 20px;
    z-index: 1000;
    top: 0 !important;
  }
  .long-cell {
    z-index: 10;
  }

  .clicks-cell {
    font-weight: bold;
  }
  .headtitle svg {
    width: 30px;
    height: 30px;
  }
  .mlinktitle svg {
    width: 30px;
    height: 30px;
  }
}
