:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f8fafc;
    --primary: #38bdf8;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container { max-width: 500px; width: 100%; }
h1 { text-align: center; color: var(--primary); margin-bottom: 5px; }
.subtitle { text-align: center; color: #64748b; margin-top: 0; margin-bottom: 25px; }

.card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
}

h2 { font-size: 1.1rem; margin-top: 0; color: #cbd5e1; border-bottom: 1px solid #334155; padding-bottom: 8px; }

button {
    width: 100%; padding: 12px; border: none; border-radius: 8px;
    font-weight: bold; cursor: pointer; background-color: var(--primary);
    color: #000; font-size: 1rem; transition: background 0.2s;
}
button:hover { opacity: 0.9; }
.btn-secondary { background-color: #475569; color: #fff; }
.btn-success { background-color: var(--success); color: #fff; }
.btn-danger { background-color: #b91c1c; color: #fff; }
.btn-final { background-color: var(--warning); color: #000; font-size: 1.1rem; }

input, select {
    width: 100%; padding: 10px; background-color: #0f172a;
    border: 1px solid #334155; border-radius: 6px; color: #fff;
    box-sizing: border-box; margin-bottom: 10px; font-size: 1rem;
}

.split-box { display: flex; gap: 15px; margin-top: 15px; }
.sub-card { flex: 1; background: #1e293b; border: 1px solid #334155; padding: 12px; border-radius: 8px; }
.sub-card h3 { margin-top: 0; font-size: 0.85rem; color: #cbd5e1; }

.info-card { border: 1px solid var(--primary); }
.info-grid { display: flex; justify-content: space-between; text-align: center; font-size: 0.85rem; color: #94a3b8; }
.info-grid .val { color: #fff; font-weight: bold; font-size: 1rem; }

.happy-hour-box { margin: 10px 0; background: #1c2d0c; padding: 10px; border-radius: 6px; border: 1px solid #4d7c0f; }

/* ÚJ ELEMEK STÍLUSA */
.user-list { list-style: none; padding: 0; margin: 0; }
.user-list li {
    display: flex; justify-content: space-between; padding: 10px;
    background: #0f172a; margin-bottom: 5px; border-radius: 6px; border-left: 4px solid #64748b;
}
.user-list li.is-master { border-left-color: var(--warning); }
.user-list li .user-spent { color: var(--primary); font-weight: bold; }
.user-list li .host-badge { background: var(--warning); color: #000; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; font-weight: bold; margin-left: 5px; }

/* TÁBLÁZAT */
.table-card { background-color: #111827; }
.table-wrapper { max-height: 200px; overflow-y: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.9rem; }
th { color: #94a3b8; padding: 8px; border-bottom: 2px solid #1e293b; }
td { padding: 8px; border-bottom: 1px solid #1e293b; color: #e2e8f0; }
.table-footer { display: flex; justify-content: space-between; margin-top: 15px; padding-top: 10px; border-top: 2px dashed #334155; font-weight: bold; font-size: 1.1rem; color: var(--warning); }

.final-bill { border: 2px solid var(--warning); background-color: #020617; }
.bill-row { display: flex; justify-content: space-between; padding: 12px; background: #1e293b; margin-bottom: 6px; border-radius: 6px; font-size: 1.1rem; }

.hidden { display: none !important; }
.highlight { font-size: 1.4rem; color: var(--warning); font-weight: bold; letter-spacing: 1px; }
.action-buttons { display: flex; flex-direction: column; gap: 10px; }
label { display: block; margin-bottom: 5px; color: #94a3b8; font-size: 0.9rem; }

.brand {
  text-align: center;
  margin-bottom: 20px;
}

.brand-logo {
  display: block;
  margin: 0 auto 10px;
  width: 220px;
  max-width: 80%;
  height: auto;
}

/* Inaktív gomb stílusa */
.btn-inactive {
    opacity: 0.3 !important;
    pointer-events: none !important;
    cursor: default !important;
}

/* Számla alatti felirat */
.bill-footer-msg {
    margin-top: 15px;
    padding: 10px;
    text-align: center;
    color: #22c55e;
    font-size: 0.9rem;
    font-weight: bold;
    border-top: 1px dashed #334155;
}