html {
  font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
        scroll-behavior: smooth;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
.btn-isbn-check {
    background-color: #d39e00;
    color: #000 !important;
    font-weight: bold;
    border: 1px solid #ba8b00;
}
.col-md-1-5 {
    flex: 0 0 12.5%; /* 1.5 columns out of 12 */
    max-width: 12.5%;
}
.book-count-box {
    background-color: linen; /* was mistyrose tint */
    border: 2px solid Saddlebrown; /* was maroon border */
    border-radius: 8px;
    padding: 0.15rem 1rem;
}

.count-number {
    color: saddlebrown; /* was maroon */
    line-height: .5;
}
.count-icon {
    font-size: 2rem; /* try 2.5, 3, 3.5, etc. */
    line-height: .5;
    color: saddlebrown; /* was maroon */
}

.author-count-box {
    background-color: linen;
    border: 2px solid saddlebrown;
    border-radius: 8px;
    padding: 0.15rem 0.75rem; /* same compact height as Books */
}

.author-count-icon {
    font-size: 2rem; /* matches your book icon size */
    line-height: .5;
    color: saddlebrown;
}

.author-count-number {
    color: saddlebrown;
    line-height: .5;
}
.author-bookcount-box {
    background-color: linen;
    border: 1.5px solid saddlebrown; /* tighter border */
    border-radius: 6px;
    padding: 0.05rem 0.35rem; /* very compact */
    display: inline-flex;
    align-items: center;
}

.author-bookcount-icon {
    font-size: 1.1rem; /* slightly smaller for tighter fit */
    line-height: 1;
    color: saddlebrown;
}

.author-bookcount-number {
    color: saddlebrown;
    font-size: 1.05rem;
    line-height: 1;
}
.author-bookcount-pill {
    background-color: linen;
    border: 1.5px solid saddlebrown;
    border-radius: 999px; /* <-- makes it a pill */
    padding: 0.05rem 0.5rem; /* tight but readable */
    display: inline-flex;
    align-items: center;
}

.author-bookcount-pill-icon {
    font-size: 1.1rem;
    line-height: 1;
    color: saddlebrown;
}

.author-bookcount-pill-number {
    color: saddlebrown;
    font-size: 1.05rem;
    line-height: 1;
}
.paused-spinner-container {
    display: flex;
    align-items: center;
    height: 70px;          /* EXACTLY matches spinner height */
    padding: 0;
    margin-top: -120px;
    margin-left: 140px;
}

.paused-spinner {
    position: relative;
    width: 90px;           /* circle diameter */
    height: 90px;          /* circle diameter */
    display: flex;
    align-items: center;   /* centers the circle */
    justify-content: center;
}

/* Each letter positioned around the circle */
.paused-spinner span {
    position: absolute;
    left: 50%;
    top: 50%;
    font-weight: bold;
    color: #ffc107;
    font-size: 14px;
    transform-origin: 0 35px; /* radius */
    animation: spinLetter 1.2s linear infinite;
}

/* Assign each letter its angle */
.paused-spinner span:nth-child(1) { --angle: 0deg; }
.paused-spinner span:nth-child(2) { --angle: 60deg; }
.paused-spinner span:nth-child(3) { --angle: 120deg; }
.paused-spinner span:nth-child(4) { --angle: 180deg; }
.paused-spinner span:nth-child(5) { --angle: 240deg; }
.paused-spinner span:nth-child(6) { --angle: 300deg; }

/* Spin each letter in place */
@keyframes spinLetter {
    from { transform: rotate(var(--angle)) rotate(0deg); }
    to   { transform: rotate(var(--angle)) rotate(360deg); }
}
.btn:hover,
.btn:focus {
    filter: brightness(85%);
    transform: translateY(-3px);
    transition: all 0.15s ease-in-out;
}
.nowrap {
    white-space: nowrap;
}
.actions-col {
    white-space: nowrap;
    width: 1%;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
/* =========================================
   VITALITY RING
   ========================================= */
.vitality-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.vitality-ring-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vitality-ring {
    --vitality: 75; /* fallback */
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: conic-gradient(#2a9d8f calc(var(--vitality) * 1%), #333 calc(var(--vitality) * 1%));
    display: flex;
    align-items: center;
    justify-content: center;
}

.vitality-ring-inner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f4f4f4;
    font-size: 1.3rem;
    font-weight: 700;
}
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.chart-card {
    border: 3px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
}
.bar-track {
    height: 24px;
    background-color: rgba(255,255,255,0.08);
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
}

    .bar-fill.green {
        background-color: #00c853 !important;
    }

    .bar-fill.orange {
        background-color: #ff9800 !important;
    }

    .bar-fill.gray {
        background-color: #9e9e9e !important;
    }
.row-top-border > td {
    border-top: 2px solid #666; /* or whatever color you want */
}
.outer-border-table {
    border: 2px solid #666 !important; /* outside border */
    border-collapse: separate !important; /* prevents Bootstrap from collapsing borders */
    border-spacing: 0 !important;
    border-radius: 6px; /* optional: rounded corners */
    overflow: hidden; /* keeps rounded corners clean */
}

.outer-border-table td {
    padding: 8px 10px; /* keeps spacing clean */
}
.card-dark {
    overflow: visible !important;
}
.ingredient-row {
    background: #f8f9fa;
    border-left: 4px solid #0d6efd;
}
.highlight-flash {
    animation: flash-bg 0.8s ease-out;
}

@keyframes flash-bg {
    0% {
        background-color: #fff3cd;
    }
    /* soft yellow */
    100% {
        background-color: transparent;
    }
}
.home-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.home-greeting {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.home-logo {
    text-align: center;
    margin-bottom: 25px;
}

    .home-logo img {
        width: 300px;
        height: auto;
    }

.quick-launch {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 30px;
}

.ql-item {
    flex: 1;
    background: #f5f5f5;
    padding: 18px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: 0.2s;
}

    .ql-item i {
        font-size: 28px;
        margin-bottom: 8px;
        display: block;
    }

    .ql-item:hover {
        background: #eaeaea;
    }

.snapshot-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

    .snapshot-card h2 {
        margin-bottom: 15px;
    }

.snapshot-item {
    margin-bottom: 8px;
}

    .snapshot-item.empty {
        color: #777;
    }

.whats-new {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

    .whats-new h2 {
        margin-bottom: 10px;
    }

    .whats-new ul {
        margin: 0;
        padding-left: 20px;
    }
.footer-bar {
    text-align: center;
    padding: 6px 0;
    font-size: 0.85rem;
    color: #666;
}

    .footer-bar a {
        color: #666;
        text-decoration: none;
    }

        .footer-bar a:hover {
            text-decoration: underline;
        }
.snapshot-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.snapshot-card,
.whats-new {
    flex: 1;
}
@media (max-width: 768px) {
    .snapshot-row {
        flex-direction: column;
    }
}
.navbar-nav .nav-link {
    padding: 6px 12px;
    border-radius: 6px;
}

    .navbar-nav .nav-link:hover {
        background-color: #f0f0f0;
    }
.navbar-brand {
    margin-right: 2rem;
}
.food-item:hover {
    background-color: lightsteelblue; /* soft yellow highlight */
    cursor: pointer;
}
#photoModal .modal-body {
    height: 90vh; /* gives the body vertical space */
    text-align: center; /* horizontal centering baseline */
    position: relative; /* keeps arrows positioned correctly */
}

#photoModal img,
#photoModal video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* perfect centering */
    max-height: 90vh;
    max-width: 100%;
    object-fit: contain;
}