/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.btn:hover { opacity: .85; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 114, 206, .2);
}
.btn-primary:hover { background: #005fae; opacity: 1; }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Inputs */
.input {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .9rem;
  outline: none;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 114, 206, .12);
}
.input::placeholder { color: var(--text2); }

/* Form group */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .8rem;
  color: var(--text2);
  margin-bottom: 6px;
  font-weight: 600;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--soft-shadow);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: .85rem;
  z-index: 100;
  animation: fadeIn .2s;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.toast-ok { border-left: 4px solid var(--green); }
.toast-err { border-left: 4px solid var(--red); }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}
.modal h3 { margin: 0 0 16px; }
.modal label { font-size: .85rem; color: var(--text2); display: block; margin-bottom: 6px; }
.modal .input { width: 100%; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Alert */
.alert { padding: 14px 20px; border-radius: var(--radius); margin-bottom: 24px; font-size: .85rem; }
.alert-error { background: #fef2f2; border: 1px solid rgba(200, 32, 43, .3); color: var(--red); }
.alert-warn { background: #fffbeb; border: 1px solid rgba(246, 189, 22, .4); color: #946900; }

/* Loading */
.loading { text-align: center; padding: 60px; color: var(--text2); }

/* Error message */
.error-msg {
  color: #ff8a8a;
  font-size: .8rem;
  margin-top: 8px;
  display: none;
}
