/* Encrodrop shared styles -- loaded by all templates */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0f0f23;
  color: #e0e0e0;
  min-height: 100vh;
}

.logo { font-weight: 700; color: #7c5cfa; }

/* Buttons (base — templates add specifics) */
button {
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.logout-btn {
  background: none;
  border: 1px solid #333;
  color: #aaa;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
}
.logout-btn:hover { border-color: #555; color: #e0e0e0; }

/* Navigation */
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-link { color: #7c5cfa; text-decoration: none; font-size: 0.85rem; }
.nav-link:hover { text-decoration: underline; }
.nav-link.active { font-weight: 600; }

.user-name { font-size: 0.8rem; color: #888; }

/* Inputs */
input {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #333;
  border-radius: 8px;
  background: #12121f;
  color: #e0e0e0;
  font-size: 0.95rem;
}
input:focus { outline: none; border-color: #7c5cfa; }

/* Labels */
label { display: block; font-size: 0.8rem; color: #aaa; margin-bottom: 0.35rem; margin-top: 1rem; }

/* Links */
a { color: #7c5cfa; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #4caf50;
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1000;
}
.toast.show { opacity: 1; }
.toast.error { background: #ff6b6b; }

/* Error message */
.error {
  background: #3d1530;
  color: #ff6b6b;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
