:root {
  --primary: #8cb365;
  --accent: #e2b740;
  --bg: #1e1d1b;
  --grey: #6b7280;
  --border: #484c53;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: "Inter", sans-serif;
  color: var(--primary);
  display: flex;
  justify-content: center;
  user-select: none;
}

.container {
  display: flex;
  height: 100vh;
  flex-direction: column;
  align-items: center;
  max-width: 100vw;
  overflow-x: hidden;
}

.sidebar {
  width: 200px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 20px 0;
  transition: transform 0.2s;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1000;
  transform: translateX(0);
  display: flex;
  flex-direction: column;
  padding: 24px 0 0 12px;
  border-top-right-radius: 20px;
  min-height: 100vh;
}
.sidebar.collapsed {
  visibility: hidden;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 60px;
  align-items: center;
}
.sidebar a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  padding: 10px 10px;
  width: 70%;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: ease 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 0 var(--border);
}
.sidebar a.bottom-profile{
  position: absolute;
  bottom: 30px;
  transform: translateY(-50%);
}
.sidebar a.bottom-manager{
  position: absolute;
  bottom: 90px;
  transform: translateY(-50%);
}
.sidebar a.bottom-premium{
  position: absolute;
  bottom: 150px;
  transform: translateY(-50%);
  border: 1px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(226, 183, 64, 0.6), 0 0 16px rgba(226, 183, 64, 0.35), inset 0 0 4px rgba(226, 183, 64, 0.2);
  transition: ease 0.3s, box-shadow 0.25s ease, border-color 0.25s ease;
}
.sidebar a:hover {
  background: var(--grey);
  color: var(--accent);
  box-shadow: none;
  transform: translateY(4px);
}
.sidebar a.bottom-profile:hover {
  transform: translateY(calc(-50% + 4px));
}
.sidebar a.bottom-manager:hover {
  transform: translateY(calc(-50% + 4px));
}
.sidebar a.bottom-premium:hover {
  transform: translateY(-50%);
}
.sidebar a.bottom-premium:hover {
  border: 1px solid var(--primary);
  box-shadow: 0 0 6px rgba(162, 206, 117, 0.75), 0 0 16px rgba(140, 179, 101, 0.4), inset 0 0 4px rgba(140, 179, 101, 0.25);
}
.sidebar a.active{
  border: 2px solid var(--border);
  box-shadow: none;
  color: var(--accent);
  transform: translateY(4px);
}
.sidebar a.active:hover{
  background: var(--bg);
  transform: translateY(4px);
  cursor: default;
}
.sidebar a.active.bottom-profile:hover {
  transform: translateY(calc(-50% + 4px));
}
.sidebar a.active.bottom-manager:hover {
  transform: translateY(calc(-50% + 4px));
}
.sidebar a.active.bottom-premium:hover {
  border: 1px solid var(--accent);
  box-shadow: 0 0 6px rgba(226, 183, 64, 0.6), 0 0 16px rgba(226, 183, 64, 0.35), inset 0 0 4px rgba(226, 183, 64, 0.2);
}
.sidebar a.active.bottom-profile {
  transform: translateY(calc(-50% + 4px));
}
.sidebar a.active.bottom-manager {
  transform: translateY(calc(-50% + 4px));
}
.sidebar a.active.bottom-premium {
  transform: translateY(-50%);
  border: 1px solid var(--primary);
  box-shadow: 0 0 6px rgba(162, 206, 117, 0.75), 0 0 16px rgba(140, 179, 101, 0.4), inset 0 0 4px rgba(140, 179, 101, 0.25);
  transition: ease 0.3s, box-shadow 0.25s ease, border-color 0.25s ease;
}
.burger {
  position: absolute;
  top: 25px;
  right: 10%;
  width: 30px;
  height: 30px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 2px 0 var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: ease 0.3s;
  color: var(--border);
}
#home-menu{
  left: 15%;
  color: var(--primary);
}
.burger:hover {
  color: var(--grey);
  box-shadow: none;
  transform: translateY(2px);
}
.burger.collapsed {
  visibility: visible;
  left: 15px;
}

.main {
  margin-top: 3vh;
  position: relative;
  width: 100vw;
  display: flex;
  justify-content: center;
  height: 450px;
  transition: .5s ease;
}
.main.collapsed {
  height: 50px;
  margin-bottom: 3vh;
}

.title {
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 15px;
}

.entry-area {
  display: flex;
  gap: 40px;
}

.user-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8faff;
  padding: 15px 20px;
  min-width: 20vw;
  box-sizing: border-box;
  box-shadow: 0 2px 12px rgba(17, 153, 250, 0.05);
  margin-bottom: 24px;
  height: 220px;
}
.user-box.collapsed {
  height: 50px;
  padding-top: 4px;
  display: flex;
}
.user-box form {
  display: flex;
  flex-direction: column;
}


.input{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .5vw;
  width: 100%;
  position: relative;
}
#input-group-chesscom.collapsed{
  pointer-events: none;
}
.input-container{
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.input-label{
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
  height: 100%;
}

.input-label img{
  height: 30px;
  pointer-events: none;
}

.input-group {
  right: 0;
}

.input-group label {
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}
.input-group input {
  width: 90%;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 1em;
  background: var(--bg);
  margin-bottom: 4px;
}
.input-group select {
  width: 100%;
  padding: 9px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.input-button{
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px 0px 8px 0px;
}
#input-button.collapsed{
  display: none;
}
#input-button i{
  color: var(--accent);
  background: #fff;
  border-radius: 50%;
  padding: 5px;
}
.button{
  all: unset;
}
#cancel-button{
  background: var(--accent);
  border: none;
  border-radius: 7px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  display: flex;
  align-items: center;
  padding: 10px 0px 10px 16px;
  width: 28px;
  z-index: 10;
  position: absolute;
  top: -10px;
  right: -10px;
}
#cancel-button i{
  color: #fff;
}
.output {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8faff;
  padding: 5px 15px;
  min-width: 20vw;
  box-sizing: border-box;
  box-shadow: 0 2px 12px rgba(17, 153, 250, 0.05);
  margin-bottom: 24px;
  max-width: 40vw;
}
.user-profile{
  display: flex;
  align-items: center;
  flex-direction: column;
}
.user-header img{
  width: 55px;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: 0 2px 12px rgba(17, 153, 250, 0.05);
}
.user-header h2{
  font-size: 18px;
}
.user-header{
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  gap: 20px;
  margin-bottom: 5px;
}
.user-header-name{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}
.title-frame{
  background: #d60734;
  padding: 2px 6px;
  border-radius: 4px;
}
.title-frame span{
  color:#ffffff;
  font-size: 15px;
}
.user-details{
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  gap: 10px;
  margin-bottom: 5px;
}
.adder-btn{
  border-radius: 7px;
  background: #eef4ff;
  color: var(--accent);
  border: 1px solid var(--accent);
  cursor: pointer;
  padding: 5px 10px;
  font-weight: 600;
  transition: background 0.2s, color .2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: fit-content;
}
.adder-btn:hover {
  background: var(--accent);
  color: #fff;
}
.stats-table{
  border-collapse: separate;
  border-spacing: 16px 0;
}
.user-stats{
  border-top: 1px solid var(--border);
}
@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }
  .sidebar {
    position: fixed;
    height: 100vh;
    width: 220px;
  }
  .main, .main.full {
    margin-left: 0;
    padding: 23px 10px 20px 10px;
  }
  .user-box {
    min-width: 240px;
    padding: 15px 7px;
  }
  .entry-area {
    gap: 10px;
    flex-direction: column;
  }
}
