/* Global font */
body, input, select, button, label {
  font-family: Arial, sans-serif;
}

/* Wrapper defaults */
.wrapper {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  background: #fff;
}

/* Wider wrapper for admin pages */
body.admin .wrapper {
  max-width: 800px;
}

/* Site header */
.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.site-header .brand {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Page title (clean, no box) */
.page-title {
  margin: 6px 0 16px 0;
}
.page-title h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: #333;
}

/* Admin page title bar */
body.admin .page-title h1 {
  background: #c01616;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-weight: 600;
  line-height: 1.2;
}
.btn-primary {
  background: #c01616;
  color: #fff;
  font-size: 1rem;
}
.btn-primary:hover { background: #a51212; }
.btn-secondary {
  background: none;
  border: none;
  color: #555;
  font-size: 0.85rem;
  font-weight: normal;
  text-decoration: underline;
  padding: 6px;
}
.btn-secondary:hover {
  color: #000;
  text-decoration: none;
}
.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Form elements */
form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
form input, form select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin: 6px 0 12px;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  background: #fff;
}

/* Final show password toggle style */
.pw-toggle-right {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}
.pw-toggle {
  display: inline-flex;
  flex-direction: row-reverse; /* checkbox after text */
  align-items: center;
  gap: .35rem;
  font-size: 0.75rem;   /* smaller text */
  color: #555;
}
.pw-toggle input[type="checkbox"] {
  margin-left: 4px;
  margin-right: 0;
}

/* Tables */
.table th, .table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}
