/* Base styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  background: #1e1e1e;
  color: #e0e0e0;
}

*, *:after, *:before{
	box-sizing: border-box;
}

a{
  color: #9147ff;
}

a:hover{
  color: #772ce8;
}

a:visited{
  color: #DFFF26;
}

.internal-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.internal-header {
  background: #252526;
  color: #e0e0e0;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.internal-header h1 {
  margin: 0;
}

/* Main content */
.internal-content {
  flex: 1;
  padding: 1.5rem;
  max-width: 1860px;
  margin: 0 auto;
  width: 100%;
}

/* Dev Panel specific styles */
.dev-panel {
  background: #2d2d2d;
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 1px solid #404040;
}

.control-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #252526;
  border-radius: 4px;
  border: 1px solid #404040;
}

.control-section .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.input-group {
  margin-bottom: 0.75rem;
  box-sizing: border-box;
  width: 100%;
}

.input-group label {
  display: block;
  margin-bottom: 0.3rem;
  color: #cccccc;
  font-size: 0.9rem;
}

textarea, input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #404040;
  border-radius: 3px;
  background: #1e1e1e;
  color: #e0e0e0;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 14px;
  box-sizing: border-box;
}

button {
  background: #9147ff;  /* Twitch purple */
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.9rem;
}

button:hover {
  background: #772ce8;  /* Darker Twitch purple */
}

.btn {
  display: inline-block;
  background: #9147ff;  /* Twitch purple */
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
}

.btn:hover {
  background: #772ce8;  /* Darker Twitch purple */
}

/* Footer */
.internal-footer {
  background: #252526;
  color: #858585;
  text-align: center;
  padding: 0.75rem;
  margin-top: auto;
  font-size: 0.9rem;
}

/* Tab Navigation */
.tab-navigation {
  margin-bottom: 1rem;
  border-bottom: 1px solid #404040;
}

.tab-button {
  background: transparent;
  color: #e0e0e0;
  border: 1px solid #404040;
  border-bottom: none;
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
}

.tab-button:hover {
  background: #3d3d3d;
}

.tab-button.active {
  background: #2d2d2d;
  border-bottom: 1px solid #2d2d2d;
  margin-bottom: -1px;
  border-top: 2px solid #9147ff;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* GSI Matches Dashboard */
.gsi-matches-dashboard {
  background: #2d2d2d;
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 1px solid #404040;
}

.gsi-matches-dashboard h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.controls {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status {
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  font-size: 0.9rem;
}

.status-info {
  background: #3d3d3d;
  color: #e0e0e0;
}

.status-success {
  background: #2d5a2d;
  color: #90ee90;
}

.status-error {
  background: #5a2d2d;
  color: #ff6b6b;
}

.matches-container {
  overflow-x: auto;
}

.matches-table {
  width: 100%;
  border-collapse: collapse;
  background: #252526;
  border-radius: 4px;
  overflow: hidden;
}

.matches-table thead {
  background: #1e1e1e;
}

.matches-table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: #e0e0e0;
  border-bottom: 2px solid #404040;
}

.matches-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #404040;
  color: #cccccc;
}

.matches-table tbody tr:hover {
  background: #2d2d2d;
}

.matches-table tbody tr:last-child td {
  border-bottom: none;
}

.btn-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  margin-right: 0.5rem;
}

.match-details {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #252526;
  border-radius: 4px;
  border: 1px solid #404040;
}

.match-details h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.detail-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #404040;
}

.detail-section:last-child {
  border-bottom: none;
}

.detail-section h4 {
  margin: 0 0 0.5rem 0;
  color: #9147ff;
  font-size: 1rem;
}

.detail-section p {
  margin: 0.25rem 0;
  color: #cccccc;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #2d2d2d;
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  border: 1px solid #404040;
  min-width: 400px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #e0e0e0;
}

.modal-body {
  margin-bottom: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #404040;
}

/* Save Players Modal Styles */
.save-players-preview {
  margin-bottom: 1.5rem;
}

.save-players-preview h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #e0e0e0;
}

.players-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  border: 1px solid #404040;
  border-radius: 3px;
  padding: 0.5rem;
  background: #1e1e1e;
}

.player-preview-item {
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: #252526;
  border-radius: 3px;
  border: 1px solid #404040;
}

.player-preview-item:last-child {
  margin-bottom: 0;
}

.player-info {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.player-info strong {
  color: #9147ff;
  min-width: 60px;
}

.player-info span {
  color: #e0e0e0;
}

.player-info .steam-id {
  color: #999;
  font-size: 0.9rem;
  font-family: 'Consolas', 'Monaco', monospace;
}

.team-assignment {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.team-group {
  flex: 1;
}

.team-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #cccccc;
  font-size: 0.9rem;
}

.team-group select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #404040;
  border-radius: 3px;
  background: #1e1e1e;
  color: #e0e0e0;
  font-size: 14px;
}

.save-players-status {
  padding: 0.75rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.save-players-status.info {
  background: #1e3a5f;
  color: #b3d9ff;
}

.save-players-status.success {
  background: #1e5f3a;
  color: #b3ffd9;
}

.save-players-status.error {
  background: #5f1e1e;
  color: #ffb3b3;
}

.replay-info {
  padding: 0.5rem;
  background: #1e1e1e;
  border: 1px solid #404040;
  border-radius: 3px;
  color: #cccccc;
  font-size: 0.9rem;
  min-height: 2rem;
}

/* Channel Management Styles */
.channel-management {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #252526;
  border-radius: 4px;
  border: 1px solid #404040;
}

.channel-management h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #e0e0e0;
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.channel-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: #1e1e1e;
  border-radius: 4px;
  border: 1px solid #404040;
}

.channel-name {
  font-weight: 600;
  color: #e0e0e0;
  min-width: 100px;
}

.channel-state {
  flex: 1;
}

.state-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.state-badge.state-no_data {
  background: #3d3d3d;
  color: #cccccc;
}

.state-badge.state-live {
  background: #2d5a2d;
  color: #90ee90;
}

.state-badge.state-game_ended {
  background: #5a4d2d;
  color: #ffd700;
}

.channel-actions {
  display: flex;
  gap: 0.5rem;
}

/* Bracket Editor Styles */
.bracket-editor {
  background: #2d2d2d;
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 1px solid #404040;
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #404040;
}

.editor-header .header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.editor-header .header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.editor-header h2 {
  margin: 0;
  color: #e0e0e0;
}

.stage-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stage-selector label {
  color: #e0e0e0;
  font-size: 0.9rem;
}

.stage-selector select {
  padding: 0.5rem 1rem;
  border: 1px solid #404040;
  border-radius: 3px;
  background: #1e1e1e;
  color: #e0e0e0;
  font-size: 0.9rem;
  cursor: pointer;
}

.stage-selector select:hover {
  border-color: #9147ff;
}

.stage-selector select:focus {
  outline: none;
  border-color: #9147ff;
  box-shadow: 0 0 0 2px rgba(145, 71, 255, 0.2);
}

.btn-primary {
  background: #9147ff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background: #772ce8;
}

.status-message {
  padding: 0.5rem 1rem;
  border-radius: 3px;
  font-size: 0.9rem;
  margin-left: 1rem;
  min-width: 200px;
}

.status-message.info {
  background: #3d3d3d;
  color: #e0e0e0;
}

.status-message.success {
  background: #2d5a2d;
  color: #90ee90;
}

.status-message.error {
  background: #5a2d2d;
  color: #ff6b6b;
}

.editor-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  height: calc(100vh - 200px);
  min-height: 600px;
  overflow: auto;
}

.team-pool {
  flex-shrink: 0;
  width: 250px;
  background: #252526;
  border-radius: 4px;
  padding: 1rem;
  border: 1px solid #404040;
}

.team-pool h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #e0e0e0;
  font-size: 1rem;
}

.team-logos {
  display: grid;
  flex-direction: column;
  gap: 8px;
  grid-template: repeat(2, 1fr) / repeat(2, 1fr);
}

.team-logo-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #1e1e1e;
  border: 1px solid #404040;
  border-radius: 3px;
  cursor: move;
  user-select: none;
}

.team-logo-item:hover {
  background: #2d2d2d;
  border-color: #9147ff;
}

.team-logo-item.dragging {
  opacity: 0.5;
}

.team-logo-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.bracket-container {
  flex: 1;
  overflow-x: auto;
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  overflow: auto;
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  position: relative;
}

/* Swiss Bracket - matching overlay.js styles */
.swiss-bracket {
  display: flex;
  gap: 20px;
  min-width: fit-content;
  height: 100%;
  padding: 20px;
}

.bracket-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  width: 210px;
  position: relative;
}

.bracket-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bracket-section-header {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 5px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bracket-section-matches {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bracket-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(20, 20, 20, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 8px;
  /* min-height: 60px; */
  transition: all 0.2s ease;
  position: relative;
}

.bracket-match:hover {
  background: linear-gradient(135deg, rgba(35, 35, 35, 0.95) 0%, rgba(25, 25, 25, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.bracket-match.live {
  border-color: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.bracket-team {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.playoff-match .bracket-team {
  flex-direction: column;
  gap: 4px;
  padding: 4px 9px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px dashed transparent;
  border-radius: 3px;
  /* min-height: 50px; */
}

.bracket-team:hover {
  border-color: #9147ff;
  background: rgba(145, 71, 255, 0.1);
}

.bracket-team-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.bracket-winner-checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bracket-winner-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #9147ff;
  flex-shrink: 0;
}

.bracket-winner-checkbox:hover {
  opacity: 0.8;
}

.bracket-team.drag-over {
  border-color: #9147ff;
  background: rgba(145, 71, 255, 0.2);
  border-style: solid;
}

.bracket-team-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0.95);
  transition: filter 0.2s ease;
}

.bracket-match:hover .bracket-team-logo {
  filter: brightness(1.1);
}

.bracket-team-placeholder {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.bracket-match-vs-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 0 16px;
}

.bracket-match-vs {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bracket-live-toggle {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.bracket-live-toggle:hover {
  transform: scale(1.1);
}

.bracket-live-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.bracket-live-indicator.active {
  background: #ef4444;
  border-color: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
  animation: pulse-live-indicator 2s ease-in-out infinite;
}

@keyframes pulse-live-indicator {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
  }
}

/* Results Boxes - matching overlay.js styles */
.bracket-results-box {
  border-radius: 6px;
  padding: 15px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bracket-results-box.qualifier {
  background: linear-gradient(135deg, rgba(20, 30, 20, 0.8) 0%, rgba(15, 25, 15, 0.8) 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.bracket-results-box.eliminated {
  background: linear-gradient(135deg, rgba(30, 20, 20, 0.8) 0%, rgba(25, 15, 15, 0.8) 100%);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.bracket-results-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.bracket-results-box.qualifier .bracket-results-label {
  color: rgba(74, 222, 128, 0.7);
}

.bracket-results-box.eliminated .bracket-results-label {
  color: rgba(239, 68, 68, 0.7);
}

.bracket-results-record {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bracket-results-teams {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
  justify-content: center;
  align-items: flex-start;
  align-content: flex-start;
  padding: 5px 0;
}

.bracket-results-team {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-width: 56px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.bracket-results-team:hover {
  border-color: #9147ff;
  background: rgba(145, 71, 255, 0.1);
}

.bracket-results-team.drag-over {
  border-color: #9147ff;
  background: rgba(145, 71, 255, 0.2);
  border-style: solid;
}

.bracket-results-team.bracket-team-placeholder {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.bracket-results-team .bracket-team-logo {
  width: 36px;
  height: 36px;
  filter: brightness(0.9);
  display: block;
  flex-shrink: 0;
}

/* Connecting lines between columns */
.bracket-column:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.05) 20%, rgba(255, 255, 255, 0.05) 80%, transparent 100%);
  z-index: 1;
}

/* Playoff Bracket Styles */
.playoff-bracket {
  display: flex;
  gap: 40px;
  min-width: fit-content;
  height: 100%;
  padding: 20px;
  justify-content: center;
  align-items: center;
}

.playoff-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  min-width: 220px;
  position: relative;
}

.playoff-round-header {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-family: 'StratumNo2', sans-serif;
}

.playoff-matches {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
}

.playoff-match {
  position: relative;
  justify-content: space-around;
  gap: 8px;
}

/* Playoff Score Styles */
.playoff-score {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-family: 'StratumNo2', sans-serif;
  line-height: 1;
}

.bracket-team .playoff-score {
  margin-top: 2px;
}

.playoff-score-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 0 8px;
}

.playoff-score-btn {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-family: 'StratumNo2', sans-serif;
  line-height: 1;
  padding: 0;
}

.playoff-score-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 1);
}

.playoff-score-btn:active {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0.95);
}

/* Channel State Admin Styles */
.channel-state-admin {
  background: #2d2d2d;
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 1px solid #404040;
}

.channel-state-admin h2 {
  margin-top: 0;
  color: #e0e0e0;
}

.channel-state-admin p {
  color: #b0b0b0;
  margin-bottom: 1.5rem;
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.channel-card {
  background: #252526;
  border: 1px solid #404040;
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.channel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #404040;
}

.channel-name {
  margin: 0;
  color: #e0e0e0;
  font-size: 1.25rem;
}

.state-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.state-badge.state-no_data {
  background: #404040;
  color: #b0b0b0;
}

.state-badge.state-live {
  background: #00d26a;
  color: #000;
}

.state-badge.state-game_ended {
  background: #ff6b6b;
  color: #fff;
}

.channel-content {
  margin-bottom: 1rem;
}

.no-scoreboard,
.no-players,
.no-channels,
.loading {
  padding: 1rem;
  text-align: center;
  color: #b0b0b0;
  background: #1e1e1e;
  border-radius: 3px;
  border: 1px dashed #404040;
}

.error {
  padding: 1rem;
  text-align: center;
  color: #ff6b6b;
  background: #2d1e1e;
  border-radius: 3px;
  border: 1px solid #ff6b6b;
}

.scoreboard-header {
  margin-bottom: 1rem;
}

.team-scores {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #1e1e1e;
  border-radius: 3px;
  border: 1px solid #404040;
}

.team-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.team-label {
  font-size: 0.875rem;
  color: #b0b0b0;
  text-transform: uppercase;
  font-weight: 600;
}

.ct-score .team-label {
  color: #5d9eff;
}

.t-score .team-label {
  color: #ff6b6b;
}

.score-value {
  font-size: 2rem;
  font-weight: 700;
  color: #e0e0e0;
}

.round-info {
  font-size: 1rem;
  color: #b0b0b0;
  font-weight: 600;
}

.scoreboard-table-wrapper {
  overflow-x: auto;
  border: 1px solid #404040;
  border-radius: 3px;
  background: #1e1e1e;
}

.scoreboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.scoreboard-table thead {
  background: #252526;
  border-bottom: 2px solid #404040;
}

.scoreboard-table th {
  padding: 0.75rem 0.5rem;
  text-align: left;
  color: #b0b0b0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.scoreboard-table tbody tr {
  border-bottom: 1px solid #2d2d2d;
}

.scoreboard-table tbody tr:hover {
  background: #252526;
}

.scoreboard-table tbody tr.ct-row {
  background: rgba(93, 158, 255, 0.05);
}

.scoreboard-table tbody tr.t-row {
  background: rgba(255, 107, 107, 0.05);
}

.scoreboard-table tbody tr.team-separator {
  height: 4px;
  background: #1e1e1e;
  border: none;
}

.scoreboard-table tbody tr.team-separator:hover {
  background: #1e1e1e;
}

.scoreboard-table td {
  padding: 0.5rem;
  color: #e0e0e0;
}

.scoreboard-table .player-name {
  font-weight: 600;
  color: #e0e0e0;
}

.scoreboard-table .stat-value {
  text-align: center;
  color: #b0b0b0;
}

.scoreboard-table .stat-total-damage {
  font-weight: 700;
  color: #ffd700;
}

.channel-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #404040;
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #9147ff;
  color: #fff;
}

.btn-primary:hover {
  background: #772ce8;
}

.btn-secondary {
  background: #404040;
  color: #e0e0e0;
}

.btn-secondary:hover {
  background: #505050;
}

/* Stats Editor Modal Styles */
.stats-editor-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.stats-editor-content {
  background: #2d2d2d;
  border-radius: 4px;
  border: 1px solid #404040;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stats-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #404040;
  background: #252526;
}

.stats-editor-header h3 {
  margin: 0;
  color: #e0e0e0;
  font-size: 1.25rem;
}

.stats-editor-header .close-btn {
  background: none;
  border: none;
  color: #b0b0b0;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  transition: all 0.2s;
}

.stats-editor-header .close-btn:hover {
  background: #404040;
  color: #e0e0e0;
}

.stats-editor-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.stats-editor-note {
  color: #b0b0b0;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #1e1e1e;
  border-radius: 3px;
  border-left: 3px solid #9147ff;
}

.stats-editor-table-wrapper {
  overflow-x: auto;
  border: 1px solid #404040;
  border-radius: 3px;
  background: #1e1e1e;
}

.stats-editor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.stats-editor-table thead {
  background: #252526;
  border-bottom: 2px solid #404040;
}

.stats-editor-table th {
  padding: 0.75rem 0.5rem;
  text-align: left;
  color: #b0b0b0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.stats-editor-table tbody tr {
  border-bottom: 1px solid #2d2d2d;
}

.stats-editor-table tbody tr:hover {
  background: #252526;
}

.stats-editor-table td {
  padding: 0.75rem 0.5rem;
  color: #e0e0e0;
}

.stats-editor-table .player-name {
  font-weight: 600;
  color: #e0e0e0;
}

.stats-editor-table .stat-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #404040;
  border-radius: 3px;
  background: #1e1e1e;
  color: #e0e0e0;
  font-size: 0.875rem;
  text-align: center;
  box-sizing: border-box;
  transition: all 0.2s;
}

.stats-editor-table .stat-input:focus {
  outline: none;
  border-color: #9147ff;
  background: #252526;
}

.stats-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.5rem;
  border-top: 1px solid #404040;
  background: #252526;
}

.stats-editor-footer .cancel-btn {
  background: #404040;
  color: #e0e0e0;
}

.stats-editor-footer .cancel-btn:hover {
  background: #505050;
}

.stats-editor-footer .save-stats-btn {
  background: #9147ff;
  color: #fff;
}

.stats-editor-footer .save-stats-btn:hover {
  background: #772ce8;
}

/* Schedule Editor Styles */
.schedule-editor {
  background: #2d2d2d;
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 1px solid #404040;
}

.schedule-editor .editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #404040;
}

.schedule-editor .editor-header h2 {
  margin: 0;
  color: #e0e0e0;
}

.schedule-editor .save-buttons {
  display: flex;
  gap: 0.5rem;
}

.team-logo-pool-container {
  flex-shrink: 0;
  width: 200px;
  padding: 1rem;
  background: #252526;
  border-radius: 4px;
  border: 1px solid #404040;
  position: sticky;
  top: 1rem;
  /* max-height: calc(100vh - 150px); */
  overflow-y: auto;
}

.team-logo-pool-container h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #e0e0e0;
  font-size: 1rem;
  text-transform: uppercase;
  font-family: monospace;
  font-weight: normal;
  font-size: 12px;
}

.team-logo-pool {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-content-wrapper {
  flex: 1;
  min-width: 0;
}

.team-logo-pool .team-logo-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #1e1e1e;
  border: 1px solid #404040;
  border-radius: 3px;
  cursor: move;
  user-select: none;
  transition: all 0.2s;
  width: 100%;
}

.team-logo-pool .team-logo-item span {
  font-size: 0.875rem;
  color: #e0e0e0;
  flex: 1;
}

.team-logo-pool .team-logo-item:hover {
  background: #2d2d2d;
  border-color: #9147ff;
  transform: translateY(-2px);
}

.team-logo-pool .team-logo-item.dragging {
  opacity: 0.5;
}

.team-logo-pool .team-logo-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.schedule-editor-content {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.schedule-tab-navigation {
  margin-bottom: 1rem;
  border-bottom: 1px solid #404040;
}

.schedule-tab-button {
  background: transparent;
  color: #e0e0e0;
  border: 1px solid #404040;
  border-bottom: none;
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
}

.schedule-tab-button:hover {
  background: #3d3d3d;
}

.schedule-tab-button.active {
  background: #2d2d2d;
  border-bottom: 1px solid #2d2d2d;
  margin-bottom: -1px;
  border-top: 2px solid #9147ff;
}

.schedule-tab-panes {
  margin-top: 1rem;
}

.schedule-tab-pane {
  display: none;
}

.schedule-tab-pane.active {
  display: block;
}

.date-section {
  margin-bottom: 2rem;
  padding: 1rem;
  background: #252526;
  border-radius: 4px;
  border: 1px solid #404040;
  transition: all 0.2s;
}

.date-header {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #404040;
}

.matches-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}


.matches-scroll-wrapper {
  overflow-x: auto;
  overflow-y: visible;
}

.match-row {
  display: flex;
  /* grid-template-columns: 70px 120px 100px 120px 180px 60px 180px 80px 100px 80px 80px 100px; */
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem;
  background: #1e1e1e;
  border: 1px solid #404040;
  border-radius: 3px;
  transition: all 0.2s;
  min-width: fit-content;
}

.match-row:hover {
  background: #252526;
  border-color: #9147ff;
}

.reorder-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
}

.reorder-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  min-width: 30px;
  width: 30px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reorder-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.reorder-btn:not(:disabled):hover {
  background: #505050;
}

.match-field {
  display: flex;
  align-items: center;
}

.match-field input,
.match-field select {
  width: 100%;
  padding: 0.4rem;
  border: 1px solid #404040;
  border-radius: 3px;
  background: #1e1e1e;
  color: #e0e0e0;
  font-size: 0.875rem;
}

.match-field input:focus,
.match-field select:focus {
  outline: none;
  border-color: #9147ff;
}

.team-slot {
  min-height: 50px;
  padding: 0.25rem;
  border-radius: 3px;
  transition: all 0.2s;
  position: relative;
}

.team-slot.drag-over {
  border: 2px solid #9147ff;
  background: rgba(145, 71, 255, 0.2);
}

.team-slot-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem;
  min-height: 40px;
  border-radius: 3px;
  transition: all 0.2s;
  min-width: 160px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.custom-team-dropdown {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.team-slot-content:hover .custom-team-dropdown {
  opacity: 1;
  pointer-events: auto;
}

.custom-dropdown-button {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(145, 71, 255, 0.2);
  border-left: 1px solid #9147ff;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  font-size: 0.75rem;
  color: #9147ff;
  transition: all 0.2s;
}

.custom-dropdown-button:hover {
  background: rgba(145, 71, 255, 0.3);
}

.custom-dropdown-menu {
  position: fixed;
  width: auto;
  min-width: 320px;
  background: #1e1e1e;
  border: 1px solid #404040;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  padding: 0.5rem;
  z-index: 10000;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.custom-dropdown-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  border-radius: 3px;
  min-height: 70px;
  position: relative;
}

.custom-dropdown-option:hover {
  background: rgba(145, 71, 255, 0.1);
  border-color: #9147ff;
}

.custom-dropdown-option.selected {
  background: rgba(145, 71, 255, 0.2);
  border-color: #9147ff;
}

.team-option-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  margin-bottom: 0.25rem;
}

.team-option-text {
  font-size: 0.75rem;
  color: #e0e0e0;
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
  max-width: 100%;
}

.team-slot-content span {
  font-size: 0.875rem;
  color: #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.team-slot-content:hover {
  background: rgba(145, 71, 255, 0.1);
}

.team-slot-content.drag-over {
  border: 2px dashed #9147ff;
  background: rgba(145, 71, 255, 0.2);
}

.team-logo-small {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}


.team-placeholder {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  color: #858585;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.vs-cell {
  text-align: center;
  color: #858585;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.add-match-btn {
  margin-top: 0.5rem;
  width: 100%;
}

.delete-match-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  background: #5a2d2d;
  color: #ff6b6b;
}

.delete-match-btn:hover {
  background: #6a3d3d;
} 

.schedule-editor .team-logo-pool .team-logo-item img {
	width: 20px;
	height: 20px;
}

.schedule-editor .team-logo-pool .team-logo-item {
	padding: 5px;
}

/* Players and Teams Editor Styles */
.players-editor, .teams-editor {
  background: #2d2d2d;
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 1px solid #404040;
}

.players-editor .editor-header,
.teams-editor .editor-header {
  margin-bottom: 2rem;
}

.players-editor h2,
.teams-editor h2 {
  margin: 0 0 1rem 0;
  color: #e0e0e0;
}

.players-editor h3,
.teams-editor h3 {
  margin: 0 0 1rem 0;
  color: #cccccc;
  font-size: 1.1rem;
}

.players-list-section,
.teams-list-section {
  margin-bottom: 2rem;
}

.player-form-section,
.team-form-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #404040;
}

.table-container {
  overflow-x: auto;
  margin-bottom: 1rem;
}

#players-table,
#teams-table {
  width: 100%;
  border-collapse: collapse;
  background: #1e1e1e;
  border: 1px solid #404040;
}

#players-table thead,
#teams-table thead {
  background: #252526;
}

#players-table th,
#teams-table th {
  padding: 0.75rem;
  text-align: left;
  color: #e0e0e0;
  font-weight: 600;
  border-bottom: 2px solid #404040;
}

#players-table td,
#teams-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #404040;
  color: #cccccc;
}

#players-table tbody tr:hover,
#teams-table tbody tr:hover {
  background: #252526;
}

#players-table tbody tr:last-child td,
#teams-table tbody tr:last-child td {
  border-bottom: none;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #cccccc;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #404040;
  border-radius: 3px;
  background: #1e1e1e;
  color: #e0e0e0;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
  outline: none;
  border-color: #9147ff;
}

.form-buttons {
  margin-top: 1.5rem;
}

.form-buttons .btn {
  margin-right: 0.5rem;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
}

.btn-danger {
  background: #5a2d2d;
  color: #ff6b6b;
  border: 1px solid #6a3d3d;
}

.btn-danger:hover {
  background: #6a3d3d;
  border-color: #7a4d4d;
}

/* Crosshair Generator Styles */
.crosshair-generator {
  background: #2d2d2d;
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 1px solid #404040;
}

.generator-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.decode-section,
.preview-section,
.controls-section,
.export-section {
  background: #252526;
  border-radius: 4px;
  padding: 1.5rem;
  border: 1px solid #404040;
}

.decode-section h3,
.preview-section h3,
.controls-section h3,
.export-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #e0e0e0;
  font-size: 1.1rem;
}

.canvas-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #1e1e1e;
  border-radius: 4px;
  padding: 2rem;
  border: 1px solid #404040;
}

#crosshair-canvas {
  background: #0a0a0a;
  border: 1px solid #404040;
  border-radius: 4px;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.controls-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.control-group label {
  color: #e0e0e0;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #404040;
  color: #cccccc;
  font-size: 0.75rem;
  cursor: help;
  font-weight: normal;
}

/* Button Groups */
.button-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.style-btn,
.color-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #404040;
  border-radius: 3px;
  background: #1e1e1e;
  color: #e0e0e0;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 120px;
}

.style-btn:hover,
.color-btn:hover {
  background: #2d2d2d;
  border-color: #9147ff;
}

.style-btn.active {
  background: #ff6b00;
  border-color: #ff6b00;
  color: #ffffff;
  font-weight: 600;
}

.color-btn.active {
  border: 2px solid #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Slider Groups */
.slider-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-group input[type="range"] {
  flex: 1;
  height: 6px;
  background: #1e1e1e;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #9147ff;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #ffffff;
}

.slider-group input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #9147ff;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #ffffff;
}

.slider-group input[type="number"] {
  width: 80px;
  padding: 0.5rem;
  border: 1px solid #404040;
  border-radius: 3px;
  background: #1e1e1e;
  color: #e0e0e0;
  font-size: 0.9rem;
  text-align: center;
  box-sizing: border-box;
}

.slider-group input[type="number"]:focus {
  outline: none;
  border-color: #9147ff;
}

.alpha-preview,
.outline-preview {
  width: 24px;
  height: 24px;
  background: #404040;
  border: 1px solid #606060;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Toggle Switches */
.toggle-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.toggle-control {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toggle-control label {
  color: #e0e0e0;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-switch {
  display: flex;
  gap: 0;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #404040;
}

.toggle-btn {
  flex: 1;
  padding: 0.5rem 1rem;
  border: none;
  background: #1e1e1e;
  color: #cccccc;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  border-right: 1px solid #404040;
}

.toggle-btn:last-child {
  border-right: none;
}

.toggle-btn:hover {
  background: #2d2d2d;
}

.toggle-btn.active {
  font-weight: 600;
}

.toggle-btn[data-value="true"].active {
  background: #2d5a2d;
  color: #4cff4c;
}

.toggle-btn[data-value="false"].active {
  background: #5a2d2d;
  color: #ff6b6b;
}

/* RGB Inputs */
.rgb-inputs {
  display: flex;
  gap: 0.5rem;
}

.rgb-inputs input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #404040;
  border-radius: 3px;
  background: #1e1e1e;
  color: #e0e0e0;
  font-size: 0.9rem;
  text-align: center;
  box-sizing: border-box;
}

.rgb-inputs input:focus {
  outline: none;
  border-color: #9147ff;
}

.export-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.export-output {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.export-output textarea {
  width: 100%;
  min-height: 100px;
  padding: 0.75rem;
  border: 1px solid #404040;
  border-radius: 3px;
  background: #1e1e1e;
  color: #e0e0e0;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.85rem;
  resize: vertical;
  box-sizing: border-box;
}

.export-output textarea:focus {
  outline: none;
  border-color: #9147ff;
}

.status-message {
  padding: 0.5rem 1rem;
  border-radius: 3px;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

@media (max-width: 1200px) {
  .generator-content {
    grid-template-columns: 1fr;
  }
  
  .toggle-group {
    grid-template-columns: 1fr;
  }
}