:root {
  --accent: #3BAE43;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  background-color: #f1f1f1;
}

.sidenav {
  height: 100%;
  width: 230px;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgb(35, 39, 42);
  overflow-x: hidden;
  padding-top: 20px;
  color: white;
  text-align: center;
}

.sidenav a {
  display: block;
  text-align: left;
  padding: 10px 12px;
  text-decoration: none;
  font-size: 15px;
  color: #cccccc;
  box-sizing: border-box;
  background-color: rgb(35, 39, 42);
  margin: 1px 8px;
  border-radius: 10px;
}

.sidenav a:hover:not(.selected) {
  color: #fff;
  background-color: rgb(52, 58, 61);
}

.main {
  margin-left: 230px;
  padding: 0px 10px;
  background-color: #f1f1f1;

}

@media screen and (max-height: 450px) {
  .sidenav {
    padding-top: 15px;
  }

  .sidenav a {
    font-size: 18px;
  }
}

.sidenav img {
  display: block;
  margin: 0 auto;
}

.sidenav a:first-of-type {
  margin-top: -20px;
}

.sidenav .selected {
  background-color: #3BAE43;
  color: white;
}

/* 525861 */
.sidenav a svg {
  vertical-align: middle;
  margin-right: 1px;
  position: relative;
  top: -1px;
}

.divider {
  height: 1px;
  background-color: #ccc;
  margin: 10px 0;
  width: 100%;
}

.typewriterfont {
  font-family: "Courier Prime", monospace;
}

select {
  width: 100%;
  padding: 10px 18px;
  font-size: 14px;

  color: #333;
  background: #f5f5f5;
  border: 1px solid #d6d6d6;
  border-radius: 7px;
  outline: none;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;


  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23888'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 45px;
}

select:focus {
  border-color: #4caf50;
}

option {
  padding: 12px;
  font-size: 18px;
}

option:checked {
  background: #39b54a;
  color: white;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  vertical-align: middle;

  background: #00ff7f;

  animation: liveDot 1.5s infinite;
}

@keyframes liveDot {

  0%,
  100% {
    background: #00ff7f;
    box-shadow: 0 0 0 0 rgba(0, 255, 127, .7);
  }

  50% {
    background: #4dffb8;
    box-shadow: 0 0 5px 2px rgba(0, 255, 127, .9);
  }
}

#newGameBtn,
.newgame-btn {
  padding: 10px 18px;
  font-size: 14px;
  font-family: inherit;

  background: #39b54a;
  color: white;

  border: none;
  border-radius: 6px;

  cursor: pointer;
  transition: all 0.2s ease;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  height: 38px;
}

#newGameBtn:hover,
.newgame-btn:hover {
  background: #33a543;
}

#newGameBtn:active,
.newgame-btn:active {
  transform: translateY(1px);
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  background: white;
  border: 1px solid #d4d8dd;
  border-radius: 18px;
  padding: 18px;
}

.leader-card {
  height: 120px;
  display: flex;
  flex-direction: column;
}

.card-label {
  display: flex;
  align-items: center;
  gap: 8px;

  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.player-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #1f2937;
}

.player-stats {
  margin-top: 4px;
  font-size: 14px;
  color: #6b7280;
}


.stat-card {
  height: 120px;

  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 46px;
  height: 46px;

  flex-shrink: 0;

  border-radius: 12px;
  background: #edf2ef;

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

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-label {
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.big-stat {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}

.sub-stat {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}

.gray {
  color: #6b7280;
}

#exportButtonA,
#addPlayerButtonA {
  padding: 8px 16px;
  font-size: 14px;
  font-family: inherit;
  background: #39b54a;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0,
      0, 0.12);
  height: 34px;
}

#exportButtonA:hover,
#addPlayerButtonA:hover {
  background: #33a543;
}

.player-card {
  width: 100%;
  background: #fff;
  border: 2px solid #d9dde3;
  border-radius: 17px;
  padding: 10px 12px;
  height: 90px;
}

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

.player-card td {
  vertical-align: middle;
}

.number-cell {
  width: 20%;
}

.number-box {
  width: 50px;
  height: 50px;

  background: #eef2f0;
  border-radius: 10px;

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

  font-size: 25px;
  font-weight: 700;
  color: #00583d;
}

.info-cell {
  width: 100%;
  padding-left: 18px;
}

.player-name-1 {
  font-size: 16px;
  font-weight: 700;
  color: #212529;
  line-height: 1.1;
  margin-bottom: 14px;
  text-wrap: nowrap;
}

.badges {
  display: flex;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 4px 8px;
  border-radius: 999px;

  font-size: 10px;
  font-weight: 600;
}

.position {
  background: #39b54a;
  color: white;
}

.active {
  background: #eaf7eb;
  color: #39b54a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.action-cell {
  width: 10px;
  text-align: right;
  white-space: nowrap;
}

.icon-btn {
  border: none;
  background: none;
  cursor: pointer;

  font-size: 10px;

}

.edit {
  color: #222;
  margin-left: 8px;
  margin-right: -10px;
}

.delete {
  color: #ef4444;
  margin-left: 8px;
}

.actions {
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}

.player-card:hover .actions {
  opacity: 1;
  visibility: visible;
}

#offenseQuickEntry {
  width: 100%;
  border-collapse: separate;
  border: #ccc 1px solid;
  border-radius: 12px;
  overflow: hidden;
  padding: 15px;
  background: #fff;
}

.playerSelect {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: none;
  width: 95%;
}

input {
  padding: 10px 18px;
  font-size: 14px;
  width: 15%;
  margin-right: 10px;

  color: #333;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 7px;
  outline: none;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding-right: 10px;
}

#offense button,
#defense button,
#drives button,
#penalties button {
  padding: 8px 18px;
  font-size: 14px;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ltgrnBtn {
  background-color: #39b54a;
  color: white;
  border: none;
}

.ltgrnBtn:hover {
  background-color: #33a543;
}

#rush,
#passComp,
.darkGreen {
  background-color: #00583d;
  color: white;
  border: none;
}

#rush:hover,
#passComp:hover,
.darkGreen:hover {
  background-color: #00452b;
}

#targetInc,
#passInc,
.whiteBtn {
  background-color: #fff;
  color: black;
  border: .75px solid #ccc;
}

#targetInc:hover,
#passInc:hover,
.whiteBtn:hover {
  background-color: #39b54a;
  color: white;
}

#offensiveStatsTable,
#defensiveStatsTable {
  width: 100%;
  border-collapse: separate;
  border: #ccc 1px solid;
  border-radius: 12px;
  overflow: hidden;
  padding: 15px;
  background: #fff;
}

.drive-card {
  background: #fff;
  border: 3px solid #39b54a;
  border-radius: 20px;
  padding: 24px 32px;
  margin-bottom: 24px;
}

.drive-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drive-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-dot {
  width: 12px;
  height: 12px;
  background: #55b85a;
  border-radius: 50%;
}

.drive-title h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #222;
}

.drive-meta {
  font-family: "Courier Prime", monospace;
  font-size: 14px;
  color: #666;
}

.drive-tags {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.drive-tag {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.drive-tag.run {
  background: #fdeaea;
  color: #ef4444;
}

.drive-tag.pass {
  background: #e9f4ea;
  color: #39b54a;
}

.drive-stats {
  display: flex;
  gap: 40px;
  margin-top: 22px;
  font-size: 15px;
  color: #666;
}

.drive-stats strong {
  color: #222;
}

.drive-divider {
  height: 1px;
  background: #d9dde1;
  margin: 24px 0;
}

.btn {
  height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid #d0d5db;
  background: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn-active {
  background: #005f43;
  color: white;
  border-color: #005f43;
}

.btn:hover {
  background: #39b54a;
  color: white;
  border-color: #39b54a;
}

.yards-input {
  width: 150px;
  height: 48px;
  padding: 0 18px;
  border: 1px solid #d0d5db;
  border-radius: 10px;
  font-size: 15px;
}

.drive-end {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.drive-end-label {
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-right: 12px;
}

.drive-summary {
  background: white;
  border: 1px solid #d9dde1;
  border-radius: 18px;
  padding: 24px 28px;

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

.drive-summary-title {
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

.drive-summary-meta {
  font-size: 14px;
  color: #666;
  margin-left: 10px;
}

.drive-summary-stats {
  margin-top: 10px;
  display: flex;
  gap: 24px;
  color: #666;
  font-size: 14px;
}

.drive-result {
  background: #39b54a;
  color: white;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

#penaltyEntry {
  width: 110vw;
  border-collapse: separate;
  border: #ccc 1px solid;
  border-radius: 12px;
  overflow: hidden;
  padding: 15px;
  background: #fff;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}

.team-card {
  background: #ffffff;
  border: 1px solid #d7dce1;
  border-radius: 18px;
  overflow: hidden;
}

.team-card-header {
  padding: 22px 28px;
  font-size: 18px;
  font-weight: 700;
  color: #212529;
  border-bottom: 1px solid #d7dce1;
}

.team-card-body {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
}

.player-name {
  font-size: 16px;
  font-weight: 700;
  color: #212529;
}

.play-meta {
  font-size: 16px;
  color: #6c757d;
}

.exports-page {
    width: 100%;
}

.exports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.exports-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}

.export-all-btn {
    height: 42px;
    padding: 0 18px;
    border: none;
    border-radius: 8px;
    background: #35b84a;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.export-all-btn:hover {
    background: #2fa343;
}

.exports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.export-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;

    background: white;
    border: 1px solid #d9dee5;
    border-radius: 16px;

    padding: 22px;
}

.export-icon {
    width: 54px;
    height: 54px;

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

    background: #edf3ef;
    border-radius: 12px;

    font-size: 24px;
}

.export-content {
    flex: 1;
}

.export-title {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.export-description {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.download-btn {
    height: 38px;
    padding: 0 18px;

    border: 1px solid #d9dee5;
    border-radius: 8px;

    background: white;
    color: #1f2937;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.download-btn:hover {
    background: #f8fafc;
}