/* Main layout container */
.competition-layout {
  min-height: 100vh;
}

.competition-main {
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

/* ----------------------------------- 
   ROUND SELECTOR & CONTENT - DRAG & DROP
   ----------------------------------- */

.rounds-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.round-column {
  width: 100%;
  background: #f8f9fa;
  border-radius: 0.8rem;
  padding: 1.5rem;
  border: 0.2rem solid #e9ecef;
  transition: all 0.3s ease;
}

/* Compact mode for rounds */
.round-column.collapsed {
  padding: 1rem 1.5rem;
}

.round-column.collapsed .round-matches {
  display: none;
}

.round-column.drag-over {
  border-color: #f15b2e;
  background: #fff3f0;
}

.round-header {
  background: #3a3a44;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
}

.round-header:hover {
  background: #4a4a54;
}

.round-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.round-title {
  font-weight: 600;
}

.round-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.match-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  font-size: 1.2rem;
}

.collapse-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 0.3rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collapse-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.collapse-toggle svg {
  width: 1.6rem;
  height: 1.6rem;
  transition: transform 0.3s ease;
}

.round-column.collapsed .collapse-toggle svg {
  transform: rotate(180deg);
}

.round-matches {
  min-height: 10rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
}

.round-matches.empty {
  border: 0.2rem dashed #adb5bd;
  border-radius: 0.5rem;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-style: italic;
}

.round-matches.empty::after {
  content: "No matches";
  text-align: center;
}

/* Match card drag states */
.match-card {
  cursor: move;
  transition: all 0.3s ease;
  position: relative;
}

.match-card.dragging {
  opacity: 0.5;
  transform: rotate(3deg);
  z-index: 1000;
}

.match-card:hover {
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.15);
}

/* Reorder visual feedback */
.round-matches.reordering {
  background: rgba(241, 91, 46, 0.05);
  border: 2px dashed #f15b2e;
  border-radius: 0.5rem;
}

.match-card.reordering {
  background: rgba(241, 91, 46, 0.1);
  border: 2px solid #f15b2e;
  transform: scale(1.02);
}

/* Drop zone indicators */
.round-matches.drag-over {
  background: rgba(241, 91, 46, 0.1);
  border: 2px dashed #f15b2e;
}

/* Position indicators for reorder */
.match-card::before {
  content: attr(data-position);
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  background: #f15b2e;
  color: white;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.round-matches.reordering .match-card::before {
  opacity: 1;
}

/* Quick Move Dropdown */
.quick-move-dropdown {
  position: relative;
  display: inline-block;
}

.quick-move-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.9rem;
  height: 3.4rem;
  background: #f15b2e;
  border: none;
  border-radius: .6rem;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.2rem;
  font-weight: 500;
}

.quick-move-btn:hover {
  background: #d14821;
  transform: scale(1.05);
}

.quick-move-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 0.1rem solid #e9ecef;
  border-radius: 0.5rem;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.15);
  z-index: 99999;
  min-width: 16rem;
  max-height: 20rem;
  overflow-y: auto;
  display: none;
}

.quick-move-menu.show {
  display: block;
}

.quick-move-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  cursor: pointer;
  border-bottom: 0.1rem solid #f8f9fa;
  transition: all 0.2s ease;
  font-size: 1.4rem;
  gap: .5rem;
}

.quick-move-item:hover {
  background: #f8f9fa;
}

.quick-move-item:last-child {
  border-bottom: none;
}

.quick-move-item.current {
  background: #e3f2fd;
  color: #1976d2;
  font-weight: 600;
}

.quick-move-item.current::before {
  content: "✓ ";
  color: #1976d2;
  font-weight: bold;
}

.round-label {
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
}

.round-count {
  font-size: 1.2rem;
  color: #6c757d;
  background: #f8f9fa;
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  margin-left: 1rem;
  min-width: 2.4rem;
  text-align: center;
}

/* Original round selector - keep for backward compatibility but hide */
.round-selector {
  display: none;
}

/* ----------------------------------- 
   ROUND SELECTOR & CONTENT
   ----------------------------------- */

.content-container {
  background: white;
  border-radius: 1.2rem;
  padding: 2rem;
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.05);
}

.round-selector {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.6rem;
  overflow-x: auto;
  padding-bottom: 1.4rem;
  box-shadow: 0 0.1rem 0.1rem 0 rgba(0, 0, 0, 0.25);
}

.round-btn {
  background-color: #f8f9fa;
  color: #6b7280;
  border: 0.2rem solid #f05a2e80;
  border-radius: 0.8rem;
  padding: 1rem 2rem;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 0.4rem;
}

.round-btn:hover {
  border-color: #3A3A44;
  color: #fff;
  background-color: #3A3A44;
}

.round-btn.active {
  background-color: #3A3A44;
  color: white;
  border-color: #3A3A44;
}

.matches-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.4rem;
}

/* Match Cards - Design Spec Layout */
.match-card {
  background: white;
  border-radius: 0.3rem;
  padding: 0 1.6rem;
  display: flex;
  align-items: stretch;
  gap: 1.3rem;
  transition: all 0.3s ease;
  position: relative;
  max-width: 100%;
  box-shadow: 0px .2rem .5rem 0px rgba(0, 0, 0, 0.25);
}

/* Teams section - compact design */
.match-teams-compact {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.4rem;
  flex-shrink: 0;
  justify-content: center;
  flex: 1;
}

.team-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 8rem;
  position: relative;
  z-index: 99;
  text-decoration: none;
}

.team-logo-small {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  object-fit: cover;
}

.team-name-small {
  font-size: 1.4rem;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.2rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 8rem;
  margin-top: .5rem;
}

/* Score section - bordered design */
.match-score-bordered {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 .8rem;
}

.score-display-bordered {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4rem;
  padding: 8px 1.2rem;
  border: 1px solid #f15b2e;
  border-radius: .4rem;
  background: white;
  box-shadow: 0 2px 4px rgba(241, 91, 46, 0.1);
  min-width: 4.0rem;
  text-align: center;
  white-space: nowrap;
}

/* Vertical separators */
.match-separator-vertical {
  width: .1rem;
  height: auto;
  background: rgba(70, 148, 2, 0.5);
  flex-shrink: 0;
}

/* Info grid section */
.match-info-grid {
  display: flex;
  align-items: stretch;
  gap: 1.6rem;
  width: 45%;
}

.info-column-left,
.info-column-right {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  padding: 1.4rem 0;
}

.info-row-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-label-compact {
  font-size: 1.4rem;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.4rem;
}

.info-value-compact {
  font-size: 1.4rem;
  font-weight: 400;
  color: #5C5B5B;
  line-height: 1.4rem;
}

.info-divider-compact {
  width: 100%;
  height: .1rem;
  background: rgba(70, 148, 2, 0.5);
  margin: 2px 0;
  opacity: 0.5;
}

/* Status badge compact */
.status-badge-compact {
  padding: 0.2rem 1.2rem;
  border-radius: .3rem;
  font-size: 1.3rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.2;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-row-compact.border-bottom {
  padding-bottom: .5rem;
  margin-bottom: 0.5rem;
  min-height: 2.6rem;
}

.status-finished {
  border-left: .3rem solid #36A14D;
}

.status-finished .match-separator-vertical,
.status-finished .info-divider-compact,
.status-finished .status-badge-compact {
  background: #36A14D;
}

.status-finished .info-row-compact.border-bottom {
  border-bottom: .1rem solid #36a14d80;
}

.status-live {
  border-left: .3rem solid #FF1919;
}

.status-live .match-separator-vertical,
.status-live .info-divider-compact,
.status-live .status-badge-compact {
  background: #FF1919;
}

.status-live .info-row-compact.border-bottom {
  border-bottom: .1rem solid #FF191980;
}

.status-pending {
  border-left: .3rem solid #FF9924;
}
.status-result {
  border-left: .3rem solid #10b981;
}

.status-pending .match-separator-vertical,
.status-pending .info-divider-compact,
.status-pending .status-badge-compact {
  background: #FF9924;
}
.status-result .status-badge-compact {
  background: #10b981;
}

.status-pending .info-row-compact.border-bottom {
  border-bottom: .1rem solid #FF992480;
}

.status-postponed {
  border-left: .3rem solid #F15B2E;
}

.status-postponed .match-separator-vertical,
.status-postponed .info-divider-compact,
.status-postponed .status-badge-compact {
  background: #F15B2E;
}

.status-postponed .info-row-compact.border-bottom {
  border-bottom: .1rem solid #F15B2E80;
}

.stadium-address-compact {
  font-size: 1.2rem;
  font-weight: 400;
  color: #5c5b5b;
  line-height: 1.2rem;
  margin-top: .2rem;
  line-break: anywhere;
}

/* Action buttons compact */
.match-actions-compact {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-shrink: 0;
}

.action-btn-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.9rem;
  height: 3.4rem;
  background: #3a3a44;
  border: none;
  border-radius: .6rem;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn-compact:hover {
  background: #4a4a54;
  transform: scale(1.05);
}

.action-btn-compact svg {
  width: 2.0rem;
  height: 2.0rem;
}

/* Border color variations */
.match-card.border-green {
  border-color: #10b981;
}

.match-card.border-red {
  border-color: #ef4444;
}

.match-card.border-orange {
  border-color: #f59e0b;
}

.match-card.border-orange-red {
  border-color: #f97316;
}

/* No Matches */
.no-matches {
  text-align: center;
  padding: 4rem 2rem;
  color: #64748b;
  background: #f8fafc;
  border-radius: 1.2rem;
  border: .2rem dashed #cbd5e1;
}

.no-matches p {
  font-weight: 500;
  margin: 0;
}

/* Coming Soon Placeholders */
.coming-soon {
  text-align: center;
  padding: 4rem 2rem;
  background: #f8fafc;
  border-radius: 1.2rem;
  border: 2px dashed #cbd5e1;
}

.coming-soon h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.coming-soon p {
  color: #64748b;
  margin: 0;
  font-size: 1.3rem;
}

/* ----------------------------------- 
   NAVIGATION TABS
   ----------------------------------- */

.main-navigation {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-top: 2.6rem;
  scroll-behavior: smooth;
  cursor: default;
}

.main-navigation::-webkit-scrollbar {
  display: none;
}

/* Indicate scrollable content with subtle visual cue */
.main-navigation:hover {
  cursor: grab;
}

.main-navigation.scrolling {
  cursor: grabbing;
}

.nav-tab {
  background-color: #3a3a44;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
  min-width: 16.9rem;
  border-radius: 0;
  border-radius: .4rem;
  padding: 1rem 0;
  width: 15%;
}

.nav-tab img {
  width: 3.7rem;
  height: 3.7rem;

}

.nav-tab.active {
  background-color: #f15b2e;
}

.nav-tab:not(.active):hover {
  background-color: #4a4a54;
}

.nav-tab svg {
  width: 3.7rem;
  height: 3.7rem;
  flex-shrink: 0;
}

.nav-tab.active svg rect {
  fill: #f15b2e;
}

.nav-label {
  white-space: nowrap;
  font-weight: 500;
  display: block;
  width: 100%;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: .1rem solid #FF9676;
}

.nav-tab:first-child {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}

.nav-tab:last-child {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

/* ----------------------------------- 
   MATCH CARD SECTIONS
   ----------------------------------- */

/* DateTime section */
.datetime-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 16.0rem;
  flex-shrink: 0;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-label {
  font-size: 1.2rem;
  color: #6b7280;
  font-weight: 500;
  min-width: 9.0rem;
}

.info-value {
  font-size: 1.4rem;
  color: #1f2937;
  font-weight: 600;
}

.info-divider {
  width: 100%;
  height: .1rem;
  background-color: #e5e7eb;
  margin: 0.2rem 0;
}

/* Status section */
.status-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 16.0rem;
  flex-shrink: 0;
}

.status-badge {
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  width: fit-content;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.stadium-address {
  font-size: 1.1rem;
  color: #9ca3af;
  margin-top: 0.2rem;
}

/* Action buttons */
.match-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.action-btn {
  width: 4.0rem;
  height: 4.0rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background-color: #e5e7eb;
  color: #374151;
  transform: scale(1.05);
}

.action-btn.view:hover {
  background-color: #dbeafe;
  color: #2563eb;
}

.action-btn.settings:hover {
  background-color: #f3e8ff;
  color: #7c3aed;
}

.action-btn.delete:hover {
  background-color: #fef2f2;
  color: #dc2626;
}

.action-btn svg {
  width: 2.0rem;
  height: 2.0rem;
}

/* ----------------------------------- 
   TAB CONTENT & RESPONSIVE
   ----------------------------------- */

/* Tab content placeholders */
.tab-content {
  background: white;
  border-radius: 1.2rem;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* No matches state */
.no-matches {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

.no-matches p {
  margin: 0;
}

#settings .competition-content {
  padding: 0;
  max-width: 100%;
}

/* ----------------------------------- 
   RESPONSIVE DESIGN
   ----------------------------------- */

/* Tablet Portrait: 769px - 991px */
@media (max-width: 991px) {
  .competition-main {
    padding: 1.5rem;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header-divider {
    display: none;
  }

  .main-navigation {
    overflow-x: auto;
  }

  .match-card {
    height: auto;
    min-height: 6.9rem;
    flex-wrap: wrap;
    gap: 1.2rem;
    padding: 1.2rem;
  }

  .match-teams-compact {
    gap: 1.2rem;
  }

  .team-compact {
    width: 5.0rem;
  }

  .team-logo-small {
    width: 2.4rem;
    height: 2.4rem;
  }

  .team-name-small {
    font-size: .9rem;
    max-width: 5.0rem;
  }

  .match-info-grid {
    gap: 1.2rem;
  }

  .action-btn-compact {
    width: 5.0rem;
    height: 3.0rem;
  }

  .action-btn-compact svg {
    width: 1.8rem;
    height: 1.8rem;
  }
}

/* Smartphone: 375px - 768px */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    gap: 1rem;
  }

  .competition-main {
    padding: 1rem;
  }

  .competition-header {
    padding: 1.5rem;
  }

  .competition-title {
    font-size: 1.4rem;
  }

  .header-toolbar {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .toolbar-btn {
    justify-content: center;
    width: 100%;
  }

  .nav-tab {
    padding: 1rem 0;
  }

  .nav-tab svg {
    width: 3rem;
    height: 3rem;
  }

  .content-container {
    padding: 1.5rem;
  }

  .round-selector {
    gap: 0.5rem;
  }

  .round-btn {
    padding: 0.6rem 1rem;
  }

  .teams-section {
    flex-direction: column;
    gap: 1rem;
  }

  .team {
    justify-content: center;
    min-width: auto;
  }

  .match-score {
    margin: 0;
    order: -1;
  }

  .info-label {
    min-width: 6rem;
    font-size: 0.75rem;
  }

  .info-value {
    font-size: 0.8rem;
  }

  .match-card {
    flex-direction: column;
    height: auto;
    padding: 1.6rem;
    gap: 1.6rem;
    align-items: stretch;
  }

  .match-teams-compact {
    justify-content: space-around;
    order: 1;
  }

  .match-separator-vertical {
    display: none;
  }

  .match-info-grid {
    order: 3;
    flex-direction: column;
    gap: 1.2rem;
  }

  .info-column-left,
  .info-column-right {
    width: 100%;
  }

  .info-row-compact {
    gap: 0.8rem;
  }

  .match-actions-compact {
    order: 4;
    justify-content: center;
    gap: 1.6rem;
  }

  .team-compact {
    width: 6rem;
  }

  .team-logo-small {
    width: 3rem;
    height: 3rem;
  }

  .team-name-small {
    font-size: 1.1rem;
    max-width: 6rem;
  }
}

/* Small device: < 375px */
@media (max-width: 374px) {
  .competition-main {
    padding: 0.75rem;
  }

  .competition-header {
    padding: 1rem;
  }

  .competition-title {
    font-size: 1.2rem;
  }

  .content-container {
    padding: 1rem;
  }

  .match-card {
    padding: 1.2rem;
    gap: 1.2rem;
  }

  .team-name {
    font-size: 0.8rem;
  }

  .action-btn {
    width: 3.5rem;
    height: 3.5rem;
  }

  .team-compact {
    width: 5rem;
  }

  .team-logo-small {
    width: 2.6rem;
    height: 2.6rem;
  }

  .team-name-small {
    font-size: 1rem;
    max-width: 5rem;
  }

  .action-btn-compact {
    width: 4.5rem;
    height: 2.8rem;
  }

  .action-btn-compact svg {
    width: 1.6rem;
    height: 1.6rem;
  }

  .match-actions-compact {
    gap: 1.2rem;
  }
}

/* ----------------------------------- 
   STANDING TABLE STYLES - ANWP FOOTBALL LEAGUES
   ----------------------------------- */

/* Filter Tabs - AnWP Style */
.anwp-b-wrap.standing.standing--shortcode {
  display: flex;
  flex-direction: column;
}

.anwp-fl-standing-filter,
.custom-standing-filter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.anwp-fl-standing-filter .anwp-btn-group__btn,
.custom-standing-filter .anwp-btn-group__btn
 {
  background: #3c3c3c;
  color: white;
  border: none;
  border-radius: 0.3rem;
  padding: 0.6rem 1.5rem;
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anwp-fl-standing-filter .anwp-btn-group__btn.anwp-is-active,
.custom-standing-filter .anwp-btn-group__btn.anwp-is-active {
  background: #f15b2e;
}

.anwp-fl-standing-filter .anwp-btn-group__btn:hover,
.custom-standing-filter .anwp-btn-group__btn:hover {
  background: #4a4a54;
}

.anwp-fl-standing-filter .anwp-btn-group__btn.anwp-is-active:hover,
.custom-standing-filter .anwp-btn-group__btn.anwp-is-active:hover {
  background: #d14821;
}
.content-club-stats--custom .anwp-tabs-header {
  display: none;
}

/* Standing Table - CSS Grid Layout */
.standing-table.anwp-grid-table {
  background: white;
  border-radius: 0.3rem;
  overflow: hidden;
  margin-bottom: 2rem;
  display: grid;
  gap: 0;
  position: relative;
  padding: 0;
}

/* Table Header - Figma Style */
.standing-table.anwp-grid-table .anwp-grid-table__th {
  background: #333333;
  color: #f15b2e;
  padding: 1rem 1.4rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  text-align: center;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.9rem;
  text-transform: uppercase;
}

.standing-table.anwp-grid-table .anwp-grid-table__th.standing-table__club {
  text-align: left;
  justify-content: flex-start;
  padding-left: 1.4rem;
}

/* Table Rows - CSS Grid Layout */
.standing-table.anwp-grid-table .anwp-grid-table__td {
  padding: 0 1.4rem;
  border-bottom: 0.1rem solid #7D7D7D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  background: white;
  height: 4.2rem;
  position: relative;
  border-right: unset;
}


.standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__club {
  justify-content: flex-start;
  padding-left: 1.4rem;
  gap: 1rem;
}

/* Rank Column */
.standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__rank {
  font-weight: 600;
  color: #3a3a44;
  position: relative;
  justify-content: center;
}

/* Club Column */
.standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__club {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__club img {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  flex: none;
}

.standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__club .club__link {
  font-weight: 600;
  font-size: 1.4rem;
  color: #3a3a44;
  text-decoration: none;
  white-space: nowrap;
}

.standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__club .club__link:hover {
  color: #f15b2e;
}

/* Form Indicators Column */
.standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__club:nth-child(4) {
  justify-content: center;
  padding: 0 1rem;
}

/* Form Indicators - Figma Style */
.standing-table.anwp-grid-table .standing-table__mini-cell-form {
  width: 2rem;
  height: 2rem;
  border-radius: 0.2rem;
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: white;
}

.standing-table.anwp-grid-table .standing-table__mini-cell-form.anwp-bg-success {
  background: #85ae79;
}

.standing-table.anwp-grid-table .standing-table__mini-cell-form.anwp-bg-warning {
  background: #f5d46f;
}

.standing-table.anwp-grid-table .standing-table__mini-cell-form.anwp-bg-danger {
  background: #d97a79;
}

.standing-table.anwp-grid-table .standing-table__mini-cell-form.anwp-bg-secondary {
  background: #cccccc;
}

/* Stats Columns */
.standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__cell-number {
  font-weight: 500;
  color: #000000;
  opacity: 0.5;
  justify-content: center;
}

.standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__cell-number a {
  color: inherit;
  text-decoration: none;
}

.standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__cell-number a:hover {
  text-decoration: underline;
}

/* Arrow indicators */
.standing-table.anwp-grid-table .standing-table__arrow {
  margin-left: 0.5rem;
  font-size: 1.2rem;
}

.standing-table.anwp-grid-table .standing-table__arrow-up {
  color: #4bbe21;
}

.standing-table.anwp-grid-table .standing-table__arrow-down {
  color: #f15b2e;
}

/* Rank Indicator Bar - Figma Style */
.standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__rank::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.6rem;
  background: #8b8787;
  z-index: 1;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
}

/* Rank Indicator Colors based on place class - Figma Style */
/* Rank 1-3: Green */
.standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__rank.place-1::before {
  background: #4bbe21;
}

.standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__rank.place-2::before {
  background: #4bbe21;
}

.standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__rank.place-3::before {
  background: #4bbe21;
}

/* Rank 4-5: Orange */
.standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__rank.place-4::before {
  background: #f15b2e;
}

.standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__rank.place-5::before {
  background: #f15b2e;
}

/* All other ranks get gray (default) */

/* Conference Title */
.standing__conference-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: #3a3a44;
  margin-bottom: 1rem;
  padding: 1rem 0;
  border-bottom: 0.1rem solid #e5e5e5;
}

/* Responsive Design */
@media (max-width: 991px) {
  .standing-table.anwp-grid-table {
    grid-template-columns: 0.6rem 1fr 1fr 1fr repeat(auto-fit, minmax(2.5rem, 1fr));
  }

  .standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__club {
    gap: 0.8rem;
  }

  .standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__club img {
    width: 1.5rem;
    height: 1.5rem;
  }

  .standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__club .club__link {
    font-size: 1.3rem;
  }

  .standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__cell-number {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .anwp-fl-standing-filter {
    flex-direction: column;
    gap: 0.3rem;
  }

  .anwp-fl-standing-filter .anwp-btn-group__btn {
    padding: 0.5rem 1rem;
    font-size: 1.3rem;
    height: auto;
  }

  .standing-table.anwp-grid-table {
    grid-template-columns: 0.6rem 1fr 1fr repeat(auto-fit, minmax(2rem, 1fr));
  }

  .standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__club {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .standing-table.anwp-grid-table .standing-table__mini-cell-form {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 1rem;
  }

  .standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__cell-number {
    font-size: 1.3rem;
  }
}

@media (max-width: 374px) {
  .standing-table.anwp-grid-table {
    grid-template-columns: 0.6rem 1fr repeat(auto-fit, minmax(1.8rem, 1fr));
  }

  .standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__club {
    padding: 0.8rem;
  }

  .standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__club .club__link {
    font-size: 1.2rem;
  }

  .standing-table.anwp-grid-table .anwp-grid-table__td.standing-table__cell-number {
    font-size: 1.2rem;
  }
}

/* =============================
   MODAL SETTINGS TEAM (CHỌN ĐỘI)
   ============================= */
#modal-settings-team {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
}
#modal-settings-team .modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 32, 38, 0.65);
  z-index: 1;
}
#modal-settings-team .modal-content {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 2.2rem;
  box-shadow: 0 1.5rem 4rem rgba(0,0,0,0.28);
  max-width: 98vw;
  width: 60%;
  display: flex;
  flex-direction: column;
  animation: modalFadeIn 0.25s cubic-bezier(.4,2,.6,1) both;
  background: linear-gradient(135deg, #fff 80%, #f8f9fa 100%);
  padding: 2rem;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
#modal-settings-team .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
  border-top-left-radius: 2.2rem;
  border-top-right-radius: 2.2rem;
}
#modal-settings-team .modal-header h3 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #f15b2e;
  margin: 0;
}
#modal-settings-team .modal-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #3a3a44;
  cursor: pointer;
  padding: 0 0.5rem;
  line-height: 1;
  border-radius: 0.4rem;
  transition: background 0.2s;
}
#modal-settings-team .modal-close:hover {
  background: #f8f9fa;
}
#modal-settings-team .modal-body {
  margin-bottom: 1.8rem;
}
#modal-settings-team .team-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
#modal-settings-team .team-row label {
  min-width: 80px;
  font-weight: 600;
  color: #3a3a44;
  font-size: 1.2rem;
}
#modal-settings-team .home-team-block,
#modal-settings-team .away-team-block {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
#modal-settings-team select.select-club {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e9ecef;
  font-size: 1.2rem;
  background: #f8f9fa;
  transition: border 0.2s;
}
#modal-settings-team select.select-club:focus {
  border-color: #f15b2e;
  outline: none;
}
#modal-settings-team .input-new-club {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e9ecef;
  font-size: 1.2rem;
  background: #f8f9fa;
  transition: border 0.2s;
}
#modal-settings-team .input-new-club:focus {
  border-color: #f15b2e;
  outline: none;
}
#modal-settings-team .btn-add-club {
  background: linear-gradient(135deg, #f15b2e 70%, #ff7e3f 100%);
  color: #fff;
  border: none;
  border-radius: 0.7rem;
  font-size: 1.7rem;
  width: 2.9rem;
  height: 2.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 0.5rem;
  margin-top: 0.2rem;
  box-shadow: 0 2px 8px rgba(241,91,46,0.10);
  transition: background 0.2s, transform 0.1s;
}
#modal-settings-team .btn-add-club:hover {
  background: linear-gradient(135deg, #d14821 70%, #ff7e3f 100%);
  transform: scale(1.12);
}
#modal-settings-team .input-hint {
  font-size: 1.13rem;
  color: #6c757d;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
  text-align: left;
  opacity: 0.95;
}
#modal-settings-team .form-error {
  color: #dc3545;
  font-size: 1.18rem;
  margin-top: 0.7rem;
  min-height: 1.5rem;
  text-align: center;
}
#modal-settings-team .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1.7rem;
  margin-top: 1.7rem;
}
#modal-settings-team .modal-cancel {
  background: #e9ecef;
  color: #3a3a44;
  border: none;
  border-radius: 0.7rem;
  font-size: 1.18rem;
  padding: 0.9rem 2.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
#modal-settings-team .modal-cancel:hover {
  background: #d1d5db;
}
#modal-settings-team .modal-save {
  background: linear-gradient(135deg, #f15b2e 70%, #ff7e3f 100%);
  color: #fff;
  border: none;
  border-radius: 0.7rem;
  font-size: 1.18rem;
  padding: 0.9rem 2.7rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(241,91,46,0.10);
  transition: background 0.2s, transform 0.1s;
}
#modal-settings-team .modal-save:hover {
  background: linear-gradient(135deg, #d14821 70%, #ff7e3f 100%);
  transform: scale(1.06);
}
@media (max-width: 600px) {
  #modal-settings-team .modal-content {
    width: 99vw;
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
  }
  #modal-settings-team .teams-row-horizontal {
    flex-direction: column;
    gap: 1.2rem;
  }
  #modal-settings-team .vs-divider {
    margin: 0.5rem 0;
    font-size: 1.3rem;
    padding: 0.5rem 1.1rem;
  }
}

/* Modal Settings Team - Horizontal Layout (nâng cấp đẹp hơn) */
#modal-settings-team .teams-row-horizontal {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 3.2rem;
  margin-bottom: 1.8rem;
}
#modal-settings-team .team-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0 0.2rem;
}
#modal-settings-team .team-logo-block {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #f3f4f6;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(241,91,46,0.10);
  border: 2.5px solid #f15b2e33;
}
#modal-settings-team .team-logo-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
#modal-settings-team .team-input-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
}
#modal-settings-team .vs-divider {
  font-size: 2.1rem;
  font-weight: 900;
  color: #f15b2e;
  align-self: center;
  margin-bottom: 2.2rem;
  letter-spacing: 0.13em;
  background: #fff3e6;
  border-radius: 1.2rem;
  padding: 0.7rem 1.7rem;
  box-shadow: 0 2px 8px rgba(241,91,46,0.08);
  border: 1.5px solid #f15b2e33;
}
#modal-settings-team .select-club {
  width: 100%;
  font-size: 1.18rem;
  border-radius: 0.7rem;
  border: 1.5px solid #e9ecef;
  background: #f8f9fa;
  padding: 0.8rem 1.1rem;
  transition: border 0.2s;
}
#modal-settings-team .select-club:focus {
  border-color: #f15b2e;
  outline: none;
}
#modal-settings-team .input-new-club {
  margin-top: 0.4rem;
  border-radius: 0.7rem;
  border: 1.5px solid #e9ecef;
  background: #fff;
  padding: 0.8rem 1.1rem;
  font-size: 1.15rem;
  transition: border 0.2s;
}
#modal-settings-team .input-new-club:focus {
  border-color: #f15b2e;
  outline: none;
}
#modal-settings-team .btn-add-club {
  background: linear-gradient(135deg, #f15b2e 70%, #ff7e3f 100%);
  color: #fff;
  border: none;
  border-radius: 0.7rem;
  font-size: 1.7rem;
  width: 2.9rem;
  height: 2.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 0.5rem;
  margin-top: 0.2rem;
  box-shadow: 0 2px 8px rgba(241,91,46,0.10);
  transition: background 0.2s, transform 0.1s;
}
#modal-settings-team .btn-add-club:hover {
  background: linear-gradient(135deg, #d14821 70%, #ff7e3f 100%);
  transform: scale(1.12);
}
#modal-settings-team .input-hint {
  font-size: 1.13rem;
  color: #6c757d;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
  text-align: left;
  opacity: 0.95;
}
#modal-settings-team .form-error {
  color: #dc3545;
  font-size: 1.18rem;
  margin-top: 0.7rem;
  min-height: 1.5rem;
  text-align: center;
}
#modal-settings-team .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1.7rem;
  margin: 1.7rem;
}
#modal-settings-team .modal-cancel {
  background: #e9ecef;
  color: #3a3a44;
  border: none;
  border-radius: 0.7rem;
  font-size: 1.18rem;
  padding: 0.9rem 2.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
#modal-settings-team .modal-cancel:hover {
  background: #d1d5db;
}
#modal-settings-team .modal-save {
  background: linear-gradient(135deg, #f15b2e 70%, #ff7e3f 100%);
  color: #fff;
  border: none;
  border-radius: 0.7rem;
  font-size: 1.18rem;
  padding: 0.9rem 2.7rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(241,91,46,0.10);
  transition: background 0.2s, transform 0.1s;
}
#modal-settings-team .modal-save:hover {
  background: linear-gradient(135deg, #d14821 70%, #ff7e3f 100%);
  transform: scale(1.06);
}
@media (max-width: 600px) {
  #modal-settings-team .modal-content {
    width: 99vw;
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
  }
  #modal-settings-team .teams-row-horizontal {
    flex-direction: column;
    gap: 1.2rem;
  }
  #modal-settings-team .vs-divider {
    margin: 0.5rem 0;
    font-size: 1.3rem;
    padding: 0.5rem 1.1rem;
  }
}
.tabulator .tabulator-tableholder {
  overflow: visible;
  height: 100% !important;
}
.anwp-fl-tabulator-stats .tabulator .tabulator-header .tabulator-col .tabulator-col-content {
  margin: auto;
}
.anwp-fl-tabulator-stats .tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title {
  color: #F15B2E;
  font-weight: 600;
}
.anwp-fl-tabulator-stats .tabulator .tabulator-header .tabulator-col .tabulator-col-content {
  margin: auto auto auto 1rem;
}
.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left {
  padding-left: 1rem;
}

/* =============================
   PLAYER STATS TABLE - NEW FIGMA DESIGN
   ============================= */

/* Player Stats Table Container */
.player-stats-table {
  background: #ffffff;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 0.4rem 2rem rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  font-family: 'Montserrat', sans-serif;
  overflow: auto;
}

/* Table Structure */
.player-stats-table .anwp-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

/* Table Header - Clean Figma Style */
.player-stats-table .anwp-table thead {
  background: #ffffff;
  border-bottom: 0.3rem solid #f15b2e;
}

.player-stats-table .anwp-table th {
  background: #ffffff;
  color: #f15b2e;
  padding: 1.5rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  text-align: center;
  border: none;
  height: 5.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  vertical-align: middle;
}

/* Player column header */
.player-stats-table .anwp-table th:first-child {
  text-align: left;
  padding-left: 2rem;
  color: #f15b2e;
  width: 21%;
}

/* Club column header */
.player-stats-table .anwp-table th:nth-child(2) {
  color: #f15b2e;
  width: 12%;
}

/* Position column header */
.player-stats-table .anwp-table th:nth-child(3) {
  color: #f15b2e;
  width: 6%;
}
.anwp-table--club.anwp-table th:nth-child(2),
.anwp-table--club.anwp-table th:nth-child(3) {
  width: 6%;
}
/* Stats columns headers */
.player-stats-table .anwp-table th:nth-child(n+4) {
  color: #f15b2e;
  width: 6%;
}

/* Table Rows - Clean Figma Style */
.player-stats-table .anwp-table tbody tr {
  background: #ffffff;
  border-bottom: 0.1rem solid #f0f0f0;
  height: 5rem;
  position: relative;
  transition: background-color 0.2s ease;
}

.player-stats-table .anwp-table tbody tr:hover {
  background: #fafafa;
}

/* Table cells */
.player-stats-table .anwp-table td {
  padding: 0 1rem;
  border: none;
  vertical-align: middle;
  height: 5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
}

/* Player cell */
.player-stats-table .anwp-table td:first-child {
  text-align: left;
  padding-left: 2rem;
  width: 40%;
}

/* Player content */
.player-stats-table .anwp-table td:first-child .d-flex {
  display: flex !important;
  align-items: center;
  gap: 1.2rem;
}

/* Player avatar */
.player-stats-table .anwp-table td:first-child img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 0.2rem solid #f0f0f0;
}

/* Player name */
.player-stats-table .anwp-table td:first-child span,
.player-stats-table .anwp-table td:first-child a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: #3A3A44;
  text-decoration: none;
  white-space: nowrap;
}

.player-stats-table .anwp-table td:first-child a:hover {
  color: #f15b2e;
}

/* Club cell */
.player-stats-table .anwp-table td:nth-child(2) {
  text-align: left;
  width: 15%;
}

/* Club content */
.player-stats-table .anwp-table td:nth-child(2) .d-flex {
  display: flex !important;
  align-items: center;
  gap: 1rem;
}

/* Club logo */
.player-stats-table .anwp-table td:nth-child(2) img {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 0.1rem solid #f0f0f0;
}

/* Club name */
.player-stats-table .anwp-table td:nth-child(2) span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  color: #3A3A44;
  white-space: nowrap;
}

/* Position cell */
.player-stats-table .anwp-table td:nth-child(3),
.content-club-stats--custom .player-stats-table .anwp-table td:nth-child(2) {
  text-align: center;
  width: 8%;
}

/* Position badge - Base style */
.player-stats-table .anwp-table td:nth-child(3) span,
.content-club-stats--custom .player-stats-table .anwp-table td:nth-child(2) span {
  background: #777777; /* Default color for empty positions */
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.3);
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

/* Position F - Forward (Red) */
.player-stats-table .anwp-table td.position-f span {
  background: #F02703 !important;
  box-shadow: 0 0.2rem 0.4rem rgba(240, 39, 3, 0.3) !important;
}

/* Position D - Defender (Green) */
.player-stats-table .anwp-table td.position-d span {
  background: #047857 !important;
  box-shadow: 0 0.2rem 0.4rem rgba(4, 120, 87, 0.3) !important;
}

/* Position M - Midfielder (Orange) */
.player-stats-table .anwp-table td.position-m span {
  background: #EE8711 !important;
  box-shadow: 0 0.2rem 0.4rem rgba(238, 135, 17, 0.3) !important;
}

/* Position G - Goalkeeper (Blue) */
.player-stats-table .anwp-table td.position-g span {
  background: #0A6AE8 !important;
  box-shadow: 0 0.2rem 0.4rem rgba(10, 106, 232, 0.3) !important;
}

/* Stats cells */
.player-stats-table .anwp-table td:nth-child(n+4) {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: #333333;
  text-align: center;
  width: 6%;
}

/* Rank indicator bar - Left side using border-left */
.player-stats-table .anwp-table tbody tr {
  border-left: 0.4rem solid #cccccc;
}

/* Top 3 players - Green indicator using data-rank */
.player-stats-table .anwp-table tbody tr[data-rank="1"],
.player-stats-table .anwp-table tbody tr[data-rank="2"],
.player-stats-table .anwp-table tbody tr[data-rank="3"] {
  border-left-color: #4bbe21;
}

/* Alternative using classes for better performance */
.player-stats-table .anwp-table tbody tr.rank-1,
.player-stats-table .anwp-table tbody tr.rank-2,
.player-stats-table .anwp-table tbody tr.rank-3 {
  border-left-color: #4bbe21;
}

/* Empty state */
.player-stats-table .anwp-table tbody tr td[colspan] {
  text-align: center;
  padding: 4rem 2rem;
  color: #999999;
  font-style: italic;
  font-size: 1.6rem;
}

/* Pagination - Clean Style */
.anwp-pagination-wrapper {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.anwp-pagination-info {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  color: #666666;
  text-align: center;
  font-weight: 500;
}

.anwp-pagination {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.anwp-pagination__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.8rem;
}

.anwp-pagination__item {
  margin: 0;
}

.anwp-pagination__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: #ffffff;
  color: #333333;
  border: 0.2rem solid #e0e0e0;
  border-radius: 0.8rem;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.anwp-pagination__link:hover {
  background: #f8f9fa;
  color: #333333;
  text-decoration: none;
  border-color: #f15b2e;
}

.anwp-pagination__item--active .anwp-pagination__link {
  background: #f15b2e;
  color: #ffffff;
  border-color: #f15b2e;
}

.anwp-pagination__item--active .anwp-pagination__link:hover {
  background: #d14821;
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .player-stats-table .anwp-table th:first-child,
  .player-stats-table .anwp-table td:first-child {
    width: 35%;
  }
  
  .player-stats-table .anwp-table th,
  .player-stats-table .anwp-table td {
    padding: 1.2rem 0.8rem;
  }
}

@media (max-width: 991px) {
  .player-stats-table .anwp-table th:first-child,
  .player-stats-table .anwp-table td:first-child {
    width: 30%;
  }
  
  .player-stats-table .anwp-table th,
  .player-stats-table .anwp-table td {
    padding: 1rem 0.6rem;
    font-size: 1.3rem;
  }
  
  .player-stats-table .anwp-table th {
    height: 4.5rem;
    font-size: 1.3rem;
  }
  
  .player-stats-table .anwp-table td:first-child img {
    width: 2rem;
    height: 2rem;
  }
  
  .player-stats-table .anwp-table td:nth-child(2) img {
    width: 1.8rem;
    height: 1.8rem;
  }
}



/* =============================
   OVERRIDE EXISTING STYLES
   ============================= */

/* Override existing table styles */
.player-stats-table .anwp-table.anwp-table--bordered {
  border: none !important;
}

.player-stats-table .anwp-table.anwp-table--hover tbody tr:hover {
  background: #fafafa !important;
}

.player-stats-table .anwp-table.anwp-table--responsive {
  overflow: visible !important;
}

/* Override existing column styles */
.player-stats-table .anwp-table th.anwp-text-left {
  text-align: left !important;
}

.player-stats-table .anwp-table th.anwp-text-center {
  text-align: center !important;
}

.player-stats-table .anwp-table th.anwp-text-right {
  text-align: center !important;
  min-width: 6rem;
}

.player-stats-table .anwp-table td.anwp-text-left {
  text-align: left !important;
}

.player-stats-table .anwp-table td.anwp-text-center {
  text-align: center !important;
}

.player-stats-table .anwp-table td.anwp-text-right {
  text-align: center !important;
}

/* Override existing flex styles */
.player-stats-table .anwp-table td .d-flex {
  display: flex !important;
  align-items: center !important;
  gap: 1.2rem !important;
}

.player-stats-table .anwp-table td .anwp-object-contain {
  object-fit: cover !important;
}

.player-stats-table .anwp-table td .anwp-w-16 {
  width: 2.4rem !important;
}

.player-stats-table .anwp-table td .anwp-h-16 {
  height: 2.4rem !important;
}

.player-stats-table .anwp-table td .anwp-w-20 {
  width: 2rem !important;
}

.player-stats-table .anwp-table td .anwp-h-20 {
  height: 2rem !important;
}

.player-stats-table .anwp-table td .mr-2 {
  margin-right: 0 !important;
}

.player-stats-table .anwp-table td .mb-0 {
  margin-bottom: 0 !important;
}

/* Override existing link styles */
.player-stats-table .anwp-table td .anwp-link-without-effects {
  text-decoration: none !important;
  color: #333333 !important;
}

.player-stats-table .anwp-table td .anwp-link-without-effects:hover {
  color: #f15b2e !important;
  text-decoration: none !important;
}

/* Override existing font styles */
.player-stats-table .anwp-table td .anwp-font-semibold {
  font-weight: 600 !important;
  font-family: 'Montserrat', sans-serif !important;
}

/* Override existing rating styles */
.player-stats-table .anwp-table td .players-stats__player-rating {
  background-color: transparent !important;
  color: #3A3A44 !important;
  padding: 0.4rem 1rem !important;
  border-radius: 2rem !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.4rem !important;
  text-align: center !important;
  min-width: 2.4rem !important;
  height: 2.4rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-transform: uppercase !important;
}

/* Override existing pagination styles */
.player-stats-table .mt-3 {
  margin-top: 3rem !important;
}

.player-stats-table .mb-2 {
  margin-bottom: 1.5rem !important;
}
/* Tab Navigation Styles */
.anwp-stats-tabs {
	border-bottom: 2px solid #e9ecef;
}

.anwp-tabs-nav {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
}

.anwp-tab-item {
	margin: 0;
}

.anwp-tab-link,
.anwp-tab-link-custom {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	text-decoration: none;
	color: #6c757d;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	transition: all 0.3s ease;
	font-weight: 500;
	cursor: pointer;
}

.anwp-tab-link:hover {
	color: #F15B2E;
	text-decoration: none;
}

.anwp-tab-item.active .anwp-tab-link,
.anwp-tab-item.active .anwp-tab-link-custom {
	color: #F15B2E;
	border-bottom-color: #F15B2E;
	background-color: #F15B2E0A;
}

/* Sub-tabs Styles */
.anwp-subtabs-nav {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
}

.anwp-subtab-item {
	margin: 0;
}

.anwp-subtab-link {
	display: block;
	padding: 8px 16px;
	text-decoration: none;
	color: #6c757d;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	transition: all 0.3s ease;
	font-size: 14px;
	cursor: pointer;
}

.anwp-subtab-link:hover {
	color: #F15B2E;
	text-decoration: none;
}

.anwp-subtab-item.active .anwp-subtab-link {
	color: #F15B2E;
	border-bottom-color: #F15B2E;
}

/* Search Box Styles */
.anwp-search-box {
	max-width: fit-content;
}

.anwp-search-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.anwp-search-icon {
	position: absolute;
	left: 12px;
	color: #6c757d;
	pointer-events: none;
}

.anwp-search-input {
	width: 100%;
	padding: 10px 40px 10px 40px;
	border: 2px solid #e9ecef;
	border-radius: 6px;
	font-size: 14px;
	transition: border-color 0.3s ease;
}

.anwp-search-input:focus {
	outline: none;
	border-color: #F15B2E;
	box-shadow: 0 0 0 3px #F15B2E1A;
}

.anwp-search-clear {
	position: absolute;
	right: 8px;
	background: none;
	border: none;
	color: #6c757d;
	cursor: pointer;
	padding: 4px;
	border-radius: 50%;
	transition: all 0.3s ease;
}

.anwp-search-clear:hover {
	color: #F15B2E;
	background-color: #F15B2E1A;
}

/* Responsive Design */
@media (max-width: 768px) {
  .player-stats-table .anwp-table {
    table-layout: auto;
  }
	.anwp-tabs-nav {
		flex-direction: column;
	}
	
	.anwp-tab-link {
		justify-content: center;
		padding: 10px 16px;
	}
	
	.anwp-subtabs-nav {
		flex-wrap: wrap;
	}
	
	.anwp-subtab-link {
		padding: 6px 12px;
		font-size: 13px;
	}
	
	.anwp-search-box {
		max-width: 100%;
	}
}

/* Sort functionality styles */
.sortable-column {
	cursor: pointer;
	position: relative;
}

.sortable-column:hover {
	background-color: #f8f9fa;
}

.sorted-column {
	background-color: #F15B2E1A !important;
	font-weight: bold;
}

/* Highlight toàn bộ cột khi đang sort */
/* .sorted-column td {
	background-color: #e3f2fd !important;
	border-left: 3px solid #1976d2;
} */

.sort-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-decoration: none;
	color: inherit;
	width: 100%;
}

.sort-link:hover {
	text-decoration: none;
	color: inherit;
}

.sort-icon {
	margin-left: 5px;
	font-size: 12px;
	color: #666;
}

.sorted-column .sort-icon {
	color: #1976d2;
	font-weight: bold;
}


/* ----------------------------------- 
   COMPETITION TROPHIES MODAL (migrated from template styles)
   ----------------------------------- */
/* Visible list styles */
.ctm-visible{background:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}
.ctm-visible__header{display:flex;align-items:center;gap:1rem;padding:.75rem 1rem;background:#f8fafc;border-bottom:1px solid #e5e7eb}
.ctm-visible__title{font-weight:600}
.ctm-visible__btn{margin-left:auto;background:#f15b2e;color:#fff;border:none;border-radius:6px;padding:.4rem .7rem;cursor:pointer;font-weight:600;transition:background .2s ease, transform .1s ease}
.ctm-visible__btn:hover{background:#d14821}
.ctm-empty{padding:1rem;color:#64748b;text-align:center}
.ctm-table-wrap{overflow:auto}
.ctm-table{width:100%;border-collapse:separate;border-spacing:0}
.ctm-table thead th{background:#f9fafb;text-align:left;font-weight:600;color:#374151;border-bottom:1px solid #e5e7eb;padding:.6rem .75rem}
.ctm-table tbody td{border-bottom:1px solid #f1f5f9;padding:.6rem .75rem;vertical-align:middle;text-align:left}
.ctm-logo-ph{width:36px;height:36px;background:#f1f5f9;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#94a3b8}
.ctm-row-edit{border:1px solid #cbd5e1;background:#fff;border-radius:6px;padding:.25rem .5rem;cursor:pointer}

/* Modal styles */
.competition-trophies-modal{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:10000;}
.competition-trophies-modal .ctm__dialog{background:#fff;max-width:1000px;margin:6vh auto;border-radius:12px;overflow:hidden;box-shadow:0 16px 40px rgba(0,0,0,.18)}
.ctm__header{display:flex;align-items:center;gap:1rem;padding:1.2rem 1.5rem;background:linear-gradient(180deg,#f8fafc,#f3f4f6);border-bottom:1px solid #e5e7eb}
.ctm__title{font-weight:700;font-size:17px;color:#3a3a44}
.ctm__close{margin-left:auto;background:transparent;border:none;font-size:22px;cursor:pointer;color:#3a3a44;border-radius:8px;padding:.2rem .5rem}
.ctm__close:hover{background:#eef2f7}
.ctm__body{padding:1.2rem 1.5rem;background:#fff}
.ctm__toolbar{display:flex;gap:.6rem;margin-bottom:1.1rem}
.ctm__add,.ctm__save,.ctm__cancel{border:none;border-radius:8px;padding:.55rem .9rem;cursor:pointer;font-weight:700;letter-spacing:.02em}
.ctm__add{background:#f15b2e;color:#fff;box-shadow:0 2px 8px rgba(241,91,46,.18)}
.ctm__add:hover{background:#d14821}
.ctm__save{background:#3a3a44;color:#fff;box-shadow:0 2px 8px rgba(58,58,68,.18)}
.ctm__save:hover{background:#4a4a54}
.ctm__cancel{background:#e5e7eb;color:#222}

.ctm__list{display:flex;flex-direction:column;gap:1rem}
.ctm__row{display:grid;grid-template-columns:320px 1fr 260px 100px;gap:1rem;align-items:end;border:1px solid #e5e7eb;border-radius:10px;padding:1rem;background:#fff}
.ctm__col label{display:block;font-size:12px;font-weight:700;margin-bottom:.35rem;color:#3a3a44;letter-spacing:.02em}

/* Club select */
.ctm__club-select{display:flex;align-items:center;gap:.7rem;border:1px solid #e5e7eb;border-radius:10px;padding:.6rem .7rem;background:#fafbfc}
.ctm__club-picked{display:flex;align-items:center;gap:.6rem;color:#111}
.ctm__club-logo{width:28px;height:28px;border-radius:6px;object-fit:cover;background:#f1f5f9;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.ctm__club-name{font-weight:600;color:#3a3a44}
.ctm__pick-club{border:1px solid #cbd5e1;background:#fff;border-radius:8px;padding:.45rem .7rem;cursor:pointer;font-weight:600;color:#3a3a44}
.ctm__pick-club:hover{border-color:#f15b2e;color:#f15b2e}

/* Image upload */
.ctm__upload{border:2px dashed #cbd5e1;border-radius:10px;display:flex;gap:.7rem;align-items:center;padding:.7rem;background:#fafafa}
.ctm__ph{width:72px;height:72px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:8px;color:#64748b;font-size:12px;box-shadow:inset 0 0 0 1px #e5e7eb}
.ctm__btn-upload{border:1px solid #cbd5e1;background:#fff;border-radius:8px;padding:.45rem .7rem;cursor:pointer;font-weight:600;color:#3a3a44}
.ctm__btn-upload:hover{border-color:#f15b2e;color:#f15b2e}

/* Actions */
.ctm__actions{display:flex;align-items:center;justify-content:flex-end}
.ctm__delete{border:none;background:#ef4444;color:#fff;padding:.5rem .8rem;border-radius:8px;cursor:pointer;font-weight:700}
.ctm__delete:hover{filter:brightness(.95)}

/* Club picker */
.ctm-picker{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:10001;display:flex;align-items:center;justify-content:center}
.ctm-picker__dialog{background:#fff;max-width:640px;width:92%;border-radius:12px;overflow:hidden;box-shadow:0 18px 44px rgba(0,0,0,.22)}
.ctm-picker__header{display:flex;align-items:center;padding:1rem 1.2rem;background:#f6f7f9;border-bottom:1px solid #e5e7eb}
.ctm-picker__title{font-weight:700;color:#3a3a44}
.ctm-picker__close{margin-left:auto;background:transparent;border:none;font-size:20px;cursor:pointer;color:#3a3a44;border-radius:8px;padding:.2rem .5rem}
.ctm-picker__close:hover{background:#eef2f7}
.ctm-picker__body{padding:1rem 1.2rem;background:#fff}
.ctm-picker__search{width:100%;border:2px solid #e9ecef;border-radius:10px;padding:.6rem .9rem;margin-bottom:.9rem}
.ctm-picker__results{display:flex;flex-direction:column;gap:.6rem;max-height:360px;overflow:auto}
.ctm-picker__item{display:flex;align-items:center;gap:.7rem;border:1px solid #e5e7eb;border-radius:10px;padding:.6rem .8rem;cursor:pointer;transition:background .15s ease}
.ctm-picker__item:hover{background:#f8fafc}
.ctm-picker__logo{width:28px;height:28px;border-radius:6px;object-fit:cover;background:#f1f5f9}
.ctm-picker__name{font-size:14px;font-weight:600;color:#3a3a44}

/* Responsive tweak */
@media (max-width: 768px){
  .ctm__row{grid-template-columns:1fr;}
  .ctm__actions{justify-content:flex-start}
}

/* Competition Trophies table column sizes */
/* After adding Competition column, update widths accordingly */
.ctm-table th:nth-child(2),
.ctm-table td:nth-child(2){ /* Team */
  width: 18%;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctm-table th:nth-child(3),
.ctm-table td:nth-child(3){ /* Competition */
  width: 18%;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctm-table th:nth-child(4),
.ctm-table td:nth-child(4){ /* Award */
  width: 22%;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctm-table th:nth-child(5),
.ctm-table td:nth-child(5){ /* Trophy image */
  width: 64px;
}
/* Action column remains last (6) */

/* Competition News Styles */
.competition-news-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.news-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.news-header__title {
  font-weight: 600;
  color: #3a3a44;
}

.news-header__btn {
  margin-left: auto;
  background: #f15b2e;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.1s ease;
}

.news-header__btn:hover {
  background: #d14821;
}

.news-list {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.news-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-item__image {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
}

.news-item__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.news-item__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 12px;
  gap: 0.5rem;
}

.news-item__content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.news-item__title {
  font-size: 16px;
  font-weight: 600;
  color: #3a3a44;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.news-item__meta {
  margin-bottom: 0.5rem;
}

.news-item__date {
  font-size: 12px;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.news-item__excerpt {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.news-item__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.news-item__edit,
.news-item__delete {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.news-item__edit {
  background: #3a3a44;
  color: #fff;
}

.news-item__edit:hover {
  background: #4a4a54;
}

.news-item__delete {
  background: #ef4444;
  color: #fff;
}

.news-item__delete:hover {
  background: #dc2626;
}

.news-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: #64748b;
}

.news-empty__icon {
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.news-empty__title {
  font-size: 18px;
  font-weight: 600;
  color: #3a3a44;
  margin: 0 0 0.5rem 0;
}

.news-empty__text {
  margin: 0 0 1.5rem 0;
  font-size: 14px;
}

.news-empty__btn {
  background: #f15b2e;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.news-empty__btn:hover {
  background: #d14821;
}

/* News Modal */
.news-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.news-modal__overlay {
  position: absolute;
  inset: 0;
}

.news-modal__content {
  background: #fff;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  position: relative;
  display: flex;
  flex-direction: column;
}

.news-modal__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: linear-gradient(180deg, #f8fafc, #f3f4f6);
  border-bottom: 1px solid #e5e7eb;
}

.news-modal__title {
  font-weight: 700;
  font-size: 17px;
  color: #3a3a44;
  margin: 0;
}

.news-modal__close {
  margin-left: auto;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #3a3a44;
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
}

.news-modal__close:hover {
  background: #eef2f7;
}

.news-modal__body {
  padding: 1.2rem 1.5rem;
  background: #fff;
  flex: 1;
  overflow-y: auto;
}

.news-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #3a3a44;
  letter-spacing: 0.02em;
  text-align: left;
}

.form-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #f15b2e;
  box-shadow: 0 0 0 3px rgba(241, 91, 46, 0.1);
}

/* Thumbnail Upload */
.thumbnail-upload {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.thumbnail-preview {
  width: 120px;
  height: 80px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbnail-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 12px;
  gap: 0.5rem;
  text-align: center;
}

.btn-upload {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-weight: 600;
  color: #3a3a44;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-upload:hover {
  border-color: #f15b2e;
  color: #f15b2e;
}

/* Editor Container */
.editor-container {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.editor-container .wp-editor-wrap {
  border: none;
}

.editor-container .wp-editor-tools {
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.editor-container .wp-editor-container {
  border: none;
}

.editor-container .wp-editor-area {
  border: none;
  border-radius: 0;
  min-height: 300px;
}

.editor-container .mce-tinymce {
  border: none;
}

.editor-container .mce-edit-area {
  border: none;
}

.editor-container .mce-edit-area iframe {
  border: none;
  min-height: 300px;
}

/* Modal Buttons */
.btn-cancel {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #3a3a44;
  border-radius: 8px;
  padding: 1.2rem 3rem;
  cursor: pointer;
  font-size: 1.6rem;  
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-cancel:hover {
  border-color: #f15b2e;
  color: #f15b2e;
}

.btn-save {
  background: #f15b2e;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(241, 91, 46, 0.18);
  transition: background 0.2s ease;
}

.btn-save:hover {
  background: #d14821;
}

/* Responsive */
@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
  }
  
  .news-item__image {
    width: 100%;
    height: 200px;
  }
  
  .news-item__actions {
    flex-direction: row;
    justify-content: flex-end;
  }
  
  .news-modal__content {
    margin: 0;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .thumbnail-upload {
    flex-direction: column;
  }
  
  .thumbnail-preview {
    width: 100%;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .news-modal__body {
    padding: 1rem;
  }
  
  .news-modal__header,
  .news-modal__footer {
    padding: 1rem;
  }
  
  .news-modal__footer {
    flex-direction: column;
  }
  
  .btn-cancel,
  .btn-save {
    width: 100%;
  }
}

/* Match card drag over states */
.match-card.drag-over-card {
  background: rgba(241, 91, 46, 0.1);
  border: 2px solid #f15b2e;
  transform: scale(1.01);
}

/* Match Search Section */
.match-search-section {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 2rem;
  background: #f8f9fa;
}

.search-container {
  max-width: 800px;
  margin: 0 auto;
}

.search-inputs-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.vs-separator {
  font-weight: bold;
  color: #6b7280;
  font-size: 14px;
  padding: 0 0.5rem;
  min-width: 30px;
  text-align: center;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  will-change: border-color, box-shadow;
  flex: 1;
}

.search-input-wrapper:focus-within {
  border-color: #f15b2e;
  box-shadow: 0 0 0 3px rgba(241, 91, 46, 0.1);
}

.search-icon {
  color: #6c757d;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.6rem;
  font-weight: 500;
  color: #343a40;
  background: transparent;
}

.search-input::placeholder {
  color: #6c757d;
  font-weight: 400;
}

.search-clear {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: #6b7280;
  transition: all 0.2s ease;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.search-clear:hover {
  color: #f15b2e;
  background-color: #f15b2e1a;
}

.search-results-info {
  margin-top: 1rem;
  text-align: center;
}

.search-count {
  font-size: 1.4rem;
  color: #6c757d;
  font-weight: 500;
}

/* Match highlighting */
.match-card.search-match {
  border: 2px solid #f15b2e;
  box-shadow: 0 4px 12px rgba(241, 91, 46, 0.15);
}

.match-card.search-hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.search-highlight {
  background: #fff3cd;
  color: #856404;
  padding: 0.1rem 0.2rem;
  border-radius: 0.2rem;
  font-weight: 600;
}

/* Empty search state */
.search-empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #6c757d;
}

.search-empty-state h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #495057;
}

.search-empty-state p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.search-empty-state svg {
  width: 6rem;
  height: 6rem;
  color: #dee2e6;
  margin-bottom: 1.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .match-search-section {
    padding: 1rem;
  }

  .search-inputs-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .vs-separator {
    order: 2;
    font-size: 12px;
    margin: 0;
  }
  
  .search-input-wrapper {
    padding: 0.6rem 0.8rem;
  }

  .search-input {
    font-size: 14px;
  }

  .search-input::placeholder {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .search-input::placeholder {
    font-size: 12px;
  }
  
  .vs-separator {
    font-size: 11px;
  }
}

.nav-tab:last-child {
  margin-right: 0;
}

/* Empty search state */
.search-empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #6c757d;
}

.search-empty-state h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #495057;
}

.search-empty-state p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.search-empty-state svg {
  width: 6rem;
  height: 6rem;
  color: #dee2e6;
  margin-bottom: 1.5rem;
}

/* No matches placeholder */
.no-matches-placeholder {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
  font-style: italic;
}

.no-matches-placeholder p {
  margin: 0;
  font-size: 1.4rem;
}

/* Responsive design */

/* Lazy Load Container */
.lazy-load-container {
  margin-top: 2rem;
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.8rem;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.lazy-load-container:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.lazy-load-trigger {
  cursor: pointer;
  user-select: none;
}

.lazy-load-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lazy-load-spinner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #f15b2e;
  font-weight: 500;
}

.lazy-load-spinner svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.lazy-load-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #adb5bd;
}

.lazy-load-text span {
  font-weight: 500;
  color: #ffffff;
}

.lazy-load-text small {
  font-size: 1.2rem;
  opacity: 0.7;
}

.lazy-load-container.loading {
  background: rgba(241, 91, 46, 0.1);
  border-color: #f15b2e;
}

.lazy-load-container.loading .lazy-load-text {
  display: none;
}

.lazy-load-container.loading .lazy-load-spinner {
  display: flex;
}

.lazy-load-container.completed {
  background: rgba(76, 175, 80, 0.1);
  border-color: #4caf50;
  cursor: default;
}

.lazy-load-container.completed .lazy-load-text span {
  color: #4caf50;
}

/* Search highlight */
.search-highlight {
  background-color: #f15b2e;
  color: white;
  padding: 0.1rem 0.3rem;
  border-radius: 0.2rem;
  font-weight: bold;
}

/* Search states */
.match-card.search-match {
  border: 2px solid #f15b2e;
  background: rgba(241, 91, 46, 0.05);
}

.match-card.search-hidden {
  display: none;
}

/* Notification styles */
.notification {
  font-family: inherit;
  font-size: 1.4rem;
}

.notification-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* =============================
   GOVERNANCE INTERFACE STYLES
   ============================= */

/* Governance Container */
.governance-container {
  background: #ffffff;
  border-radius: 1.2rem;
  box-shadow: 0 0.4rem 2rem rgba(0, 0, 0, 0.08);
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
}

/* Governance Navigation */
.governance-nav {
  display: flex;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 0.2rem solid #e9ecef;
  padding: 0;
  margin: 0;
}

.governance-nav-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1.8rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-decoration: none;
}

.governance-nav-tab:hover {
  background: rgba(241, 91, 46, 0.1);
  color: #f15b2e;
}

.governance-nav-tab.active {
  background: #ffffff;
  color: #f15b2e;
  border-bottom: 0.3rem solid #f15b2e;
  box-shadow: 0 -0.2rem 1rem rgba(241, 91, 46, 0.1);
}

.governance-nav-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(241, 91, 46, 0.05) 0%, rgba(241, 91, 46, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.governance-nav-tab:hover::before {
  opacity: 1;
}

.governance-nav-tab span {
  position: relative;
  z-index: 1;
}

.tab-count {
  background: #f15b2e;
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  min-width: 2.4rem;
  text-align: center;
  box-shadow: 0 0.2rem 0.4rem rgba(241, 91, 46, 0.3);
}

.governance-nav-tab:not(.active) .tab-count {
  background: #6c757d;
  box-shadow: 0 0.2rem 0.4rem rgba(108, 117, 125, 0.3);
}

/* Tab Content */
.governance-tab-content {
  display: none;
  padding: 2.5rem;
  background: #ffffff;
}

.governance-tab-content.active {
  display: block;
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Governance Header */
.governance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 0.2rem solid #f8f9fa;
}

.governance-header h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #3a3a44;
  margin: 0;
}

/* User Management Table */
.users-table-container {
  background: #ffffff;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.05);
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Montserrat', sans-serif;
}

.users-table thead {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.users-table th {
  padding: 1.5rem 1.2rem;
  text-align: left;
  font-weight: 700;
  font-size: 1.3rem;
  color: #3a3a44;
  border-bottom: 0.2rem solid #e9ecef;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.users-table tbody tr {
  border-bottom: 0.1rem solid #f8f9fa;
  transition: all 0.3s ease;
}

.users-table tbody tr:hover {
  background: rgba(241, 91, 46, 0.02);
  transform: translateX(0.2rem);
}

.users-table td {
  padding: 1.5rem 1.2rem;
  font-size: 1.4rem;
  color: #3a3a44;
  vertical-align: middle;
  text-align: left;
}

.users-table td:first-child {
  font-weight: 600;
}

/* Permission Badges */
.permission-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.2);
}

.permission-badge.view {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.permission-badge.edit {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.permission-badge.manage_matches {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.permission-badge.manage_players {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  color: #212529;
}

.permission-badge.manage_settings {
  background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%);
}

.permission-badge.manage_users {
  background: linear-gradient(135deg, #6f42c1 0%, #5a2d91 100%);
}

.permission-badge.admin {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* No Data State */
.no-data {
  text-align: center;
  padding: 4rem 2rem;
  color: #6c757d;
  font-style: italic;
  font-size: 1.6rem;
  background: #f8f9fa;
  border-radius: 0.8rem;
  margin: 2rem 0;
}

/* Activity Logs */
.activity-logs-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.activity-log-item {
  background: #ffffff;
  border: 0.1rem solid #e9ecef;
  border-radius: 1rem;
  padding: 1.8rem;
  transition: all 0.3s ease;
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.05);
}

.activity-log-item:hover {
  box-shadow: 0 0.4rem 1.5rem rgba(0, 0, 0, 0.1);
  transform: translateY(-0.2rem);
  border-color: #f15b2e;
}

.activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 0.1rem solid #f8f9fa;
}

.activity-user {
  font-weight: 700;
  font-size: 1.5rem;
  color: #3a3a44;
}

.activity-time {
  font-size: 1.2rem;
  color: #6c757d;
  background: #f8f9fa;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
}

.activity-detail {
  font-size: 1.4rem;
  color: #495057;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.activity-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1.2rem;
}

.activity-type {
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.3rem 0.8rem;
  border-radius: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.activity-ip {
  color: #6c757d;
  font-family: 'Courier New', monospace;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 0.6rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #f15b2e 0%, #d14821 100%);
  color: #ffffff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d14821 0%, #b03d1c 100%);
  transform: translateY(-0.1rem);
  box-shadow: 0 0.4rem 0.8rem rgba(241, 91, 46, 0.3);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
}

.btn-revoke {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #ffffff;
}

.btn-revoke:hover {
  background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
  transform: translateY(-0.1rem);
  box-shadow: 0 0.4rem 0.8rem rgba(220, 53, 69, 0.3);
}

/* Access Denied */
.governance-access-denied {
  text-align: center;
  padding: 4rem 2rem;
  background: #ffffff;
  border-radius: 1.2rem;
  box-shadow: 0 0.4rem 2rem rgba(0, 0, 0, 0.08);
}

.governance-access-denied h3 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #dc3545;
  margin-bottom: 1.5rem;
}

.governance-access-denied p {
  font-size: 1.6rem;
  color: #6c757d;
  margin: 0;
}

/* Loading States */
.governance-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-row {
  height: 2rem;
  margin-bottom: 1rem;
  border-radius: 0.4rem;
}

.skeleton-badge {
  width: 8rem;
  height: 2.4rem;
  border-radius: 2rem;
}

/* Responsive Design */
@media (max-width: 991px) {
  .governance-nav {
    flex-direction: column;
  }
  
  .governance-nav-tab {
    border-bottom: 0.1rem solid #e9ecef;
  }
  
  .governance-nav-tab.active {
    border-bottom: 0.3rem solid #f15b2e;
  }
  
  .governance-header {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  
  .users-table {
    font-size: 1.3rem;
  }
  
  .users-table th,
  .users-table td {
    padding: 1.2rem 0.8rem;
  }
}

@media (max-width: 768px) {
  .governance-container {
    border-radius: 0;
    box-shadow: none;
  }
  
  .governance-tab-content {
    padding: 1.5rem;
  }
  
  .governance-header h3 {
    font-size: 1.8rem;
  }
  
  .users-table-container {
    overflow-x: auto;
  }
  
  .users-table {
    min-width: 600px;
  }
  
  .activity-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  
  .activity-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .governance-tab-content {
    padding: 1rem;
  }
  
  .governance-header {
    margin-bottom: 1.5rem;
  }
  
  .governance-header h3 {
    font-size: 1.6rem;
  }
  
  .activity-log-item {
    padding: 1.2rem;
  }
  
  .activity-user {
    font-size: 1.3rem;
  }
  
  .activity-detail {
    font-size: 1.3rem;
  }
  
  .permission-badge {
    font-size: 1rem;
    padding: 0.4rem 1rem;
  }
}

/* =============================
   GOVERNANCE MODAL STYLES - MODERN DESIGN
   ============================= */

.governance-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.governance-modal__content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 2rem;
  box-shadow: 
    0 2rem 6rem rgba(0, 0, 0, 0.15),
    0 0.8rem 2rem rgba(0, 0, 0, 0.1),
    0 0 0 0.1rem rgba(255, 255, 255, 0.8);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-3rem) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.governance-modal__header {
  padding: 2.5rem 3rem 2rem;
  border-bottom: 0.1rem solid rgba(241, 91, 46, 0.1);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 2rem 2rem 0 0;
  position: relative;
}

.governance-modal__title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  background: linear-gradient(135deg, #f15b2e 0%, #d14821 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.governance-modal__body {
  padding: 3rem;
  background: #ffffff;
}

.governance-modal__footer {
  padding: 2rem 3rem 3rem;
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 0 0 2rem 2rem;
  border-top: 0.1rem solid rgba(241, 91, 46, 0.1);
}

/* Enhanced Form Styles */
.governance-form-group {
  margin-bottom: 2.5rem;
  position: relative;
}

.governance-form-label {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.governance-form-input,
.governance-form-select {
  width: 100%;
  padding: 1.4rem 1.8rem;
  border: 0.2rem solid #e2e8f0;
  border-radius: 1.2rem;
  font-size: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.05);
}

.governance-form-input:focus,
.governance-form-select:focus {
  outline: none;
  border-color: #f15b2e;
  box-shadow: 
    0 0 0 0.4rem rgba(241, 91, 46, 0.1),
    0 0.4rem 1.2rem rgba(241, 91, 46, 0.15);
  transform: translateY(-0.1rem);
}

.governance-form-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.governance-form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 1.2rem center;
  background-repeat: no-repeat;
  background-size: 1.6rem;
  padding-right: 4rem;
  cursor: pointer;
}

.governance-form-select:hover {
  border-color: #cbd5e1;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.1);
}

/* Enhanced Button Styles */
.btn-modal-cancel {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  color: #ffffff;
  border: none;
  padding: 1.2rem 2.4rem;
  border-radius: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0.4rem 1.2rem rgba(100, 116, 139, 0.3);
  min-width: 12rem;
}

.btn-modal-cancel:hover {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  transform: translateY(-0.2rem);
  box-shadow: 0 0.8rem 2rem rgba(100, 116, 139, 0.4);
}

.btn-modal-save {
  background: linear-gradient(135deg, #f15b2e 0%, #d14821 100%);
  color: #ffffff;
  border: none;
  padding: 1.2rem 2.4rem;
  border-radius: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0.4rem 1.2rem rgba(241, 91, 46, 0.3);
  min-width: 12rem;
  position: relative;
  overflow: hidden;
}

.btn-modal-save::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-modal-save:hover::before {
  left: 100%;
}

.btn-modal-save:hover {
  background: linear-gradient(135deg, #d14821 0%, #b03d1c 100%);
  transform: translateY(-0.2rem);
  box-shadow: 0 0.8rem 2rem rgba(241, 91, 46, 0.4);
}

.btn-modal-save:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Enhanced Close Button */
.governance-modal__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border: 0.1rem solid rgba(241, 91, 46, 0.2);
  font-size: 2.4rem;
  color: #64748b;
  cursor: pointer;
  padding: 0.8rem;
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 4.4rem;
  height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.governance-modal__close:hover {
  background: rgba(241, 91, 46, 0.1);
  color: #f15b2e;
  transform: scale(1.1) rotate(90deg);
  border-color: rgba(241, 91, 46, 0.3);
}

/* Enhanced Message Styles */
.governance-message {
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  font-weight: 600;
  font-size: 1.4rem;
  border: 0.1rem solid;
  animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(-1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.governance-message.success {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #166534;
  border-color: #86efac;
  box-shadow: 0 0.4rem 1.2rem rgba(34, 197, 94, 0.15);
}

.governance-message.error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #991b1b;
  border-color: #fca5a5;
  box-shadow: 0 0.4rem 1.2rem rgba(239, 68, 68, 0.15);
}

/* Enhanced Loading Spinner */
.governance-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 0.3rem solid rgba(255, 255, 255, 0.3);
  border-top: 0.3rem solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.8rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced Form Hint */
.form-hint {
  font-size: 1.3rem;
  color: #64748b;
  margin-top: 0.8rem;
  font-weight: 500;
  display: block;
}

/* Enhanced Pending Invitations Section */
.pending-invitations-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 0.1rem solid rgba(241, 91, 46, 0.1);
}

.pending-invitations-section h4 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.pending-invitation-item {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 0.1rem solid rgba(241, 91, 46, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.pending-invitation-item:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.1);
  border-color: rgba(241, 91, 46, 0.2);
}

.pending-invitation-item p {
  margin: 0.5rem 0;
  font-size: 1.3rem;
  color: #475569;
  font-weight: 500;
}

.loading-placeholder {
  text-align: center;
  padding: 2rem;
  color: #64748b;
  font-size: 1.4rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .governance-modal {
    padding: 1rem;
  }
  
  .governance-modal__content {
    max-width: 100%;
    border-radius: 1.5rem;
  }
  
  .governance-modal__header {
    padding: 2rem 2rem 1.5rem;
  }
  
  .governance-modal__title {
    font-size: 1.8rem;
  }
  
  .governance-modal__body {
    padding: 2rem;
  }
  
  .governance-modal__footer {
    padding: 1.5rem 2rem 2rem;
    flex-direction: column;
  }
  
  .btn-modal-cancel,
  .btn-modal-save {
    width: 100%;
    min-width: auto;
  }
  
  .governance-form-input,
  .governance-form-select {
    padding: 1.2rem 1.5rem;
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .governance-modal__header {
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .governance-modal__body {
    padding: 1.5rem;
  }
  
  .governance-modal__footer {
    padding: 1rem 1.5rem 1.5rem;
  }
  
  .governance-modal__title {
    font-size: 1.6rem;
  }
}