
/* ------------------------- */
/*  Font Awesome integration */
/* ------------------------- */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

/* ------------------------- */
/*  In-Game Menu Base Styles */
/* ------------------------- */

/* MOBILE */
@media only screen and (max-width: 896px) {
	/* HOME */
.ingameMenu {
  
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(34, 34, 34, 0.9);
    width: 500px;
    height: 300px;
    border-radius: 8px;
    display: flex;
    transition: transform 0.3s ease-in-out;
}
.menu-sidebar {
    width: 120px;
    background: rgba(20, 20, 20, 0.95);
    display: flex;
    flex-direction: column;
    padding: 12px;
    box-sizing: border-box;
    flex-shrink: 0;
    height: 100%;
    border-right: 1px solid rgba(51, 51, 51, 0.9); /* 0.4 = 40% krycia */
}

}
.ingameMenu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  width: 640px;
  height: 400px;
  background: rgba(25, 25, 25, 0.95);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  overflow: hidden;
  z-index: 9999;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* --- Menu hidden by default --- */
/* --- Menu hidden by default --- */
.ingameMenu.initial-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.9);
}

/* --- Menu visible after init --- */
.ingameMenu.visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
/* ------------------------- */
/*  Sidebar                 */
/* ------------------------- */
.menu-sidebar {
  width: 180px;
  background: linear-gradient(180deg, #181818 0%, #121212 100%);
  display: flex;
  flex-direction: column;
  padding: 10px;
  box-sizing: border-box;
  border-right: 1px solid rgba(70, 70, 70, 0.5);
}

.menu-sidebar button {
  background: transparent;
  border: none;
  color: #ddd;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.menu-sidebar button i {
  color: #0d85ff;
  width: 20px;
  text-align: center;
}

.menu-sidebar button:hover {
  background: rgba(50, 50, 50, 0.9);
  transform: scale(1.04);
}

.menu-sidebar button.active {
  background: linear-gradient(145deg, #0d85ff, #0a5ed1);
  color: white;
  font-weight: 600;
  transform: scale(1.05);
}

.menu-sidebar button.active i {
  color: white;
}

/* ------------------------- */
/*  Content Area             */
/* ------------------------- */
.menu-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
  overflow-y: auto;
  color: #eee;
  font-family: "Segoe UI", sans-serif;
}

.menu-content h2 {
  font-size: 18px;
  font-weight: 600;
  color: #0d85ff;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

/* ------------------------- */
/*  Switch Container          */
/* ------------------------- */
.switch-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(40, 40, 40, 0.9);
  border-radius: 10px;
  padding: 10px 15px;
  width: 100%;
  margin: 6px 0;
  box-sizing: border-box;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease, transform 0.2s ease;
}

.switch-container:hover {
  background: rgba(55, 55, 55, 0.9);
  transform: translateY(-1px);
}

.switch-container label {
  flex-grow: 1;
  font-size: 14px;
  color: #eee;
  margin-right: 12px;
}

/* Custom checkbox (toggle switch) */
.switch-container input[type="checkbox"] {
  appearance: none;
  width: 44px;
  height: 24px;
  background: #555;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.4);
}

.switch-container input[type="checkbox"]::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.3s ease;
}

.switch-container input[type="checkbox"]:checked {
  background: linear-gradient(145deg, #0d85ff, #0a74da);
}

.switch-container input[type="checkbox"]:checked::before {
  transform: translateX(20px);
}

/* ------------------------- */
/*  Slider (range input)     */
/* ------------------------- */
.slider-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(40, 40, 40, 0.9);
  border-radius: 10px;
  padding: 10px 15px;
  width: 100%;
  margin: 6px 0;
  box-sizing: border-box;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.slider-container label {
  flex-grow: 1;
  font-size: 14px;
  color: #eee;
  margin-right: 12px;
}

.slider-container input[type="range"] {
  width: 120px;
  height: 4px;
  background: #444;
  border-radius: 2px;
  cursor: pointer;
  outline: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: #0d85ff;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease;
}

.slider-container input[type="range"]:hover::-webkit-slider-thumb {
  background: #2196f3;
}

/* ------------------------- */
/*  Number / Color Inputs    */
/* ------------------------- */
.switch-container input[type="number"],
.switch-container input[type="text"],
.switch-container input[type="color"] {
  background: #222;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 5px 8px;
  color: #fff;
  font-size: 14px;
  outline: none;
  width: 70px;
  transition: border-color 0.25s ease;
}

.switch-container input[type="color"] {
  width: 50px;
  height: 26px;
  padding: 0;
  border: none;
  cursor: pointer;
}

.switch-container input[type="number"]:focus,
.switch-container input[type="text"]:focus {
  border-color: #0d85ff;
}

/* ------------------------- */
/*  Pages and Layout         */
/* ------------------------- */
.page {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.page.active {
  display: flex;
}

/* ------------------------- */
/*  Scrollbars               */
/* ------------------------- */
.menu-content::-webkit-scrollbar,
.page::-webkit-scrollbar {
  width: 8px;
}

.menu-content::-webkit-scrollbar-thumb,
.page::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 10px;
}

.menu-content::-webkit-scrollbar-track,
.page::-webkit-scrollbar-track {
  background: rgba(34, 34, 34, 0.6);
  border-radius: 10px;
}

/* Firefox scrollbar */
.page {
  scrollbar-width: thin;
  scrollbar-color: #444 rgba(34, 34, 34, 0.6);
}

/* ------------------------- */
/*  Reset Settings Button    */
/* ------------------------- */
.page#clear\ settings button {
  background: linear-gradient(145deg, #ff4545, #d62e2e);
  border: none;
  color: white;
  padding: 10px 15px;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.25s ease, transform 0.2s ease;
}

.page#clear\ settings button:hover {
  background: linear-gradient(145deg, #ff6161, #e53935);
  transform: scale(1.05);
}
@media only screen and (max-width: 896px) {
  .ingameMenu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    background: rgba(34, 34, 34, 0.95);
    width: 99%;       /* +10% szerokości względem poprzednich 90% */
    max-width: 360px; /* nadal ograniczamy maksymalną szerokość */
    max-height: 90vh; /* menu nie wychodzi poza ekran */
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
  }

  .menu-sidebar {
    width: 88px; /* też trochę szerszy (+10%) */
    padding: 8px;
    border-right: 1px solid rgba(51, 51, 51, 0.8);
    display: flex;
    flex-direction: column;
  }

  .menu-sidebar button {
    padding: 6px 8px;
    font-size: 13px;
    gap: 6px;
  }

  .menu-content {
    flex-grow: 1;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .menu-content h2 {
    font-size: 16px;
  }

  .switch-container,
  .slider-container {
    padding: 8px 10px;
  }

  .switch-container label,
  .slider-container label {
    font-size: 13px;
  }

  .slider-container input[type="range"] {
    width: 100px;
  }

  .switch-container input[type="checkbox"] {
    width: 36px;
    height: 20px;
  }

  .switch-container input[type="checkbox"]::before {
    width: 16px;
    height: 16px;
    top: 2px;
    left: 2px;
  }

  .switch-container input[type="checkbox"]:checked::before {
    transform: translateX(16px);
  }

  .switch-container input[type="number"],
  .switch-container input[type="text"] {
    width: 60px;
    font-size: 13px;
  }

  .switch-container input[type="color"] {
    width: 40px;
    height: 22px;
  }

  .page#clear\ settings button {
    font-size: 14px;
    padding: 8px 12px;
  }
}
