body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f0f2f5;
    color: #111;
    margin: 0;
    padding: 0;
  }
  .scoreboard {
    padding: 20px;
  }
  .main-board {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
    text-align: center;
  }
  .team {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 30%;
    max-width: fit-content;
  }
  .team h2 {
    margin: 0 0 10px;
  }
  .score {
    font-size: 3em;
    font-weight: bold;
    margin: 0px 0;
  }
  .label {
    font-weight: bold;
    
  }
  .timeouts .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 3px;
    background-color: green;
    border-radius: 50%;
  }
  .center-info {
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    
    max-width: fit-content;
    min-width: fit-content;
    text-align: center;
  }
  .quarter {
    font-size: 4em;
    font-weight: bold;
  }
  .timer {
    font-size: 5em;
    font-weight: bold;
  }
  table {
    margin : 0 auto 20px;
    width: 90%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }
  th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
  }
  th {
    background-color: #333;
    color: #fff;
  }
  .headerColumntop {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding-bottom: 5px;
  }
  .headerColumnBottom {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
  }
  .homeQCell, .awayQCell{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
  }
  .cell{
    display: flex;
    flex-direction: column;
  }
  .lableRow {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
  }
  .controls {
    text-align: center;
    
  }
  .controls button {
    margin: 3px;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
  }
  .purple { background-color: #7c3aed; }
  .green { background-color: #16a34a; }
  .red { background-color: #dc2626; }
  .yellow { background-color: #ca8a04; }
  .blue { background-color: #2563eb; }

  .player-form {
    background: #fff;
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 900px;
  }
  .player-form h2 {
    margin-bottom: 20px;
  }
  .player-form input, .player-form select {
    padding: 12px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    min-width: 180px;
  }
  .player-form button {
    padding: 12px 25px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
  }
  .player-controls, .coach-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .player-table, .coach-table {
    width: 45%;
    background: #fff;
    color: #333;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin: 0;
  }
  .player-table th , .coach-table th {
    background: #1d4ed8;
    color: white;
    padding: 5px;
  }
  .player-table:nth-of-type(2) th, .coach-table:nth-of-type(2) th {
    background: #dc2626;
  }
  .player-table td, .coach-table td {
    padding: 2px;
    text-align: center;
    border-top: 1px solid #eee;
  }
  .player-table button, .coach-table button {
    background-color: #3b82f6;
    border: none;
    color: white;
    padding: 5px 5px;
    margin: 2px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7em;
  }
  .stat-btn {
    min-width: 45px;
    width: 45px;
  }
  .player-table button:hover, .coach-table button:hover {
    background-color: #2563eb;
  }
  .remove-btn {
    background-color: #ef4444;
  }
  .remove-btn:hover {
    background-color: #dc2626;
  }

  .coachCell {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 10px;
  }
  .coachCell h5{
    margin-right: 10px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    max-width: fit-content;
  }
.coachCell input {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 0.9em;
    width: 150px;
  }

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 500px;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal h2 {
    color: #1d4ed8;
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal h3 {
    color: #4b5563;
    margin: 1rem 0 0.5rem;
    font-size: 1.1em;
}

.form-group {
    margin-bottom: 1.5rem;
}

.modal input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.modal input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal .submit-btn {
    width: 100%;
    padding: 0.875rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal .submit-btn:hover {
    background-color: #1d4ed8;
}

/* Red Theme Modal Styles */
.red-theme {
    background-color: #fff;
    border-top: 4px solid #dc2626;
}

.red-theme h2 {
    color: #dc2626;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-btn {
    font-size: 1.5rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #dc2626;
}

#playerFormModal .submit-btn {
    background-color: #dc2626;
}

#playerFormModal .submit-btn:hover {
    background-color: #b91c1c;
}

#playerFormModal {
    display: none;
}
