.p-footer-copyright {display: none;}

/* --- Color Palette: Modern Dark Theme --- */
:root {
  --bg-main: #1a1d24;
  --bg-container: #232731;
  --text-primary: #e1e3e8;
  --text-secondary: #8c96a8;
  --accent-primary: #00bcd4; /* Cyan */
  --accent-secondary: #ffc107; /* Amber/Gold */
  --glow-primary: rgba(0, 188, 212, 0.6);
  --success-color: #4caf50;
  --border-color: #3a4150;
}

/* --- Global Styles --- */
body {
  font-family: 'Roboto', sans-serif; /* Roboto font is applied */
  color: var(--text-primary);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Main Header --- */
.main-header {
  text-align: center;
  margin-bottom: 40px;
}

.main-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0;
  letter-spacing: 1px;
}

.main-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 5px;
}


/* --- Main Control Panel --- */
#controls {
  margin-bottom: 30px;
}

#classControls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  background-color: var(--bg-container);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* --- Class Icons --- */
#classIcons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.class-icon {
  width: 64px;
  height: 64px;
  cursor: pointer;
  border: 2px solid var(--border-color);
  border-radius: 50%; /* Class icons remain rounded */
  box-sizing: border-box;
  transition: all 0.3s ease;
  filter: saturate(0.8);
}

.class-icon:hover {
  border-color: var(--accent-secondary);
  transform: scale(1.1);
  filter: saturate(1);
}

.class-icon.selected {
  border-color: var(--accent-primary);
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--glow-primary);
  filter: saturate(1.2);
}

/* --- Status Bar (Level, CDR, SP) --- */
.status-bar {
  display: flex;
  gap: 30px;
  align-items: stretch;
  font-size: 14px;
  width: 100%;
  justify-content: center;
}

.status-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.status-item label, .sp-display span:first-child {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.status-item input[type="number"] {
  width: 50px;
  font-size: 1rem;
  padding: 8px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  text-align: center;
  transition: all 0.2s ease;
}

.status-item input[type="number"]:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--glow-primary);
}

.sp-display #spValue {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success-color);
}


/* --- Skills Layout --- */
#skills {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.skill-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: rgba(35, 39, 49, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 15px;
  width: 160px; /* Increased width to accommodate level display */
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.skill-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  /* Set a consistent border to prevent "bumping" */
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

/* Glow effect for active skills */
.skill-row.is-active {
  background-color: rgba(0, 188, 212, 0.1);
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--glow-primary);
}

.skill-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.skill-row.is-active .skill-icon {
  transform: scale(1.1);
}

/* Blue border for skills with points - Applied to the whole row */
.skill-row.has-points {
  border: 2px solid var(--accent-primary); /* Blue border for the whole row */
  box-shadow: 0 0 6px var(--glow-primary); /* 6px glow */
}

/* Gold border for skills maxed out - Applied to the whole row */
.skill-row.is-maxed {
  border: 2px solid var(--accent-secondary); /* Gold border for the whole row */
  box-shadow: 0 0 6px var(--accent-secondary); /* 6px glow */
}


/* --- Skill Controls (+, -, etc) --- */
.skill-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px; /* Reduced gap */
}

.skill-controls img {
  width: 14px; /* Reduced size */
  height: 14px; /* Reduced size */
  cursor: pointer;
  padding: 2px; /* Reduced padding */
  border-radius: 50%;
  transition: all 0.2s ease;
}

.skill-controls img:hover {
  background-color: var(--accent-secondary);
  transform: scale(1.2);
}

.skill-controls span {
  font-size: 14px;
  font-weight: 600;
  min-width: 45px; /* Adjusted min-width for single line display */
  text-align: center;
  color: #fff;
}

/* --- Modern Tooltip --- */
.tooltip {
  display: none;
  position: absolute;
  background-color: #2c313c;
  color: var(--text-primary);
  font-size: 14px;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--accent-primary);
  white-space: pre-line;
  z-index: 10;
  pointer-events: none;
  max-width: 300px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  text-align: left;
}

.tooltip * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font: inherit;
  color: inherit;
}

.tooltip .skill-name {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.tooltip .tooltip-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.tooltip .label {
  color: var(--text-secondary);
  font-weight: 400;
  margin-right: 15px;
}

.tooltip .value {
  color: var(--text-primary);
  font-weight: 600;
}

.tooltip .tooltip-desc {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  margin-top: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
}


#goldValue {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary); /* Default color (light gray) */
}

#goldValue.gold-positive {
  color: var(--accent-secondary) !important;
}