/* General */
html {
    scroll-behavior: smooth;
}
html, body { 
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-width: 320px;
    font-family: 'Roboto', sans-serif;
    color: #ffffffcc;
    background-color: #242424;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(27, 27, 30);
    background-size: cover;
    z-index: -1;
}

.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.wrapper > * {
    z-index: 1; 
    color: #ffffffcc;
}

main.main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
}

/* Preview & Form */
.preview {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

.glass-window {
    width: 100%;
    max-width: 480px;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform, backdrop-filter;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.6rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative; 
    overflow: hidden; 
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(164, 215, 244, 0.15), transparent);
    opacity: 0;
}

.glass-window.shimmer-once::before {
    animation: shimmer-once 1s ease forwards;
    opacity: 1;
}

@keyframes shimmer-once {
    0% { left: -100%; opacity: 1; }
    80% { left: 100%; opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.glass-window h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 3.2vw, 1.8rem); 
}

.glass-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.6rem;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform, backdrop-filter;
    color: #fff;
    font-size: clamp(0.9rem, 2.4vw, 1.1rem); 
    transition: border-color 0.3s ease;
}

.glass-input:focus {
    outline: none;
    border-color: #a4d7f4;
    background: rgba(255, 255, 255, 0.1);
}

/* Content */
.content-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 10px;
    padding: 0 20px;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.main p {
    font-size: clamp(0.72rem, 1.6vw, 1rem);
    line-height: 1.6;
    margin-bottom: 1.6rem;
    opacity: 0.9;
}

/* Loader */
.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform, backdrop-filter;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  margin: 1rem 0;
  position: relative;
  overflow: hidden;
}

.loader::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(164, 215, 244, 0.1), transparent);
  animation: shimmer-once 2s infinite;
}

.loader-spinner {
  border: 6px solid rgba(255, 255, 255, 0.1);
  border-top: 6px solid #a4d7f4;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  box-shadow: 
    0 0 20px rgba(164, 215, 244, 0.3),
    inset 0 0 15px rgba(164, 215, 244, 0.1);
  position: relative;
  z-index: 1;
}

@keyframes shimmer-once {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: currentColor !important;
    transition: all 9999s ease-in-out 0s;
}

/* Footer */
.footer {
  margin-top: 1rem;
  width: 100%;
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform, backdrop-filter;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  position: relative;
  overflow: hidden; 
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(164, 215, 244, 0.15), transparent);
  animation: shimmer-once 1s ease forwards;
  pointer-events: none;
  z-index: 2;
}

.footer i {
  color: #a4d7f4;
  font-size: clamp(0.75rem, 2vw, 0.9rem);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.footer-label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: none; 
  text-align: center;
}

.footer-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 500;
  line-height: 1.2;
  white-space: normal;
  flex: none;
  text-align: center;
}

.examples-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0.2rem 0;
  justify-content: center;
  flex: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(164, 215, 244, 0.3) rgba(255, 255, 255, 0.1);
}

.examples-row::-webkit-scrollbar { height: 6px; }
.examples-row::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1);  border-radius: 3px; }
.examples-row::-webkit-scrollbar-thumb { background: rgba(164, 215, 244, 0.3); border-radius: 3px; }
.examples-row::-webkit-scrollbar-thumb:hover { background: rgba(164, 215, 244, 0.5); }

.example-item {
  background: rgba(164, 215, 244, 0.1);
  border: 1px solid rgba(164, 215, 244, 0.25);
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  font-size: clamp(0.7rem, 1.8vw, 0.8rem);
  color: #a4d7f4;
  font-family: 'Courier New', monospace;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.example-item:hover {
  background: rgba(164, 215, 244, 0.15);
  border-color: rgba(164, 215, 244, 0.3);
}

/* Adaptive */
@media (max-width: 968px) {
  .footer-content { gap: 0.6rem; }
  .footer-description { font-size: 0.85rem; min-width: 160px; }
  .examples-row { gap: 0.4rem; }
  .example-item { padding: 0.25rem 0.5rem; font-size: 0.75rem; }
}

@media (max-width: 768px) {
  .preview { margin-top: 2rem; }
  .content-container { margin-top: 30px; }
  .content { gap: 1.5rem; }
  .main h3 { white-space: normal; font-size: 1rem; height: auto; }
  .footer-content { flex-direction: column; gap: 0.4rem; text-align: center; }
  .footer-description { white-space: normal; min-width: auto; font-size: 0.8rem; }
  .examples-row { width: 100%; justify-content: flex-start; padding: 0.1rem 0; }
}

@media (max-width: 480px) { 
  .glass-window { padding: 1.2rem; } 
  .examples-row { gap: 0.3rem;  }
  .example-item { padding: 0.2rem 0.4rem; font-size: 0.7rem; }
  .footer-description { font-size: 0.75rem; }
}

