/* ==========================================================================
   This file was generated by AI.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sen:wght@400;600;700;800&display=swap');

:root {
  --font-sans: 'Sen', system-ui, sans-serif;
  --color-bg: #0f0f12;
  --color-surface: #1a1a20;
  --color-border: #2d2d36;
  --color-text: #e8ece8;
  --color-text-muted: #88a088;
  --color-accent: #3e9632;
  --color-accent-hover: #63a958;
  --color-accent-glow: rgba(152, 227, 102, 0.35);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.5s;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  overflow-x: hidden;
  margin: 0;
}

title {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

/* ==========================================================================
   Layout – centered card
   ========================================================================== */

.center {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 420px;
  padding: 2.5rem 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  animation: cardIn 0.6s var(--ease-out) both;

  max-height: 70vh;    /* 1. Limits height to 80% of the screen */
  overflow-y: auto;    /* 2. Adds vertical scroll only when content overflows */
  overflow-x: hidden;  /* 3. Prevents accidental horizontal shifting */
  /* Optional: Smooth scrolling for internal anchors */
  scroll-behavior: smooth;
}

/* Custom Scrollbar for the .center card */
.center::-webkit-scrollbar {
  width: 8px; /* Slightly thinner for a modern look */
}

.center::-webkit-scrollbar-track {
  background: var(--color-surface); /* Matches the card background */
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0; /* Rounds the track to match card corners */
}

.center::-webkit-scrollbar-thumb {
  background: var(--color-border); /* Subtle, matches your input borders */
  border-radius: 10px;
  border: 2px solid var(--color-surface); /* Creates 'padding' around the thumb */
}

.center::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted); /* Highlights when hovering */
}

/* Firefox Support */
.center {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) var(--color-surface);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.center center {
  display: block;
  text-align: center;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h2 {
  display: block;
  margin: 0.75rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.center a:not([href^="http"]) {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--duration-fast), transform var(--duration-fast);
}

.center a:not([href^="http"]):hover {
  color: var(--color-accent-hover);
  transform: scale(1.02);
}

.center a:not([href^="http"]):active {
  transform: scale(0.98);
}

/* ==========================================================================
   Form elements
   ========================================================================== */

form {
  display: block;
  margin-top: 1.5rem;
}

input {
  font-family: var(--font-sans);
  font-size: 1rem;
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition:
    border-color var(--duration-normal),
    box-shadow var(--duration-normal),
    max-width var(--duration-normal) var(--ease-out);
}

input::placeholder {
  color: var(--color-text-muted);
}

input:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
  max-width: 100%;
}

input[type="submit"] {
  max-width: 140px;
  margin-top: 0.5rem;
  padding: 0.7rem 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--color-accent);
  border: none;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 12px var(--color-accent-glow);
  transition:
    background var(--duration-fast),
    transform var(--duration-fast),
    box-shadow var(--duration-fast);
}

input[type="submit"]:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--color-accent-glow);
}

input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px var(--color-accent-glow);
}

/* ==========================================================================
   Footer link (e.g. “Create a new link”, “Clear all links”)
   ========================================================================== */
.footer-links {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex; /* Makes them side-by-side */
  gap: 1rem;     /* Space between the links */
  white-space: nowrap;
}

.footer-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition:
    color var(--duration-fast),
    background var(--duration-fast),
    transform var(--duration-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
  background: rgba(99, 102, 241, 0.12);
  transform: translateY(-2px);
}

.footer-links a:active {
  transform: translateY(0);
}

/* ==========================================================================
   Created / info page
   ========================================================================== */

.created-success h1 {
  margin-bottom: 1.5rem;
}

.short-url-block {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.short-url-block label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.short-link {
  font-family: ui-monospace, monospace;
  font-size: 1rem;
  word-break: break-all;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--duration-fast);
}

.short-link:hover {
  color: var(--color-accent-hover);
}

.created-stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.short-url-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.copy-btn {
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--duration-fast), transform var(--duration-fast);
  margin-left: 0.8em;
}

.copy-btn:hover {
  background: var(--color-accent-hover);
  transform: scale(1.02);
}

/* ==========================================================================
   Dropdown (select) Styling
   ========================================================================== */

   select {
    font-family: var(--font-sans);
    font-size: 1rem;
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0.5rem auto 1.25rem;
    padding: 0.75rem 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    cursor: pointer;
    appearance: none; /* Removes default browser arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238888a0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    transition: 
      border-color var(--duration-normal), 
      box-shadow var(--duration-normal);
  }
  
  select:hover {
    border-color: rgba(99, 102, 241, 0.4);
  }
  
  select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
  }
  
  /* Optional: Label styling to match your h2 muted look */
  label[for="minutes_valid"] {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
    text-align: center;
  }




a{
  color: #6366f1;
}

img{
  width: 40px;
  margin-bottom: 1.5rem;
}