/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;800;900&display=swap');

:root {
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
  --primary-color: #0088cc;
  --primary-glow: rgba(0, 136, 204, 0.4);
  --accent-color: #7b2cbf;
  --text-main: #000000;
  --text-muted: #555555;
  --font-base: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --input-bg: rgba(255, 255, 255, 0.8);
}

@media (prefers-color-scheme: dark) {
  :root {
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --primary-color: #00d4ff;
    --primary-glow: rgba(0, 212, 255, 0.6);
    --text-main: #f8f9fa;
    --text-muted: #8b9bb4;
    --input-bg: rgba(0, 0, 0, 0.3);
  }
}

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

html, body {
  width: 100%;
  min-height: 100%;
  font-family: var(--font-base);
  color: var(--text-main);
  background-color: transparent;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('/assets/img/ws.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -2;
}

@media (prefers-color-scheme: dark) {
  body::before {
    filter: invert(1);
  }
}

/* Glass Panel Base */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  margin: 2rem auto;
  position: relative;
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 45px 0 rgba(0, 0, 0, 0.6);
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #fff, var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px var(--primary-glow);
  letter-spacing: -1px;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }

.subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Forms and Inputs */
.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

input[type="text"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-base);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
  background: var(--input-bg);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Buttons */
.btn {
  display: inline-block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn:hover {
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.btn:active {
  box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  box-shadow: none;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  box-shadow: none;
}

/* Back Button */
.back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  transition: color 0.2s;
  z-index: 100;
}
.back-btn:hover { color: #fff; }

/* Menus / Lists */
.menu-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 10;
  margin-top: 10vh;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  cursor: pointer;
  text-decoration: none;
  width: 360px;
  max-width: 90vw;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.menu-item::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.5s;
}

.menu-item:hover::before {
  left: 100%;
}

.menu-item:hover {
  border-color: rgba(0, 212, 255, 0.5);
  background: rgba(0, 212, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
}

.menu-icon {
  font-size: 2rem;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  flex-shrink: 0;
  border: 1px solid var(--glass-border);
}

.menu-item:hover .menu-icon {
  background: var(--primary-color);
  color: #000;
  box-shadow: 0 0 15px var(--primary-glow);
  border-color: transparent;
}

.menu-text { color: #fff; }
.menu-title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; display: block; margin-bottom: 2px;}
.menu-desc { font-size: 0.75rem; color: var(--text-muted); display: block; line-height: 1.3;}

/* Result Boxes */
.result-box {
  margin-top: 1.5rem;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  animation: fadeIn 0.5s ease forwards;
}

.error-box {
  background: rgba(255, 50, 50, 0.05);
  border: 1px solid rgba(255, 50, 50, 0.3);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Utilities */
.flex-row { display: flex; gap: 10px; align-items: center; }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.align-center { align-items: center; justify-content: center; display: flex; flex-direction: column; min-height: 100vh;}
