/* =========================
   GLOBAL BUTTON BASE
========================= */

button {
  font-family: Arial, Helvetica, sans-serif;
  transition: background 0.15s ease, color 0.15s ease, border 0.15s ease;
  box-sizing: border-box;
}

/* =========================
   PRIMARY (MAIN ACTION)
========================= */

.btn-primary {
  background: #111;
  color: #fff;
  border: 1px solid #111;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary:hover {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}

/* =========================
   OUTLINE (NEUTRAL ACTION)
========================= */

.btn-outline {
  background: #fff;
  color: #111;
  border: 1px solid #111;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.btn-outline:hover {
  background: #111;
  color: #fff;
  border: 1px solid #111;
}

/* =========================
   DANGER / CANCEL
========================= */

.btn-danger {
  background: #fff;
  color: #ff4d4d;
  border: 1px solid #ff4d4d;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.btn-danger:hover {
  background: #ff4d4d;
  color: #fff;
  border: 1px solid #ff4d4d;
}

/* =========================
   ICON BUTTON (UNIFIED)
========================= */

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  background: #9a9a9a;
  color: #fff;
  border: 1px solid transparent;

  font-family: Arial, sans-serif;
}

.btn-icon:hover {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}

/* =========================
   INFO BUTTON (SPECIAL CASE)
========================= */

.info-btn {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 24px;
  height: 24px;

  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  font-style: italic;
  font-family: Georgia, serif;

  background: #9a9a9a;
  color: #fff;
  border: 1px solid transparent;
}

.info-btn:hover {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}

/* =========================
   ADMIN LOGIN PAGE
========================= */

.login-page {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f4f4;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  width: 100%;
  max-width: 340px;
  background: #fff;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.login-box h1 {
  margin-top: 0;
  margin-bottom: 25px;
  font-size: 28px;
}

.login-box input {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  box-sizing: border-box;
  font-size: 15px;
}

/* =========================
   GLOBAL INPUT FIX (iOS + UI CONSISTENCY)
========================= */

input,
select,
textarea {
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border: 1px solid #111;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

.login-box .error {
  background: #ffe7e7;
  border: 1px solid #ffb3b3;
  color: #a40000;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 14px;
}

.category-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #555;
  background: #f7f7f7;
  color: #555;
}

/* =========================
   PUBLIC FORM INPUT FIX (INLINE OVERRIDE)
========================= */

/* =========================
   PUBLIC FORM INPUT BASE
========================= */

.form-input {
  width: 100%;
  max-width: 100%;
  padding: 10px;
  margin: 5px 0 15px 0;
  box-sizing: border-box;

  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;

  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  color: #111;
}

.form-input:focus {
  outline: none;
  border: 1px solid #111;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

/* =========================
   FORM FIELD LAYOUT
========================= */

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 6px;
}

.sub-details,
.broken-details {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 300ms ease, opacity 200ms ease;
}