:root {
  --bg-0: #050816;
  --bg-1: #0b1120;
  --panel: #0f172a;
  --panel-2: #111c33;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.05);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.563);
  --amber: #fbbf24;
  --shadow: rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease;
}

body {
  font-family: Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at top, #111a3a 0%, var(--bg-0) 40%, #04050c 100%);
  padding: 40px;
}

#TotalBody {
  width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

#TopActions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.primaryBtn {
  background: var(--emerald);
  color: #04130c;
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.primaryBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.secondaryBtn {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
}

.secondaryBtn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
}

#searchBar {
  flex: 1;
  min-width: 180px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  outline: none;
}

#searchBar::placeholder {
  color: var(--muted);
}

.headerRow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

#accountBox {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 14px;
}

.accountName {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  color: var(--text);
}

.accountRole {
  font-size: 11px;
  color: var(--muted);
}

#loginBtn,
#logoutBtn {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
}

#loginBtn:hover,
#logoutBtn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
}

#TopInfoDiv {
  display: flex;
  gap: 18px;
  width: 100%;
  min-height: 42vh;
}

#InfoBoxDiv {
  flex: 8;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px var(--shadow);
  backdrop-filter: blur(10px);
}

#InfoBoxDiv h1 {
  font-size: 30px;
  margin-bottom: 10px;
}

#InfoBoxDiv p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

#InfoBoxDiv:hover,
#BrewInfo:hover,
#BrewInfoCooking:hover,
#BrewInfoContribution:hover,
#IngredientList:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(16, 185, 129, 0.2);
  padding: 10px;
  border-radius: 14px;
  font-size: 13px;
  color: var(--emerald);
  margin-bottom: 18px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald);
}

#statsDiv {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1.5;
}

.stats {
  flex: 1;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 12px 30px var(--shadow);
  backdrop-filter: blur(12px);
}

.stats:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.stats h1 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--emerald);
}

.stats p {
  font-size: 13px;
  color: var(--muted);
}

#databaseDiv {
  width: 100%;
  display: flex;
  gap: 15px;
}

#BrewInfoList {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#BrewListDiv {
  flex: 5;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#BrewInfo,#BrewInfoCooking,#BrewInfoContribution,#IngredientList,#BrewList {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 50px var(--shadow);
  backdrop-filter: blur(10px);
}

#FilterDiv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.FilterDropdown,
.StarSelect {
  background: var(--panel-2);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  color: var(--text);
  box-shadow: 0 20px 50px var(--shadow);
  backdrop-filter: blur(40px);
}

.FilterDropdown:hover {
  transform: translateY(-2px);
  cursor: pointer;
}

.StarSelect {
  display: flex;
  gap: 5px;
}

.fa-star {
  color: #666;
  cursor: pointer;
  font-size: 18px;
}

.fa-star.active {
  color: #ffc107;
}

.fa-star:hover {
  transform: translateY(-2px);
}

#BrewList {
  padding: 20px;
}
.IngredientItemInfo {
  display: flex;
  justify-content: space-between;
  padding-right: 3% !important;
    color: var(--muted);

}
.IngredientItemInfo span{
  font-size: large;
}
.brew,.IngredientItemInfo {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 12px 30px var(--shadow);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.brew:hover,.IngredientItemInfo:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.brew-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brew-name {
  font-size: 15px;
  font-weight: 500;
}

.rating {
  color: #ffc107;
  font-size: 14px;
  font-weight: 500;
}

.tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span {
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  color: var(--muted);
}

.tags span:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.info-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.info-header h2 {
  font-size: 22px;
}

.info-rating {
  color: #ffc107;
  font-weight: 500;
}

.info-section {
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.info-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.ingredients img {
  width: 32px;
  height: 32px;
  image-rendering: crisp-edges;
  object-fit: contain;
}

#accountPanel,
#ButtonOptions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

#ButtonOptions {
  display: flex;
  gap: 10px;
}

#roles {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.roleBadge {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
}

.roleBadge:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.accountStats {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  min-width: 90px;
  text-align: center;
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.stat span {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--emerald);
}

.stat p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.4px;
}

#IngredientList ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#IngredientList li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  margin-bottom: 6px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

#IngredientList li img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

#IngredientList img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.ingredient-brew-list {
  margin-left: 40px;
  padding: 8px;
  border-left: 2px solid var(--border);
}
.brew-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  margin: 4px 0;
  font-size: 14px;
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.brew-inline:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

#BrewListBTN
{
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
}
#IngredientListBTN  {
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.NotSelected {
  background: rgba(16, 185, 129, 0.15); 
  color: var(--muted);
  opacity: 0.7;
  border: 1px solid var(--border);
}

.NotSelected:hover {
  transform: none;
  cursor: default;
  box-shadow: none;
  background: rgba(16, 185, 129, 0.18);
}
.brew-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brew-icon {
  font-size: 20px;  
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brew-text {
  font-size: 14px;
}
.ingredientInline {
  justify-content: start;
}
.brew-item {
  border: 2px solid gold;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  border-radius: 8px;
}