/* Grundstil (Dark) */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #1e1f24;
  color: #e2e3e5;
}

/* Hauptlayout */
.layout {
  display: flex;
  height: 100vh;
}

/* Hauptbereich neben Sidebar */
.main-content {
  margin-left: 300px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar */
.navbar {
  background-color: #2a2d34 !important;
  color: #e2e3e5;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  height: 74px;
  z-index: 999;
}

/* Hauptinhalt */
.content {
  flex: 1;
  background-color: #3f4046;
  overflow-y: auto;
  padding: 1rem;;
}

/* Avatar */
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* Avatar-Galerie für Profilseite */
.avatar-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.avatar-option {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
  border: 2px solid transparent;
}

.avatar-option:hover {
  transform: scale(1.05);
  border-color: #6c757d;
}

.avatar-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.avatar-option img {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-option.selected {
  border: 3px solid #0dcaf0;
}

/* ==== Sidebar layout ==== */
.game-wrapper {
  display: flex;
  height: 100vh;
}

.game-sidebar {
  width: 300px;
  background-color: #20232a;
  color: #e2e3e5;
  padding: 1rem;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  padding-top: 50px;
}

.sidebar-header {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 2rem;
  text-align: center;
}

.sidebar-header img {
  max-width: 160px;
  height: auto;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-group {
  width: 100%;
}

.sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2d3343;
  padding: 0.5rem 0.8rem;
  cursor: default;
  font-weight: bold;
  color: #e2e3e5;
  border-radius: 4px;
}

.sidebar-icon {
  margin-right: 0.6rem;
  color: #90ee90;
}

.arrow {
  font-size: 0.8rem;
  color: #bbb;
}

.sidebar-links {
  list-style: none;
  padding: 0.5rem 0rem;
  margin: 0;
  background: #181a20;
  border-left: 2px solid #2d3343;
  border-bottom: 1px solid #181a20;
}

.sidebar-links li {
  margin: 0.4rem 0;
}

.sidebar-links a {
  color: #e2e3e5;
  text-decoration: none;
  display: block;
  width: 100%;
  padding: 0.3rem 0.6rem;
  margin: 0 auto;
  border-radius: 3px;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-links a:hover {
  background-color: #2a2d34;
  color: #90ee90;
  text-decoration: none;
}

.sidebar-links a.active {
  background-color: #2a2d34;
  color: #90ee90;
  font-weight: bold;
}

.sidebar-footer {
  padding: 10px;
  font-size: 0.8rem;
  color: #aaa;
  text-align: center;
  padding-bottom: 25px;
}

.sidebar-group.collapsed .sidebar-links {
  max-height: 0;
  overflow: hidden;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: none;
}

.sidebar-group.collapsed .sidebar-links li {
  display: none;
}

.sidebar-links {
  max-height: 500px;
  transition: max-height 0.3s ease;
}

.sidebar-title .arrow {
  transition: transform 0.3s ease;
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.sidebar-group.collapsed .sidebar-title .arrow {
  transform: rotate(45deg);
}

.card {
    background-color: #e7e7e7;
}

.table {
    --bs-table-bg: #d9d9d9;
}

.table-light {
    --bs-table-color: #ffffff;
    --bs-table-bg: #464646;
}

.form-control {

    background-color: #cdcdcd;

}

.list-group-item {
    background-color: #cbcbcb;
}

.dropdown-item:hover {
    background-color: #dddddd;
}


/* Game Content Management Styles */
.content-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    background: #fff;
}

.content-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.content-header {
    background: #424a53;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #fff;
}

.content-header .text-muted {
    color: #cfcfcf !important;
}

.content-header:hover {
    background: #525252;
}

.content-details {
    padding: 20px;
    border-top: 1px solid #dee2e6;
    background: #bdbdbd;
}

.tier-badge {
    font-size: 0.8em;
    padding: 2px 8px;
}

.cost-item, .effect-item {
    background: #f8f9fa;
    padding: 5px 10px;
    margin: 2px 0;
    border-radius: 4px;
    font-size: 0.9em;
    border-left: 3px solid #007bff;
}

.costs-container, .effects-container {
    max-height: 200px;
    overflow-y: auto;
}

.costs-container:empty::after {
    content: "No costs defined";
    color: #6c757d;
    font-style: italic;
}

.effects-container:empty::after {
    content: "No effects defined";
    color: #6c757d;
    font-style: italic;
}

#contentTabs .nav-link {
    color: #495057;
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
}

#contentTabs .nav-link.active {
    color: #007bff;
    border-color: #dee2e6 #dee2e6 #fff;
    border-bottom-color: #007bff;
}

#contentTabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
}

/* Ergänzung für die CSS-Datei */
.cost-item-input, .effect-item-input {
    background: #a7a7a7;
    padding: 8px;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.cost-item-input .form-label, .effect-item-input .form-label {
    margin-bottom: 2px;
    font-weight: 500;
}

.cost-item-input input, .effect-item-input input {
    font-size: 0.875rem;
}

.costs-container, .effects-container {
    max-height: 300px;
    overflow-y: auto;
}