@import url('https://fonts.googleapis.com/css2?family=Rye&display=swap');
:root {
  --madeira: #8B4513;
  --madeira-clara: #D2B48C;
  --malte: #DAA520;
  --fundo: #2F1B14;
  --texto: #F5E6D3;
  --laranja: #FF8C00;
  --roxo: #9370DB;
}

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

body {
  background-color: var(--fundo);
  color: var(--texto);
  font-family: 'Courier New', monospace;
  line-height: 1.6;
  padding: 10px;
}

header {
  background: linear-gradient(to right, var(--madeira), var(--madeira-clara));
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--malte);
  align-items: center;
  img {
    width: 100px;
  }
  p{
  font-family: "Rye", serif;
    width: 120px;
  }
}

.status-bar {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.9rem;
}

.stat {
  display: flex;
  background: rgba(0,0,0,0.3);
  padding: 5px 10px;
  border-radius: 5px;
  align-items: center;
  img{
    width: 36px;
  }
}

.clock {
  background: var(--madeira-clara);
  color: var(--fundo);
  padding: 5px 10px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
}

.tabs {
  display: flex;
  background: var(--madeira);
  padding: 10px;
  gap: 5px;
  justify-content: center;
  margin: 10px 0;
}

.tab-btn {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.2);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
  font-weight: bold;
  img{
    width: 48px;
  }
}

.tab-btn:hover, .tab-btn.active {
  background: var(--malte);
  color: var(--fundo);
}

.tab-content {
  display: none;
  padding: 20px;
  background: rgba(139,69,19,0.2);
  border-radius: 10px;
}

.tab-content.active {
  display: block;
}

.taverna-layout {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.estoque, .bebidas-painel {
  flex: 1;
  min-width: 250px;
  background: rgba(210,180,140,0.1);
  padding: 15px;
  border-radius: 10px;
}

.bromar {
  position: relative;
  text-align: center;
  min-width: 150px;
}

.bromar-img {
  width: 100%;
  margin-top: 40px;
  max-width: 150px;
  border-radius: 10px;
  object-fit: cover;
}

.speech-bubble {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: var(--fundo);
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.cliente {
  padding: 10px;
  margin: 8px 0;
  background: rgba(255,255,255,0.1);
  border-left: 4px solid var(--malte);
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}

.cliente:hover {
  background: rgba(218,165,32,0.2);
}

.cliente-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  float: left;
  margin-right: 10px;
}

.cliente-info {
  margin-left: 50px;
}

.bebida-item {
  padding: 8px;
  margin: 5px 0;
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}

.bebida-item:hover {
  background: rgba(218,165,32,0.3);
}

.bebida-item.selecionada {
  background: rgba(147,112,219,0.4);
  border-left: 4px solid var(--roxo);
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

.action-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s;
}

.action-btn:hover {
  transform: scale(1.05);
}

.action-btn.purple {
  background: var(--roxo);
  color: white;
}

.ingredientes, .item-card {
  margin: 10px 0;
  padding: 10px;
  background: rgba(210,180,140,0.1);
  border-radius: 8px;
}

.item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.mercador-card {
  display: flex;
  gap: 15px;
  background: rgba(210,180,140,0.1);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.mercador-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
}

.receita-item {
  background: rgba(210,180,140,0.1);
  width: 300px;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
}

.receita-item button {
  background: var(--laranja);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 8px;
}

footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #aaa;
}

@media (max-width: 768px) {
  .taverna-layout {
    flex-direction: column;
  }
  .tabs {
    flex-wrap: wrap;
  }
  .tab-btn {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
}

.xp-bar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 120px;
}

.xp-bar-container progress {
  width: 100%;
  height: 12px;
  border-radius: 6px;
  background: #333;
}

.xp-bar-container progress::-webkit-progress-bar {
  background: #333;
  border-radius: 6px;
}

.xp-bar-container progress::-webkit-progress-value {
  background: var(--malte);
  border-radius: 6px;
}

.xp-bar-container progress::-moz-progress-bar {
  background: var(--malte);
  border-radius: 6px;
}

#cervejaria-receitas{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
/* === Barra de Estoque Permanente === */
.estoque-bar {
  display: flex;
  justify-content: space-between;
  background: rgba(139, 69, 19, 0.3);
  padding: 10px 15px;
  border-radius: 8px;
  margin: 10px 0;
  gap: 20px;
  flex-wrap: wrap;
}

.estoque-coluna {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 200px;
  align-items: center;
}

.item-estoque {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.85rem;
  color: var(--texto);
  text-align: center;
  min-width: 40px;
}

.item-estoque .icone {
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.item-estoque .icone img,
.ingredientes .item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.item-estoque .quantidade {
  font-weight: bold;
  background: rgba(0,0,0,0.3);
  padding: 2px 6px;
  border-radius: 4px;
  width: 100%;
}
.ingredientes .item {
  margin: 4px 0;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.item-card img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
}

.bebida-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
}
.tela-inicio {
  text-align: center;
  padding: 40px 20px;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  margin-bottom: 20px;
}

.action-btn.green {
  background: #4CAF50;
  color: white;
}

#barra-navegacao {
  display: none;
}