/* ────────────────────────────────
   Boston BioKatalyst — Unified UI v1.6
   Fix invisible buttons + enforce blue theme
   ──────────────────────────────── */

body {
  font-family: "Inter", Arial, sans-serif;
  background: #f7f9fc;
  color: #222;
  margin: 0;
  padding: 0;
}

#cdmo-login-box,
.cdmo-dashboard,
.admin-dashboard {
  max-width: 900px;
  margin: 60px auto;
  padding: 24px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* headings */
h2, h3 {
  color: #007bff;
  font-weight: 600;
}

/* ────────────────────────────────
   UNIVERSAL BUTTON FIX
   ──────────────────────────────── */
button,
input[type="button"],
input[type="submit"],
#btn-admin,
#btn-cdmo,
#auth-btn,
#tab-login,
#tab-register,
#logout-btn,
#go-dashboard-btn {
  display: inline-block;
  background: #007bff !important;
  color: #fff !important;
  border: 1px solid #0056b3 !important;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  margin: 5px;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
#btn-admin:hover,
#btn-cdmo:hover,
#auth-btn:hover,
#tab-login:hover,
#tab-register:hover,
#logout-btn:hover,
#go-dashboard-btn:hover {
  background: #0056b3 !important;
  border-color: #004a9c !important;
  color: #fff !important;
}

/* make active selections darker */
button.active,
#btn-admin.active,
#btn-cdmo.active,
#tab-login.active,
#tab-register.active {
  background: #0056b3 !important;
  color: #fff !important;
  border-color: #004a9c !important;
}

/* inputs */
input[type="email"],
input[type="password"],
input[type="text"] {
  width: 90%;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* toggle password eye */
#toggle-password {
  cursor: pointer;
  color: #555;
}

/* status text */
#login-status,
.status-text {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}

/* tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th, table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

table th {
  background: #007bff;
  color: #fff;
}

table tr:nth-child(even) {
  background: #f8f9fa;
}

/* header bars for dashboards */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #007bff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px 6px 0 0;
  margin-bottom: 20px;
}

.dashboard-header h2 {
  margin: 0;
  color: #fff;
}

.dashboard-header button {
  background: #fff;
  color: #007bff;
  border: 1px solid #fff;
}

.dashboard-header button:hover {
  background: #eaf2ff;
  color: #0056b3;
}

/* dashboard navigation */
.dashboard-nav button,
.dashboard-nav a {
  background: #007bff !important;
  color: #fff !important;
  border: 1px solid #0056b3;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.dashboard-nav button:hover,
.dashboard-nav a:hover {
  background: #0056b3 !important;
  border-color: #004a9c;
  color: #fff !important;
}



/* simple loading state */
button.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

button.loading::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  transform: translateY(-50%);
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

