@import url('https://fonts.googleapis.com/css2?family=Allerta+Stencil&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
    /* Your existing layout */
    font-family: system-ui, -apple-system, sans-serif;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    min-height: 100vh;
  
    /* THE VIGNETTE & TEXTURE SETUP */
    background-color: #1a1a1a; /* Slightly lighter center so the bricks show up well */
    
    background-image: 
        /* Layer 1 (Top): A dark shadow that is transparent in the center and pitch black at the edges */
        radial-gradient(circle at center, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.95) 100%),
        /* Layer 2 (Bottom): Your bricks */
        url('bricks.jpg');
    
    /* Scale the shadow to cover the screen, scale the bricks up so they don't repeat as much */
    background-size: 100vw 100vh, 300px; 
    
    /* Keep the shadow locked in place, let the bricks tile */
    background-repeat: no-repeat, repeat;
    background-attachment: fixed, fixed;
    
    /* The Magic Mix: The shadow acts normal, the bricks multiply against the base color */
    background-blend-mode: normal, multiply; 
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid #444;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    z-index: 1000; pointer-events: none;
}

.container {
  /* Keep your layout sizes */
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  text-align: center;
  border-radius: 12px;

  /* The Smoked Glass Effect */
  background: rgba(18, 18, 18, 0.65); /* Dark, but transparent */
  
  /* A subtle edge highlight to make the glass pop */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.12); /* Slightly brighter on top to fake lighting */
  
  /* A deep shadow to separate it from the wall, plus a TINY hint of ambient purple neon glow */
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.8), 
    0 0 30px rgba(138, 43, 226, 0.05);
}

p {
  color: #a0a0a0;
  font-size: 0.95rem;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hidden {
  display: none !important;
}

/* Upload Box UI */
.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 1rem;
  background-color: #181818;
  border: 2px dashed #3a3a3a;
  border-radius: 8px;
  cursor: pointer;
  color: #888888;
  transition: all 0.2s ease;
}

.upload-box:hover {
  border-color: #666666;
  background-color: #222222;
  color: #cccccc;
}

/* Buttons */
button {
  background-color: rgba(255, 255, 255, 0.05); /* Very faint translucent background */
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.15); /* Subtle grey outline */
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  
  /* Switched to 'all' so the color and glow fade in smoothly */
  transition: all 0.2s ease, transform 0.1s; 
  display: inline-block;
  backdrop-filter: blur(4px); /* Extra layer of glass */
}

/* The Neon Hover Effect */
button:hover {
  background-color: rgba(138, 43, 226, 0.15); /* Faint purple fill */
  border-color: rgba(138, 43, 226, 0.6); /* Purple glowing edge */
  color: #ffffff; /* Brighten text */
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.4); /* Neon aura */
}

button:active {
  transform: scale(0.96);
}

.secondary-btn {
  background-color: transparent;
  color: #888888;
  border: 1px dashed rgba(255, 255, 255, 0.15); /* Dashed border to match the upload box style */
  width: 100%;
  margin-top: 1rem;
}

.secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(138, 43, 226, 0.6);
  color: #e0e0e0;
}

/* Inputs */
.url-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

input[type="text"] {
  flex-grow: 1;
  padding: 10px;
  background-color: #121212;
  color: #ffffff;
  border: 1px solid #333333;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus {
  border-color: #666666;
}

.upload-box.drag-over {
  border-color: #ffffff;
  background-color: #2a2a2a;
  color: #ffffff;
  transform: scale(1.02); /* Slight pop out effect */
}