/* main.css - Guild Gear Viewer (Sticky HUD + Donut Charts) */

body {
  background-color: #1c1c1c;
  color: #e0e0e0;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

header {
  background-color: #1c1c1c;
  padding: 16px 20px;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 10;
}

h1 {
  font-size: 24px;
  margin-bottom: 6px;
  color: #ffffff;
  text-align: center;
}

#timestamp, #zone {
  font-size: 13px;
  color: #aaa;
  text-align: center;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.filters input,
.filters select {
  padding: 6px;
  background-color: #2a2a2a;
  color: #e0e0e0;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 14px;
}

label {
  font-size: 13px;
  display: flex;
  align-items: center;
  color: #ccc;
}

label input[type="checkbox"] {
  margin-right: 6px;
}

.chart-hud {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 10px 20px;
}

.chart-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chart-wrapper canvas {
  width: 140px !important;
  height: 140px !important;
  background: none;
  border-radius: 0;
}

.chart-label {
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
}

#player-scroll {
  overflow-y: auto;
  flex-grow: 1;
  padding: 10px 20px;
}

#player-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.player-box {
  background-color: #2a2a2a;
  border-radius: 8px;
  padding: 12px 16px;
  color: #ddd;
  border-left: 6px solid #555;
  transition: all 0.2s ease;
}

.player-box.undergeared {
  border-left-color: #ff4c4c;
}

.player-box.ok {
  border-left-color: #ffd966;
}

.player-box.geared {
  border-left-color: #8eff8e;
}

.player-box h2 {
  font-size: 20px;
  margin-bottom: 4px;
  color: #aadfff;
}

.player-box p {
  margin: 4px 0;
  font-size: 14px;
}

.spec {
  color: #ccc;
  font-weight: normal;
  font-style: italic;
  font-size: 14px;
}

.class-Warrior { color: #C79C6E; }
.class-Mage { color: #69CCF0; }
.class-Priest { color: #FFFFFF; }
.class-Druid { color: #FF7D0A; }
.class-Paladin { color: #F58CBA; }
.class-Rogue { color: #FFF569; }
.class-Hunter { color: #ABD473; }
.class-Warlock { color: #9482C9; }
 }

.player-box a {
  text-decoration: none;
  font-weight: bold;
}

.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-left: 8px;
}
