/* css/style.css */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --bg: #f0f5ff;
  --card: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(135deg, #e0e7ff 0%, #f0f5ff 100%);
  color: var(--text);
  min-height: 100vh;
  padding: 1.5rem;
  line-height: 1.5;
}

.container {
  max-width: 480px;
  margin: 2rem auto;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.header {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}

.header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.header p {
  opacity: 0.9;
  font-size: 0.95rem;
}

.content {
  padding: 2rem 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

input[type="text"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1.1rem;
  font-family: inherit;
  transition: all 0.2s;
  text-transform: uppercase;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 1rem;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(37,99,235,0.2);
}

.btn:active {
  transform: translateY(0);
}

.result-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 2px dashed #cbd5e1;
  text-align: center;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.result-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

.passcode-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
}

.footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .container {
    margin: 1rem;
  }
  .header h1 {
    font-size: 1.5rem;
  }
}
/* Tambahan untuk tombol samping-sampingan */
.button-group {
  display: flex;
  gap: 12px;
  margin-top: 1rem;
}

.btn {
  flex: 1;
  padding: 1rem;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.generate-btn {
  background: var(--primary);
  color: white;
  border: none;
}

.generate-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(37,99,235,0.2);
}

.reset-btn {
  background: #6b7280;
  color: white;
  border: none;
}

.reset-btn:hover {
  background: #4b5563;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(75,85,99,0.2);
}

/* Result box tetap sama, tapi sekarang pakai v-show */
.result-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 2px dashed #cbd5e1;
  text-align: center;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
}

.passcode-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 3px;
}

/* Responsif kecil */
@media (max-width: 420px) {
  .button-group {
    flex-direction: column;
    gap: 10px;
  }
}