/* General Body and Screen Styles */
body {
  background: #0f0f14;
  color: #eaeaea;
  font-family: Arial, sans-serif;
  text-align: center;
  margin-top: 100px;
}

.screen {
  max-width: 400px;
  margin: auto;
}

.hidden {
  display: none;
}

/* Input and Button Styles */
input {
  width: 80%;
  padding: 10px;
  margin: 10px 0;
  
}

button {
  padding: 10px 20px;
  background: #6a4cff;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background: #593bd6;
}

/* Header Styles */
#header {
  display: flex;
  justify-content: space-between;
  background: #1a1a24;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 20px;
}

#header .left {
  width: 60%;
}

#header .right {
  text-align: right;
}

#levelRealm {
  font-weight: bold;
  margin-bottom: 6px;
}

.bar {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.bar .label {
  width: 30px;
  font-size: 12px;
}

.bar-bg {
  flex: 1;
  background: #333;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
}

.bar-fill.hp {
  background: #d9534f;
}

.bar-fill.qi {
  background: #5bc0de;
}

/* Menu and Navigation Styles */
#menu-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#menu-buttons button {
  padding: 15px;
  font-size: 14px;
}

/* Event and Combat Styles */
#event-controls,
#combat-panel {
  margin: 15px 0;
  display: flex;
  gap: 10px;
  justify-content: center;
}

#monster-screen .bar-bg {
  width: 100%;
  margin: 5px 0 10px 0;
}

#monster-screen button {
  flex: 1;
}

/* Event End Screen Styles */
#event-end-screen {
  background: #141421;
  padding: 20px;
  border-radius: 8px;
}

#reward-loot ul {
  list-style: none;
  padding: 0;
}

#reward-loot li {
  background: #222;
  margin: 5px 0;
  padding: 5px;
  border-radius: 4px;
}

/* Inventory Styles */
.inventory-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  background: #222;
  color: white;
  border: none;
  cursor: pointer;
}

.tab-btn.active {
  background: #6a4cff;
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.inv-item {
  background: #1e1e2e;
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
}

.inv-item button {
  margin-top: 5px;
  width: 100%;
}