.container-narrow {
    max-width: 600px;
}

/* Accent color (teal from the example) */
.text-accent {
    color: #26a69a !important;
}

.bg-accent {
    background-color: #26a69a !important;
}

.btn-accent {
    background-color: #26a69a;
    border-color: #26a69a;
    color: #fff;
}

.btn-accent:hover {
    background-color: #1e8e82;
    border-color: #1e8e82;
    color: #fff;
}

/* Summary header gradient */
.summary-header {
    background: linear-gradient(135deg, #26a69a 0%, #4db6ac 100%);
}

/* Calorie ring */
.calorie-ring {
    width: 120px;
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calorie-ring-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.calorie-ring-bg {
    fill: none;
    stroke: rgb(255 255 255 / 30%);
    stroke-width: 3;
}

.calorie-ring-progress {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
}

.calorie-ring-inner {
    text-align: center;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Progress bar background for dark mode */
.summary-header .progress {
    background-color: rgb(255 255 255 / 20%);
}

.summary-header .progress-bar {
    transition: width 0.5s ease-out;
}

/* Animated number pop effect */
.value-pop {
    animation: valuePop 0.4s ease-out;
    display: inline-block;
}

@keyframes valuePop {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.5);
        text-shadow: 0 0 10px rgb(255 255 255 / 80%);
    }

    100% {
        transform: scale(1);
    }
}

/* Calorie ring pulse */
.ring-pulse {
    animation: ringPulse 0.5s ease-out;
}

@keyframes ringPulse {
    0% { transform: rotate(-90deg) scale(1); }
    50% { transform: rotate(-90deg) scale(1.08); }
    100% { transform: rotate(-90deg) scale(1); }
}

/* Entry row fade when toggled off */
.entry-row {
    transition: opacity 0.3s ease;
}


/* Min width utility */
.min-width-0 {
    min-width: 0;
}

/* Input widths */
.servings-input-width {
    width: auto;
}

.servings-input-width .servings-input {
    width: 4em;
}

.amount-input-width {
    width: 80px;
}

/* Search results dropdown */
.search-dropdown {
    z-index: 1050;
    max-height: 300px;
    overflow-y: auto;
}

.search-dropdown-sm {
    z-index: 1050;
    max-height: 250px;
    overflow-y: auto;
}

.search-result {
    cursor: pointer;
}

/* Floating summary bar */
.floating-summary {
    z-index: 1000;
}

/* Entries card spacing for floating bar */
.entries-card {
    margin-bottom: 80px;
}

/* Progress bar thin */
.progress-thin {
    height: 4px;
}

/* Icon circles */
.icon-circle-sm {
    width: 36px;
    height: 36px;
}

.icon-circle-md {
    width: 48px;
    height: 48px;
}

/* Menu button */
.menu-btn {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
}

/* Error details pre */
.error-details {
    white-space: pre-wrap;
    word-break: break-all;
}

/* Search result hover state */
.search-result.active {
    background-color: var(--bs-tertiary-bg);
}

/* Entry row disabled state */
.entry-row.disabled {
    opacity: 0.4;
}

/* Undo toast styling */
#undo-toast {
    background-color: #333;
    color: #fff;
    min-width: 280px;
}

#undo-toast .toast-body {
    padding: 0.75rem 1rem;
}


/* Ensure scrolling keeps content above floating bar */
html {
    scroll-padding-bottom: 70px;
}

/* Give servings input scroll margin so floating bar doesn't cover it */
.servings-input {
    scroll-margin-bottom: 80px;
}
