/* ── General Wrap ──────────────────────────────────────────────────────────── */

.ac-checkin-wrap {
    max-width: 640px;
    margin: 0 auto;
    font-family: inherit;
}

/* ── Messages ──────────────────────────────────────────────────────────────── */

.ac-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.ac-message--success {
    background: #edfaef;
    border: 1px solid #5ec46a;
    color: #1a6b24;
}

.ac-message--warning {
    background: #fff8e5;
    border: 1px solid #f0c040;
    color: #7a5500;
}

.ac-error {
    background: #fdecea;
    border: 1px solid #e07070;
    color: #8a1a1a;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.ac-success {
    background: #edfaef;
    border: 1px solid #5ec46a;
    color: #1a6b24;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* ── Day Filter Buttons ────────────────────────────────────────────────────── */

.ac-day-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.ac-day-filter button {
    background: #e0e0e0;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.ac-day-filter button:hover {
    background: #d0d0d0;
}

.ac-day-filter button.ac-active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* ── Mode Toggle (By Name / By Band) ───────────────────────────────────────── */

.ac-mode-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.ac-mode-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #e0e0e0;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.ac-mode-btn:hover {
    background: #d0d0d0;
    color: #333;
    text-decoration: none;
}

.ac-mode-btn.ac-active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* ── Forms ─────────────────────────────────────────────────────────────────── */

.ac-checkin-form label,
.ac-gear-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.ac-checkin-form input[type="text"],
.ac-checkin-form select,
.ac-gear-form input[type="text"],
.ac-gear-form select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.ac-checkin-form button[type="submit"],
.ac-gear-form button[type="submit"] {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s;
}

.ac-checkin-form button[type="submit"]:hover,
.ac-gear-form button[type="submit"]:hover {
    background: #135e96;
}

.ac-checkin-form button[type="submit"]:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* ── Artist Autocomplete Suggestions ───────────────────────────────────────── */

.ac-suggestions {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.ac-suggestions li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.95rem;
}

.ac-suggestions li:hover {
    background: #f0f4f8;
}

/* ── By Band Form ──────────────────────────────────────────────────────────── */

.ac-checkin-band-form select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 12px;
    box-sizing: border-box;
}

#ac-band-artists-list label {
    font-weight: normal;
}

#ac-band-checkin-submit {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.15s;
}

#ac-band-checkin-submit:hover {
    background: #135e96;
}

#ac-band-checkin-submit:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* ── Add Item Button ───────────────────────────────────────────────────────── */

#ac-add-item {
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.15s;
}

#ac-add-item:hover {
    background: #e0e0e0;
}

/* ── Gear Item Block ───────────────────────────────────────────────────────── */

.ac-gear-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

/* ── Gear List ─────────────────────────────────────────────────────────────── */

.ac-gear-list {
    max-width: 900px;
    margin: 0 auto;
}

.ac-gear-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 0.95rem;
}

.ac-gear-table th,
.ac-gear-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.ac-gear-table th {
    background: #f4f4f4;
    font-weight: 600;
}

.ac-gear-table tr.ac-collected td {
    color: #999;
    text-decoration: line-through;
}

.ac-collected-label {
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}

.ac-gear-table button {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.15s;
}

.ac-gear-table button:hover {
    background: #135e96;
}

/* ── Collected Filter Button ───────────────────────────────────────────────── */

.ac-collected-filter {
    margin-bottom: 16px;
}

.ac-collected-filter button {
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.15s;
}

.ac-collected-filter button:hover {
    background: #e0e0e0;
}

.ac-gear-link {
    display: inline-block;
    margin-left: 8px;
    padding: 6px 14px;
    background: #2271b1;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}

/* ── Live status: container ────────────────────────────────────── */

.ac-venue-status {
    margin: 0 0 24px;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.ac-venue-status-title {
    margin: 0 0 12px;
    font-size: 1.4em;
}

/* ── Live status: shared blocks ────────────────────────────────── */

.ac-now-playing,
.ac-next-up,
.ac-coming-up {
    margin: 0 0 10px;
    padding: 14px 18px;
    border-radius: 6px;
    background: #f4f4f4;
    border-left: 6px solid #999;
}

.ac-status-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
}

.ac-status-band {
    display: block;
    font-size: 1.6em;
    font-weight: 700;
    line-height: 1.2;
    color: #111;
}

.ac-status-times {
    display: block;
    margin-top: 2px;
    font-size: 1em;
    color: #555;
}

.ac-status-empty {
    display: block;
    font-size: 1.1em;
    font-style: italic;
    color: #777;
}

/* ── Now playing ───────────────────────────────────────────────── */

.ac-now-playing {
    background: #e8f7ec;
    border-left-color: #1e9e45;
}

.ac-now-playing .ac-status-label {
    color: #1e9e45;
}

/* ── LIVE badge ────────────────────────────────────────────────── */

.ac-live-badge {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #d63638;
    color: #fff;
    font-size: 0.95em;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    vertical-align: middle;
    animation: ac-live-pulse 1.6s ease-in-out infinite;
}

@keyframes ac-live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(214, 54, 56, 0.6);
        opacity: 1;
    }
    70% {
        box-shadow: 0 0 0 8px rgba(214, 54, 56, 0);
        opacity: 0.85;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(214, 54, 56, 0);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ac-live-badge {
        animation: none;
    }
}


/* ── Next up ───────────────────────────────────────────────────── */

.ac-next-up {
    background: #eef4fb;
    border-left-color: #2271b1;
}

.ac-next-up .ac-status-label {
    color: #2271b1;
}

/* Band name and time on one line */
.ac-next-line .ac-status-band,
.ac-next-line .ac-status-times {
    display: inline;
}

.ac-next-line .ac-status-times {
    margin-left: 10px;
    font-size: 1.2em;
    font-weight: 600;
}

/* ── "Starting in" box (final 15 minutes) ──────────────────────── */

.ac-starting-in {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 14px;
    border-radius: 10px;
    background: #2271b1;
    color: #fff;
    font-style: italic;
    font-weight: 600;
}

.ac-starting-in .ac-countdown {
    margin-left: 6px;
    font-size: 1.3em;
    font-weight: 700;
    font-style: normal;
    font-variant-numeric: tabular-nums;
}

/* ── Coming up later ───────────────────────────────────────────── */

.ac-coming-up-list {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
}

.ac-coming-up-list li {
    padding: 2px 0;
}

/*── Counter Buttons ────────────────────────────────────────────────── */


.counter-btn {
  padding: 15px 15px;         /* larger size */
  font-size: 48px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: white;
  margin-right: 10px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.1s ease;
}

.counter-btn:active {
  transform: scale(0.98);     /* slight press animation */
}

.increment-btn {
  background-color: #4caf50; /* green */
}

.decrement-btn {
  background-color: #f44336; /* red */
}

.reset-btn {
  background-color: #2196f3; /* blue */
  font-size: 40px;
}
.counter-wrapper {
  font-size: 24px;            
  font-weight: bold;
}
.counter-value {
  font-size: 30px;            
  font-weight: bold;
  color: blue;            
}
.counter-capacity {
  color: gray; 
  font-style: italic;
  font-size: 18px;            
}


/* ── Phone ─────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .ac-venue-status {
        padding: 12px;
    }

    .ac-venue-status-title {
        font-size: 1.2em;
    }

    .ac-now-playing,
    .ac-next-up,
    .ac-coming-up {
        padding: 10px 12px;
    }

    .ac-status-band {
        font-size: 1.3em;
    }

    .ac-next-line .ac-status-times {
        font-size: 1.1em;
        margin-left: 6px;
    }

    .ac-starting-in {
        padding: 3px 12px;
        font-size: 0.95em;
    }

    .ac-starting-in .ac-countdown {
        font-size: 1.2em;
    }
}

/* ── Progress Bar ─────────────────────────────────────────────────────── */

.gjb-bar { margin: 0 0 10px; }

.gjb-bar-track {
    position: relative;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    min-height: 24px;
}

.gjb-bar-fill {
    height: 100%;
    transition: width 0.35s ease, background 0.35s ease;
}

.gjb-bar-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 0.9em;
    font-weight: 700;
    color: #111;
    text-shadow: 0 0 3px #fff, 0 0 3px #fff;
    pointer-events: none;
}

.gjb-bar-label.gjb-full {
    font-size: 1.1em;
    letter-spacing: 0.1em;
    color: #fff;
    text-shadow: 0 0 3px #000, 0 0 3px #000;
}

/* ── SMS Buttons ─────────────────────────────────────────────────────── */

.sms-alert-btn.pulse { animation: gjb-pulse 1s infinite; }
@keyframes gjb-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.7); }
    70%  { box-shadow: 0 0 0 15px rgba(204, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0); }
}
.sms-alert-btn[data-confirm="1"] { outline: 4px solid #000; }

.sms-alert-row {
    display: flex;
    gap: 24px;              /* leaves room for the 15px pulse ring */
    margin: 10px 0;
}

.sms-alert-row .sms-alert-btn {
    flex: 1;
    min-height: 56px;
    margin: 0;
    padding: 10px;
    font-size: 1.1em;
    font-weight: bold;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

@media (max-width: 360px) {
    .sms-alert-row { flex-wrap: wrap; }
    .sms-alert-row .sms-alert-btn { flex: 1 1 100%; }
}
