/* General Reset */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #fff;
}

header {
    text-align: center;
    padding: 20px;
    background-color: #1e1e1e;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

h1 {
    margin: 0;
    font-size: 28px;
}

/* Tabs */
.tab {
    overflow: hidden;
    border-bottom: 1px solid #333;
    background-color: #1e1e1e;
}

.tab button {
    background-color: inherit;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    color: #fff;
    font-weight: bold;
}

.tab button:hover {
    background-color: #2a2a2a;
}

.tab button.active {
    border-bottom: 3px solid #2196F3;
}

/* Tab Content */
.tabcontent {
    display: none;
    padding: 20px;
}

/* Container for roster tab */
.container {
    display: flex;
    gap: 20px;
    padding: 0;
}

/* Panels */
.left, .right {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

h2 {
    margin-top: 0;
}

input[type="text"], input[type="number"], select {
    padding: 5px 8px;
    margin-right: 8px;
    border-radius: 4px;
    border: none;
    background-color: #2a2a2a;
    color: #fff;
}

select[multiple] {
    height: 100px;
}

select#valueFilter {
    width: 100%;
    padding: 6px 8px;
    margin-right: 0;
}

button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

button.add {
    background-color: #4CAF50;
    color: white;
}

button.remove {
    background-color: #d9534f;
    color: white;
}

button#applyFiltersBtn {
    background-color: #2196F3;
    color: white;
    margin-right: 5px;
}

button#resetFiltersBtn {
    background-color: #f44336;
    color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #333;
}

tr:hover {
    background-color: #333;
}

.filter-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.filter-group input[type="text"],
.filter-group input[type="number"],
.filter-group select {
    padding: 5px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 5px;
}

#positionFilter label {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 5px;
    font-weight: normal;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.salary-filter {
    display: flex;
    gap: 5px;
}

.salary-filter select {
    width: 50px;
    padding: 4px;
}

.salary-filter input {
    flex: 1;
    padding: 4px;
}

#filters {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #252525;
    border-radius: 8px;
}

#rosterSummary {
    background-color: #252525;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

#rosterSummary ul {
    list-style: none;
    padding-left: 0;
    margin: 10px 0 0 0;
}

#rosterSummary li {
    margin: 5px 0;
}

#avgValue {
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Chart Tab */
#graphTab {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

#graphTab canvas {
    max-width: 100%;
    background-color: #1e1e1e; /* optional for dark theme consistency */
    border-radius: 8px;
}
/* Team Salary Distribution Charts */
#teamPieCharts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.chart-wrapper {
  width: 600px; /* bigger container */
  height: 600px;
  padding: 10px;
  box-sizing: border-box;
  background-color: #1e1e1e;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.chart-canvas {
  width: 100% !important;
  height: 100% !important;
}


.chart-wrapper h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  text-align: center;
}
