/* The original Bartendro look (ui/content/static/css/bartendro.css + Bootstrap 2 buttons):
   grey page, tan rounded frame around a white panel, blue headings, orange drink buttons,
   green "pour" buttons, Verdana. Colours are variables so a party theme can override them
   (base.html). Phone first; the 10" touchscreen (>= 900px) gets bigger type and more room. */
:root {
  --page: #dadada; --frame: #d9a180; --frame-inner: #b98160; --panel: #ffffff;
  --text: #333333; --muted: #777777; --heading: #005991; --edge: #4788bf;
  --btn-1: #fc9c64; --btn-2: #fa6c19; --go-1: #62c462; --go-2: #51a351;
  --bad: #bd362f; --ok: #51a351; --warn: #c09853;
  --font: Verdana, Geneva, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font: 15px/1.4 var(--font); }
a { color: var(--heading); }

/* navbar: light gradient bar, links left, logo right (party robot on phones) */
.top { display: flex; align-items: center; justify-content: space-between; gap: 8px;
       padding: 0 12px; min-height: 46px; background: linear-gradient(#ffffff, #f2f2f2);
       border-bottom: 1px solid #d4d4d4; position: sticky; top: 0; z-index: 5; }
.top nav { display: flex; }
.top nav a { color: #777; text-decoration: none; padding: 13px 12px; font-size: 14px; }
.top nav a.on { color: #555; background: #e5e5e5; box-shadow: inset 0 3px 8px rgba(0,0,0,.125); }
.top .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.top .logo img { height: 22px; display: block; }
.top .logo .robot { display: none; height: 30px; }
.top .party-title { font-weight: bold; color: var(--heading); font-size: 16px; }
@media (max-width: 530px) {
  .top .logo .full { display: none; }
  .top .logo .robot { display: block; }
}

.statusbar { padding: 6px 16px; font-size: .9em; text-align: center; font-weight: bold; }
.statusbar.state-ready, .statusbar.state-starting { display: none; }
.statusbar.state-low { background: #fcf8e3; color: var(--warn); }
.statusbar.state-out, .statusbar.state-hard_out, .statusbar.state-error,
.statusbar.state-current_sense { background: #f2dede; color: var(--bad); }
.statusbar.state-pouring, .statusbar.state-cleaning { background: #dff0d8; color: #468847; }

/* the frame: tan border, inner darker line, white panel */
main { padding: 14px 10px 30px; max-width: 1200px; margin: 0 auto; }
.frame { border: 6px solid var(--frame); border-radius: 15px; background: var(--frame); }
.panel { background: var(--panel); border: 2px solid var(--frame-inner); border-radius: 7px; padding: 12px 14px 18px; }
@media (min-width: 768px) {
  main { padding: 20px; }
  .frame { border-width: 12px; }
  .panel { padding: 16px 22px 24px; }
}

h1 { color: var(--heading); font-weight: normal; font-size: 24pt; margin: .2em 0 .4em; }
h2, h3 { color: var(--heading); font-weight: normal; }
h3 { font-size: 16pt; margin: 1.2em 0 .5em; }
.empty, .muted, .hint { color: var(--muted); }
.muted { font-size: .85em; margin-left: .4em; }

/* buttons: Bootstrap 2 btn-large btn-warning / btn-success with the blue border */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px;
       padding: 0 16px; border: 2px solid var(--edge); border-radius: 6px; cursor: pointer;
       color: #fff; font: inherit; font-size: 15px; text-decoration: none; text-shadow: 0 -1px 0 rgba(0,0,0,.25);
       background: linear-gradient(var(--btn-1), var(--btn-2)); }
.btn:active { filter: brightness(.92); }
.btn.go, .btn.primary { background: linear-gradient(var(--go-1), var(--go-2)); }
.btn.danger { background: linear-gradient(#ee5f5b, var(--bad)); }
.btn.plain { background: linear-gradient(#ffffff, #e6e6e6); color: #333; text-shadow: none; border-color: #ccc; }
.btn.small { min-height: 32px; padding: 0 10px; font-size: 13px; }
.btn.big { min-height: 56px; font-size: 17px; }
.btn:disabled { opacity: .5; cursor: default; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }

/* menu: two columns of drinks like the original drink_table */
.drinks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.drink-item .btn { width: 100%; justify-content: flex-start; padding-left: 16px; min-height: 46px;
                   font-size: 15pt; text-align: left; margin-bottom: 6px; }
.drink-item .ingredients { font-weight: bold; }
.drink-item .desc { color: var(--text); }
@media (max-width: 480px) {
  .drinks { grid-template-columns: 1fr; gap: 10px; }
  .drinks.essentials { grid-template-columns: 1fr 1fr; }
  .drinks.essentials .ingredients, .drinks.essentials .desc { display: none; }
  .drink-item .btn { font-size: 13pt; }
}
.sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.sections .btn { min-height: 60px; font-size: 14pt; justify-content: space-between; }
.sections .count { font-size: 11pt; opacity: .85; }
.back { margin-bottom: 8px; }
.welcome { font-size: 14pt; color: var(--heading); margin: 0 0 6px; }
h4 { color: var(--heading); font-weight: normal; margin: 14px 0 4px; }
.sick { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.sick img { height: 180px; }
.sick p { font-size: 15pt; font-weight: bold; max-width: 420px; }

/* drink page: blue "Make: ..." bar, recipe left, +/- stack right */
.drink-heading { background: var(--heading); color: #fff; border-radius: 5px; padding: 8px 14px;
                 font-size: 20pt; margin: 0 0 14px; font-weight: normal; }
.drink-body { display: grid; gap: 18px; }
.recipe { width: 100%; border-collapse: collapse; margin: 6px 0 12px; }
.recipe td { padding: 4px 0; vertical-align: top; }
.recipe .num, .grid .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.subhead { color: var(--heading); font-size: 13pt; margin: 10px 0 2px; }
.serve { color: var(--text); margin: 6px 0; }
.serve .glass { display: inline-block; padding: 1px 8px; margin-right: 6px; border-radius: 4px;
                background: #eee; font-size: .9em; }
.stack { display: grid; gap: 12px; align-content: start; }
.adjust { text-align: center; }
.adjust-title { color: var(--heading); font-size: 18pt; }
.adjust-row { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: 8px; }
.adjust-row .btn { min-height: 44px; font-size: 22px; padding: 0; }
.adjust-value { font-weight: bold; }
.adjust-hints { display: grid; grid-template-columns: 56px 1fr 56px; font-size: 9pt; font-weight: bold; }
.make-buttons { display: flex; gap: 10px; align-items: stretch; margin-top: 6px; }
.make-buttons .btn { flex: 1; }
.error { color: var(--bad); font-weight: bold; }
@media (min-width: 768px) {
  .drink-body { grid-template-columns: 5fr 7fr; gap: 30px; }
}

/* lightbox: white box with the tan border ("Now serving your ...") */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: flex;
           align-items: center; justify-content: center; z-index: 20; padding: 16px; }
.overlay-box { background: #fff; border: 12px solid var(--frame); border-radius: 15px; padding: 22px;
               max-width: 520px; width: 100%; text-align: center; }
.overlay-box h2 { margin: .1em 0 .2em; font-size: 24pt; }
.overlay-box ul { text-align: left; font-size: 13pt; }
.overlay-buttons { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.overlay.bad .overlay-box { border-color: var(--bad); }
.overlay img.sick-robot { display: none; height: 120px; margin: 0 auto 8px; }
.overlay.bad img.sick-robot { display: block; }
.spinner { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%;
           border: 6px solid #eee; border-top-color: var(--btn-2); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30;
         background: var(--bad); color: #fff; padding: 12px 18px; border-radius: 8px; max-width: 90vw; }

/* shots: big green buttons */
.shot-row { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr; gap: 12px; align-items: center; margin-bottom: 10px; }
.shot-row .btn { min-height: 52px; font-size: 16pt; border-radius: 10px; }
@media (max-width: 480px) { .shot-row { grid-template-columns: 1fr; } }

/* admin */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; border-bottom: 2px solid var(--frame); }
.tabs a { padding: 8px 12px; border-radius: 6px 6px 0 0; color: var(--heading); text-decoration: none; }
.tabs a.on { background: var(--frame); color: #fff; }
.grid { border-collapse: collapse; width: 100%; }
.grid th { text-align: left; color: var(--muted); font-weight: normal; font-size: .85em; }
.grid td, .grid th { padding: 5px 6px; border-bottom: 1px solid #e5e5e5; vertical-align: middle; }
.pump-buttons { white-space: nowrap; }
.level-ok { color: var(--ok); } .level-low { color: var(--warn); } .level-out { color: var(--bad); }
select, input, textarea { font: inherit; color: var(--text); background: #fff; border: 1px solid #ccc;
                          border-radius: 4px; padding: 6px 8px; max-width: 100%; }
input.short { width: 6em; }
.form { display: grid; gap: 12px; max-width: 680px; }
.form label { display: grid; gap: 4px; color: var(--muted); }
.form label.check { display: flex; gap: 10px; align-items: center; color: var(--text); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 16px; margin: 8px 0 12px; }
.checks label.check { display: flex; gap: 8px; align-items: center; }
.footer { color: var(--muted); font-size: .8em; margin-top: 30px; }
@media (max-width: 600px) { .grid { font-size: .9em; } .pump-buttons { white-space: normal; } }

.pumps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 10px 0; }
.pump { border: 1px solid #ddd; border-radius: 8px; padding: 8px 10px; display: grid; gap: 6px; background: #fafafa; }
.pump-head { display: flex; gap: 8px; align-items: baseline; }
.pump-bottle { width: 100%; font-size: 15px; }
.pump.saved { border-color: var(--ok); }
.pump .pump-buttons { display: flex; flex-wrap: wrap; gap: 4px; white-space: normal; }
#preview { background: #f5f5f5; border-radius: 6px; padding: 8px 10px; }
#preview .bad { color: var(--bad); }

/* 10" touchscreen and other big screens */
@media (min-width: 900px) {
  body { font-size: 16px; }
  .drink-item .btn { min-height: 54px; }
  .sections { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .sections .btn { min-height: 72px; }
}
.demo-banner { background: #fcf8e3; color: #8a6d3b; text-align: center; padding: 6px 12px; font-size: .85em;
               border-bottom: 1px solid #fbeed5; }
