
/* Larger base text for older users */
body {
    font-size: 18px;
    line-height: 1.4;
}

/* Theme-specific overrides */
.theme-fred .navbar-brand { color: #2b6f8f !important; }
.theme-fred .card { border-color: rgba(43,107,143,0.06); }
.theme-fred #currentBidPerKilo, .theme-fred #startingPrice, .theme-fred #totalPrice, .theme-fred #pricePerAnimal { color: #2b6f8f; }

.theme-footrot .navbar-brand { color: #6a3b00 !important; }
.theme-footrot .card { background: #fffaf0; }
.theme-footrot #currentBidPerKilo, .theme-footrot #startingPrice, .theme-footrot #totalPrice, .theme-footrot #pricePerAnimal { color: #6a3b00; }

.theme-western .navbar-brand { color: #7a3e1b !important; }
.theme-western .card { border-color: rgba(122,62,27,0.06); }
.theme-western #currentBidPerKilo, .theme-western #startingPrice, .theme-western #totalPrice, .theme-western #pricePerAnimal { color: #7a3e1b; }

/* Labels slightly larger */
.form-label,
.text-muted {
    font-size: 0.95rem;
}

/* Important numbers really visible */
.fs-4 {
    font-size: 1.6rem !important;
}

.fs-5 {
    font-size: 1.3rem !important;
}

/* Buttons easier to read */
.btn {
    font-size: 1.05rem;
}

.bid-step-btn {
    font-size: 0.95rem;
    padding: 0.35rem 0;
    flex: 1 1 0;
    min-width: 0;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .bid-step-btn.active {
    background-color: #0d6efd;
    color: #fff;
    font-weight: 600;
    }

/* Tighter appearance on small screens */
@media (max-width: 576px) {
    .bid-step-btn { height: 40px; font-size: 0.9rem; padding: 0.25rem 0; }
}

/* Utility buttons (undo / close) styling */
.button {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border: 1px solid rgba(0,0,0,0.65);
    background: #f5f5f5;
    color: #111;
    border-radius: 0.45rem;
    text-align: center;
    margin-top: 0.5rem;
}

.button i { margin-right: 0.5rem; }

/* Make undo/close less tall on mobile */
@media (max-width: 576px) {
    .button { padding: 0.45rem 0.6rem; font-size: 0.95rem; }
}

/* Glow states for current bidder */
#currentBidder {
    transition: box-shadow 200ms ease, background-color 200ms ease, color 200ms ease;
    display: inline-block;
    padding: 0.15rem 0.35rem;
    border-radius: 0.25rem;
}

#currentBidder.glow-success {
    background-color: rgba(25, 135, 84, 0.08); /* bootstrap success */
    box-shadow: 0 0 10px rgba(25, 135, 84, 0.35);
    color: #198754;
}

#currentBidder.glow-danger {
    background-color: rgba(220, 53, 69, 0.08); /* bootstrap danger */
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.35);
    color: #dc3545;
}

/* Betting warning styles */
.bet-warning-safe { display: none; }
.bet-warning-near .alert { background-color: rgba(255, 193, 7, 0.08); color: #856404; box-shadow: 0 0 8px rgba(255,193,7,0.25); }
.bet-warning-over .alert { background-color: rgba(220, 53, 69, 0.08); color: #842029; box-shadow: 0 0 8px rgba(220,53,69,0.25); }

/* Smaller, lighter input adornments ($, kg, /kg) */
.input-group-text {
    font-size: 0.85rem; /* slightly smaller */
    padding: 0.25rem 0.4rem; /* reduce box size */
    background-color: transparent; /* less visual weight */
    border: none; /* blend with inputs */
    color: #6c757d; /* muted text color */
}

.input-group-lg > .input-group-text,
.input-group-lg > .form-control {
    font-size: 1rem; /* keep main inputs readable */
}

/* Tighten spacing for input groups so adornments don't look oversized */
.input-group .form-control {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

/* Cattle auction theme */
:root{
    --ranch-brown: #6b4f2a;
    --ranch-tan: #f3ebe0;
    --ranch-olive: #2f6b3a;
    --card-bg: #fcfbf9;
    --muted: #6c757d;
}

body {
    background: var(--body-bg, linear-gradient(180deg, #f6f3ef 0%, #efe9e0 100%));
    color: var(--body-color, #2b2b2b);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Ensure theme body classes override Bootstrap's .bg-* utilities */
body.theme-original { background: var(--body-bg) !important; color: var(--body-color) !important; }
body.theme-fred { background: var(--body-bg) !important; color: var(--body-color) !important; }
body.theme-footrot { background: var(--body-bg) !important; color: var(--body-color) !important; }
body.theme-western { background: var(--body-bg) !important; color: var(--body-color) !important; }

.navbar {
    background: linear-gradient(90deg, rgba(107,79,42,0.06), rgba(47,107,58,0.02));
}

.navbar-brand {
    color: var(--ranch-brown) !important;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-size: 1.45rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(107,79,42,0.08);
    border-radius: 0.6rem;
    box-shadow: 0 6px 18px rgba(43,40,37,0.04);
}

.card .card-body { padding: 1.25rem; }

.text-muted { color: var(--muted) !important; }

.btn-success { background-color: var(--ranch-olive); border-color: var(--ranch-olive); }
.btn-success:hover { background-color: #245a30; border-color:#245a30 }
.btn-danger { background-color: #9b2b2b; border-color: #9b2b2b }

.bid-step-btn.active {
    background-color: var(--ranch-brown);
    color: #fff;
    font-weight: 700;
}

/* Make inputs a little warmer */
.form-control {
    background-color: #fff;
    border: 1px solid rgba(43,40,37,0.08);
    box-shadow: none;
}

#currentBidPerKilo, #startingPrice, #totalPrice, #pricePerAnimal {
    color: var(--ranch-brown);
}

/* Bid history card tweaks */
#bidHistory .card {
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(250,249,247,0.9));
    border-left: 6px solid transparent;
}
#bidHistory .card.border-success { border-left-color: var(--ranch-olive); }
#bidHistory .card.border-danger { border-left-color: #b02a2a; }

/* Auction result styling */
#auctionResultWrapper .alert { border-radius: 0 0 .5rem .5rem; font-weight:600 }

/* Small helper: darker divider line between sections */
.card + .card { border-top: 3px solid rgba(107,79,42,0.02); }

/* Responsive tweaks: tighten padding on mobile */
@media (max-width: 576px) {
    .container { padding-left: 0.75rem; padding-right: 0.75rem }
    .navbar-brand { font-size: 1.35rem }
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43,40,37,0.92);
    color: #fff;
    /* keep banner below Bootstrap modal (z-index ~1055) so modal remains accessible */
    z-index: 1040;
}
.cookie-banner .cookie-text { font-size: 0.95rem; }
.cookie-banner .cookie-actions .btn { font-size: 0.85rem; }
.cookie-banner .btn-outline-light { color: #fff; border-color: rgba(255,255,255,0.2); }

/* Advertising banner */
.ad-banner {
    background: #072146; /* navy */
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ad-banner a { color: #fff; }
.ad-banner .ad-logo { width: 56px; height: auto; }
.btn-close-white { filter: invert(1) grayscale(1) brightness(2); }
