/* THEME: Reusable styles extracted from templates for portability across sites */

/* Typography and base adjustments (scoped where needed) */
body.login {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace !important;
  font-size: 0.875rem !important;
  line-height: 1.25 !important;
}

/* Utilities */
.hidden { display: none; }
.visually-hidden { display: none; }
.text-green { color: #16a34a; }
.text-red { color: #dc2626; }
.text-left-important { text-align: left !important; }
.text-right-important { text-align: right !important; }
.cell-max-75 { max-width: 75px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.break-words { overflow-wrap: break-word; word-wrap: break-word; }
.break-anywhere { overflow-wrap: anywhere; word-break: break-word; }
.hyphens-auto { hyphens: auto; }
.min-w-48 { min-width: 12rem; }

/* Sortable tables */
.sortable th:hover { background-color: #f3f4f6; cursor: pointer; }

/* Status row highlighting */
tr.unprotected td { background-color: #fef2f2; }

/* Player level backgrounds */
.level-mlb, .level-mlb td { background-color: #ffffff; }
.level-milb, .level-milb td { background-color: #dcfce7; }
.level-college, .level-none, .level-npb, .level-kbo,
.level-, .level-college td, .level-none td, .level-npb td, .level-kbo td, .level- td {
  background-color: #dbeafe;
}

/* Highest priority: IL flag */
.player-role-il, .player-role-il td { background-color: #fce7f3 !important; }

/* Navigation dropdowns */
.nav-dropdown { position: relative; }
.nav-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #d1d5db;
  padding: 0.5rem;
  z-index: 1000;
  display: none;
}
.dropdown-right { right: 0; left: auto; }
.nav-dropdown:hover .nav-dropdown-content { display: block; }
.nav-dropdown-content a {
  display: block;
  padding: 0.25rem 0;
  text-decoration: underline;
  font-size: 0.875rem;
}

/* Fixed header layout */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
}
.content-with-fixed-header { margin-top: 80px; }

/* Wishlist button styles */
.wishlist-btn,
.wishlist-btn-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: bold;
  font-size: 12px;
  margin-right: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}
.wishlist-btn { background-color: #fbbf24; }
.wishlist-btn:hover { background-color: #f59e0b; transform: scale(1.1); }
.wishlist-btn:active { transform: scale(0.95); }
.wishlist-btn-active { background-color: #16a34a; }
.wishlist-btn-active:hover { background-color: #15803d; transform: scale(1.1); }
.wishlist-btn-active:active { transform: scale(0.95); }

/* Roster status widget */
.top-right-sticky { position: fixed; top: 90px; right: 1rem; z-index: 50; }
.roster-item { display: flex; flex-direction: column; gap: 0.5rem; }
.roster-item button {
  background-color: #16a34a;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  cursor: default;
}

/* Page: Wishlist/Team headers */
.level-heading { font-size: 20px; }
.level-title { font-size: 32px; font-weight: bold; }
td.prev-year { background-color: #eee; }
h1 small { font-weight: normal; color: #777; font-size: 0.75em; }

/* Page: Trade form */
.player-option { display: none; }
.player-option.visible { display: block; }
.player-option.selected { background-color: #fef3c7; font-weight: bold; }
.trade-submit-bar {
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  z-index: 999;
  background-color: #fff;
  border-top: 1px solid #d1d5db;
}
.with-trade-submit { padding-bottom: 60px; }

/* Admin login overrides (scoped) */
body.login #content-main { max-width: 28rem; margin: 2rem auto; padding: 1rem; }
body.login .form-row { margin-bottom: 1rem; }
body.login .form-row label { display: block; font-size: 0.75rem; font-weight: bold; margin-bottom: 0.25rem; }
.vTextField { width: 100%; border: 1px solid #d1d5db; padding: 0.25rem 0.5rem; font-size: 0.875rem; font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; }
.submit-row input { width: 100%; background-color: #000; color: #fff; padding: 0.25rem 0.75rem; font-size: 0.875rem; text-decoration: underline; border: none; cursor: pointer; font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; }
.submit-row input:hover { background-color: #374151; }
.messagelist { border: 1px solid #d1d5db; padding: 0.75rem; margin-bottom: 1rem; background-color: #f9fafb; }
.messagelist .info { font-size: 0.875rem; margin: 0; }
.messagelist .error { font-size: 0.875rem; margin: 0; color: #dc2626; }
.messagelist .success { font-size: 0.875rem; margin: 0; color: #059669; }
body.login h1 { font-size: 1.125rem; font-weight: bold; margin-bottom: 1rem; }
.admin-tabs { display: flex; border-bottom: 1px solid #d1d5db; margin-bottom: 1rem; }
.admin-tab { flex: 1; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; text-align: center; border-bottom: 2px solid transparent; cursor: pointer; background: none; border: none; font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; }
.admin-tab.active { border-bottom-color: #000; background-color: #f9fafb; }
.admin-tab:hover { background-color: #f9fafb; }
body.login .login-form { display: none; }
body.login .login-form.active { display: block; }
.notice-box { border: 1px solid #d1d5db; padding: 0.75rem; margin-bottom: 1rem; background-color: #f9fafb; }


