:root {
  --accent: #ff4fa3;
  --accent-soft: rgba(255, 79, 163, 0.18);
  --accent-glow: rgba(255, 79, 163, 0.28);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Tahoma, Verdana, sans-serif;
  background: #080808;
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  padding: 30px;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 24px 24px;
}

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.container {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 1050px;
  background: #111111;
  border: 1px solid #4a4a4a;
  border-radius: 8px;
  padding: 18px;
  min-height: 650px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 25px 80px rgba(0,0,0,0.75);
}

.container::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.015),
      rgba(255,255,255,0.015) 1px,
      transparent 1px,
      transparent 2px
    );
  opacity: 0.25;
  pointer-events: none;
}

h1 {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 2px;
  color: #efefef;
  text-transform: lowercase;
  font-style: italic;
  text-shadow: 0 1px 0 black;
}

.subtitle {
  color: #6f6f6f;
  margin-bottom: 20px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.skeet-layout {
  align-items: stretch;
}

.sidebar {
  width: 210px;
  background: linear-gradient(180deg, #1b1b1b, #111111);
  border: 1px solid #313131;
  border-radius: 4px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

.sidebar-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  flex: 1;
  justify-content: flex-start;
}

.tab {
  width: 100%;
  text-align: left;
  border: 1px solid #343434;
  background: linear-gradient(180deg, #262626, #181818);
  color: #b1b1b1;
  padding: 11px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: 0.15s ease;
  font-weight: 700;
  text-transform: lowercase;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    inset 0 -1px 0 rgba(0,0,0,0.5);
}

/* LEFT BAR INDICATOR */
.tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: 0.15s ease;
}

.tab:hover {
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-soft);
}

.tab.active {
  background: linear-gradient(180deg, #1f1f1f, #141414);
  color: white;
  border: 1px solid var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 12px var(--accent-soft);
}

.tab.active::before {
  opacity: 1;
}

.main-panel {
  flex: 1;
  background: linear-gradient(180deg, #151515, #0d0d0d);
  border: 1px solid #424242;
  border-radius: 4px;
  padding: 14px;
  position: relative;
}

.category-title {
  font-size: 13px;
  color: #929292;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-weight: 700;
}

.group-box {
  position: relative;
  border: 1px solid #444444;
  border-radius: 3px;
  padding: 22px 18px 18px;
  background: linear-gradient(180deg, #1b1b1b, #111111);
  margin-bottom: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 8px 30px rgba(0,0,0,0.35);
}

.group-label {
  position: absolute;
  top: -7px;
  left: 10px;
  background: #111111;
  border: 1px solid #3a3a3a;
  padding: 1px 8px;
  border-radius: 2px;
  font-size: 10px;
  color: #d0d0d0;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.sidebar-footer {
  margin-top: auto;
  color: #5f5f5f;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.panel {
  display: none;
  animation: fade 0.2s ease;
}

.panel.active {
  display: block;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 13px;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* REMOVE NUMBER INPUT ARROWS */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

/* ===== INPUTS (PINK THEME FIXED) ===== */
input,
select {
  width: 100%;
  background: linear-gradient(180deg, #101010, #171717);
  border: 1px solid #4b4b4b;
  color: #ececec;
  padding: 10px;
  border-radius: 2px;
  outline: none;
  font-size: 13px;
  transition: 0.15s ease;
  font-family: Tahoma, Verdana, sans-serif;
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.02);
}

input:hover,
select:hover {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-soft);
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-soft);
}

/* BUTTON */
button.convert {
  width: 100%;
  border: 1px solid #343434;
  background: linear-gradient(180deg, #262626, #181818);
  color: #b1b1b1;

  padding: 11px;
  border-radius: 3px;

  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: 0.15s ease;
  margin-top: 10px;
  text-transform: lowercase;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    inset 0 -1px 0 rgba(0,0,0,0.5);
}

button.convert:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-soft);
}

/* RESULT */
.result {
  margin-top: 15px;
  background: linear-gradient(180deg, #151515, #101010);
  border: 1px solid #444444;
  border-radius: 3px;
  padding: 18px;
  position: relative;
}

.result h2 {
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.big {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #f3f3f3;
  text-shadow: 0 0 10px rgba(255, 79, 163, 0.08);
  font-style: italic;
}

.footer {
  margin-top: 25px;
  color: #555;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 900px) {
  .skeet-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }
}

.big {
  cursor: pointer;
  transition: 0.15s ease;
}

/* hover glow to hint it's clickable */
.big:hover {
  text-shadow:
    0 0 10px rgba(255, 79, 163, 0.25),
    0 0 25px rgba(255, 79, 163, 0.15);
  transform: translateY(-1px);
}

.big:active {
  transform: translateY(0px) scale(0.99);
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid var(--accent);
  color: white;
  padding: 10px 14px;
  font-size: 12px;
  text-transform: lowercase;
  letter-spacing: 1px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  box-shadow: 0 0 20px var(--accent-soft);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#profileList button {
  background: #222;
  border: 1px solid #444;
  color: white;
  padding: 5px 8px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 11px;
}

#profileList button:hover {
  border-color: var(--accent);
}

#profileList {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;

  /* THIS is the key fix */
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.profile-item {
  padding: 10px;
  border: 1px solid #444;
  background: #151515;

  display: flex;
  justify-content: space-between;
  align-items: center;

  border-radius: 3px;

  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#profileList {
  max-height: 260px;   /* adjust as you like */
  overflow-y: auto;
  padding-right: 6px;   /* prevents scrollbar overlap */
}

.hotkeys {
  position: fixed;
  bottom: 20px;
  right: 20px;

  background: rgba(17, 17, 17, 0.9);
  border: 1px solid #3a3a3a;
  border-radius: 4px;

  padding: 8px 10px;

  font-size: 11px;
  color: #aaa;

  cursor: default;

  transition: 0.2s ease;
  overflow: hidden;

  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.hotkeys-title {
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 1px;
  color: #bbb;
}

.hotkeys-panel {
  max-height: 0;
  opacity: 0;

  overflow: hidden;
  margin-top: 0;

  display: flex;
  flex-direction: column;
  gap: 6px;

  transition: 0.2s ease;
  color: #888;
}

.hotkeys:hover {
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-soft);
}

.hotkeys:hover .hotkeys-panel {
  max-height: 200px;
  opacity: 1;
  margin-top: 8px;
}