/* shared/theme.css */

/* Core Resets & Fonts */
html, body {
  margin: 0;
  padding: 0;
  background: #111;
  color: #eee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Form Controls */
input, select {
  background: #181818;
  color: #eee;
  border: 1px solid #383838;
  border-radius: 4px;
  padding: 0.35rem 0.55rem;
  font-size: 0.88rem;
  box-sizing: border-box;
}

input:focus, select:focus {
  border-color: #26a69a;
  outline: none;
}

input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

fieldset {
  border: 1px solid #2e2e2e;
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  margin: 0;
}

legend {
  font-size: 0.78rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 0.35rem;
}

label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 0;
  font-size: 0.88rem;
}

/* Buttons */
.btn {
  border: 1px solid #444;
  border-radius: 4px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: #26a69a;
  border-color: #26a69a;
  color: #fff;
}
.btn-primary:hover { background: #2bbbad; }

.btn-secondary {
  background: #252525;
  color: #eee;
}
.btn-secondary:hover { background: #333; }

.btn-danger {
  background: #ef5350;
  border-color: #ef5350;
  color: #fff;
}
.btn-danger:hover { background: #e53935; }

.hidden { display: none !important; }

/* Toast Notifications */
#toast-container {
  position: fixed !important;
  top: 1.25rem !important;
  right: 1.25rem !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
  pointer-events: none !important;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 280px;
  max-width: 420px;
  padding: 0.8rem 1.1rem;
  border-radius: 6px;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  transform: translateX(110%);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.25s ease;
}

.toast.show { opacity: 1; transform: translateX(0); }
.toast-success { background: #51a351; }
.toast-info { background: #2f96b4; }
.toast-warning { background: #f89406; }
.toast-error { background: #bd362f; }

.toast-icon { flex-shrink: 0; width: 24px; height: 24px; }
.toast-icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.5; }
.toast-body { display: flex; flex-direction: column; gap: 0.15rem; }
.toast-title { font-size: 0.92rem; font-weight: 700; }
.toast-message { font-size: 0.82rem; opacity: 0.95; }