/* PAGE */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
}

/* TOP BAR */
.top-bar {
  background: #111;
  color: white;

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

  padding: 15px;

  font-size: 18px;
  font-weight: bold;
}

#topBarRight {
  text-align: right;
  line-height: 1.4;
}

/* MAIN AREA */
.main-layout {
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  grid-template-rows: 55vh 35vh;
  gap: 10px;
  padding: 10px;
  height: calc(100vh - 70px);
}

.left-panel {
  grid-row: 1 / 3;
  grid-column: 1;
}

.right-panel {
  grid-row: 1;
  grid-column: 3;
}

/* PANELS */
.left-panel,
.center-panel,
.right-panel,
.bottom-panel {
  background: white;
  border-radius: 8px;
  padding: 10px;
  overflow-y: auto;
}

/* BOTTOM PANEL */
.bottom-panel {
  grid-column: 2 / 4;
  grid-row: 2;
  margin: 0;
  height: auto;
  overflow-y: auto;
}

.center-panel {
  grid-row: 1;
  grid-column: 2;
  overflow-x: auto;
  overflow-y: auto;
}


/* ACTIVITY FEED */
.activity-item {
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 5px;
}

/* EVENT TYPES */
.activity-draft {
  background: #e8f4ff;
}

.activity-drop {
  background: #ffeaea;
}

.activity-trade {
  background: #fff6db;
}

/* PLAYER TABLE */
.player-table {
  width: 100%;
  border-collapse: collapse;
}

.player-table th,
.player-table td {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: center;
}

#playerSearch {
  width: 320px;
  padding: 10px 14px;
  font-size: 18px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.drop-player-select {
  min-width: 260px;
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
}

.player-row:hover {
  background: #f0f0f0;
  cursor: pointer;
}

.draft-board {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 1000px;
}

.supplemental-pick-cell {
  border: 2px dashed #555;
}

.supplemental-owner-select {
  width: 100%;
  max-width: 105px;
  font-size: 12px;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid #999;
  background: white;
}

.supplemental-pick-cell.current-pick-cell {
  outline: 4px solid #ffcc00;
}

.draft-round {
  display: grid;
  grid-template-columns: 90px repeat(10, minmax(110px, 1fr));
  gap: 6px;
  align-items: stretch;
}

.round-label {
  background: #111;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.draft-tile {
  min-height: 85px;
  background: #f7f7f7;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pick-num {
  font-size: 12px;
  font-weight: bold;
  color: #555;
}

.pick-owner {
  font-size: 13px;
  font-weight: bold;
}

.pick-player {
  font-size: 14px;
  font-weight: bold;
  color: #111;
}

.pick-meta {
  font-size: 11px;
  color: #777;
}

.current-pick-cell {
  outline: 3px solid #ffcc00;
  background: #fff8d6;
}

.drafted-cell {
  background: #e8f4ff;
}

.skipped-cell {
  background: #ffeaea;
}

.roster-warning {
  background: #c62828;
  color: white;
  font-weight: bold;
  text-align: center;
  border-radius: 999px;
  padding: 8px 12px;
  margin: 10px 0;
}

.roster-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 0;
  margin-left: 0;
}

.roster-player {
  padding: 4px 6px;
  border-radius: 6px;
  margin-left: 0;
  text-align: left;
}

.roster-player.taxi-eligible {
  background: #fff3b0;
}

.selected-player-row {
  background: #fff3b0 !important;
  outline: 2px solid #f0c400;
}

.selected-player-row {
  background: #fff3b0 !important;
  outline: 2px solid #f0c400;
}

.draft-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.draft-actions input,
.draft-actions select {
  padding: 5px;
}

.skip-button {
  background: #555;
  color: white;
}

.drop-button {
  background: #c62828;
  color: white;
}

.top-bar {
  color: white;
  transition: background 0.3s ease;
}
.top-bar {
  display: grid;
  grid-template-columns: 260px 1fr 220px;
  align-items: center;
  padding: 10px 16px;
  color: white;
  transition: background 0.3s ease;
  min-height: 70px;
}

.top-bar-left {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar-center {
  text-align: center;
}

.top-bar-right {
  text-align: right;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.clock-owner {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}

.clock-details {
  font-size: 16px;
  opacity: 0.9;
  margin-top: 4px;
}

.hamburger-btn,
.refresh-btn {
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
}

.hamburger-btn {
  font-size: 20px;
  font-weight: bold;
}

.admin-menu {
  position: absolute;
  top: 48px;
  left: 0;
  background: white;
  color: #111;
  border-radius: 8px;
  padding: 8px;
  min-width: 240px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 1000;
}

.admin-menu button {
  display: block;
  width: 100%;
  margin-bottom: 6px;
  text-align: left;
  background: #f4f4f4;
  border: none;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}

.admin-menu button:hover {
  background: #e0e0e0;
}

.hidden {
  display: none;
}

.clock-owner-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.clock-label {
  font-size: 20px;
  font-weight: 700;
  opacity: 0.9;
  letter-spacing: 1px;
}

.clock-owner-name {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.pick-qb {
  background: #f8caca !important;
}

.pick-rb {
  background: #cfe8ff !important;
}

.pick-wr {
  background: #d8f5d0 !important;
}

.pick-te {
  background: #e6d5ff !important;
}

.pick-k {
  background: #ffe0b8 !important;
}

.pick-skip {
  background: #ffffff !important;
}

.draft-pick {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px;
  min-height: 90px;
  transition: background 0.2s ease;
}
/* SHARED SECONDARY PAGES */
.page-top-bar {
  min-height: 68px;
  background: #111;
  color: white;
  display: grid;
  grid-template-columns: 260px 1fr 320px;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
}

.page-top-bar h2 {
  text-align: center;
  margin: 0;
}

.page-top-bar button,
.page-top-bar select,
.page-top-bar input {
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
}

.nav-actions {
  display: flex;
  gap: 8px;
}

.team-select-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.team-page-layout,
.trade-page-layout {
  display: grid;
  gap: 12px;
  padding: 12px;
  min-height: calc(100vh - 90px);
}

.team-page-layout {
  grid-template-columns: 1fr 380px;
}

.trade-page-layout {
  grid-template-columns: 1fr 280px;
}

.content-card {
  background: white;
  border-radius: 10px;
  padding: 14px;
  overflow: auto;
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
}

.clean-table th {
  text-align: left;
  padding: 10px 8px;
  font-size: 13px;
  color: #555;
  border-bottom: 2px solid #eee;
}

.clean-table td {
  padding: 9px 8px;
  border: none;
  vertical-align: top;
}

.clean-table tr:nth-child(even) {
  background: #fafafa;
}

.taxi-row {
  background: #fff3b0 !important;
}

.filter-buttons,
.trade-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.filter-buttons button,
.trade-filters select,
.trade-filters input {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 10px;
}

.active-filter {
  background: #111;
  color: white;
}

.transaction-item {
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
}

.transaction-item span {
  display: block;
  font-size: 12px;
  color: #555;
  margin-top: 2px;
}

.transaction-item p {
  margin: 6px 0 0;
}

.counter-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

@media (max-width: 900px) {
  .page-top-bar,
  .team-page-layout,
  .trade-page-layout {
    grid-template-columns: 1fr;
  }

  .page-top-bar h2,
  .team-select-wrap {
    text-align: left;
    justify-content: flex-start;
  }
}

/* TEAM PAGE ENHANCEMENTS */
.team-color-top-bar {
  transition: background 0.25s ease, color 0.25s ease;
}

.team-side-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
}

.team-side-stack .content-card {
  overflow: visible;
}

.section-note {
  margin-top: -6px;
  color: #666;
  font-size: 13px;
}

.count-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.count-card {
  background: #f7f7f7;
  border-radius: 10px;
  padding: 12px;
}

.count-card span,
.count-card small {
  display: block;
  color: #666;
}

.count-card strong {
  display: block;
  font-size: 28px;
  margin: 4px 0;
}

.compact-table th,
.compact-table td {
  font-size: 13px;
  padding: 7px 6px;
}

.owner-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 700;
  white-space: nowrap;
}

.trade-table td:nth-child(3),
.trade-table td:nth-child(5) {
  min-width: 220px;
}

.error-message {
  background: #ffeaea;
  border-radius: 8px;
  color: #8a0000;
  padding: 10px;
}

/* SHARED PAGE HEADER / NAV */
.menu-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 8px 0;
}

.page-body {
  height: 100vh;
  overflow: hidden;
}

.page-top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 70px;
  background: #111;
  color: white;
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  align-items: center;
  padding: 10px 16px;
  box-sizing: border-box;
}

.page-top-bar .admin-menu {
  top: 48px;
}

.page-scroll-area {
  height: calc(100vh - 90px);
  overflow: hidden;
}

.page-scroll-card {
  overflow-y: auto;
  min-height: 0;
}

.team-page-layout.page-scroll-area,
.trade-page-layout.page-scroll-area {
  box-sizing: border-box;
}

.sticky-content-controls {
  position: sticky;
  top: 0;
  z-index: 20;
  background: white;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.team-select-wrap select {
  max-width: 180px;
}

@media (max-width: 900px) {
  .page-top-bar {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }

  .page-top-bar .top-bar-left,
  .page-top-bar .top-bar-right {
    justify-content: center;
    text-align: center;
  }

  .page-scroll-area {
    height: calc(100vh - 150px);
  }
}


/* CORNDOG DYNASTY LOGO IN HEADER */
.top-logo {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  background: #111;
  flex: 0 0 auto;
}



/* PLAYERS AVAILABLE PAGE SCROLL FIX */
.players-page-layout {
  height: calc(100vh - 90px);
  overflow: hidden;
  display: block;
  padding: 12px;
  box-sizing: border-box;
}

.players-content-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.players-draft-controls {
  flex: 0 0 auto;
}

#playersTableWrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.players-available-table th {
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

/* MAIN DRAFT BOARD WITHOUT BOTTOM PLAYER PANEL */
.draft-board-body .main-layout {
  grid-template-columns: 220px 1fr 260px;
  grid-template-rows: 1fr;
  height: calc(100vh - 90px);
}

.draft-board-body .left-panel,
.draft-board-body .center-panel,
.draft-board-body .right-panel {
  grid-row: 1;
}

.draft-board-body .left-panel { grid-column: 1; }
.draft-board-body .center-panel { grid-column: 2; }
.draft-board-body .right-panel { grid-column: 3; }

.trade-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  color: white;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
  font-weight: 700;
}