html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /* Safety net: full-bleed sections/images use negative margins to escape their
       container's padding, and viewport-width units can be wider than the visible
       area when a scrollbar is present. Neither should ever cause horizontal scrolling. */
    overflow-x: hidden;
}

/* Brand utilities (purple/blue healthcare palette, see HeartTraxTheme.cs) */
:root {
    --brand-gradient: linear-gradient(135deg, #E63950 0%, #7C3AED 55%, #2563EB 100%);
}

.brand-gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-gradient-bar {
    display: block;
    width: 32px;
    height: 3px;
    border-radius: 2px;
    background: var(--brand-gradient);
}

.brand-icon-duotone {
    --fa-primary-color: #7C3AED;
    --fa-secondary-color: #2563EB;
    --fa-secondary-opacity: 0.65;
}

.stat-card-shadow {
    box-shadow: 0 2px 12px rgba(26, 26, 46, 0.08);
}

/* Marketing landing page section rhythm - keep every section on the same vertical spacing scale */
.marketing-section {
    padding: 64px 20px;
    margin: 0 -16px;
}

.marketing-section-subtitle {
    max-width: 650px;
    margin: 0 auto;
}

/* Bootstrap-style text alignment utilities - not shipped by MudBlazor, but used throughout
   the marketing page markup, so define them here rather than on every element. */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.resource-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.resource-card-link:hover {
    transform: translateY(-2px);
}

/* Marketing page illustration images - on phones, bleed past the two nested layers of
   padding above them (the section's own 20px plus the inner MudContainer's 16px) so the
   artwork reads at a usable size instead of shrinking to fit multiple layers of gutters.
   Deliberately avoids 100vw/50vw here - those can be wider than the visible viewport when
   a scrollbar is present, which causes unwanted horizontal scrolling. */
@media (max-width: 599px) {
    .marketing-image {
        width: calc(100% + 72px) !important;
        max-width: none !important;
        margin-left: -36px !important;
        margin-right: -36px !important;
    }
}

/* HeartButton's shared .btnHeart class stacks to full width below 992px, which is the
   right call for stacked form actions but not for this side-by-side sign-in pair - keep
   them shrinking to fit in a row instead of stacking. */
.signin-cta-buttons .btnHeart {
    width: auto;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0 !important;
}

@media (max-width: 420px) {
    .signin-cta-buttons .btnHeart {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 0.75rem;
    }
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50790;
}

.validation-message {
    color: #e50790;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTI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ZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.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;
}

/* Blazor Reconnection Modal Styles */
#components-reconnect-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 2rem;
    background: #1a0f0f;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    max-width: 400px;
    width: 90%;
}

#components-reconnect-modal::backdrop {
    background: rgba(0, 0, 0, 0.7);
}

.components-reconnect-container {
    text-align: center;
}

.components-rejoining-animation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.components-rejoining-animation div {
    width: 12px;
    height: 12px;
    background-color: #dc3545;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.components-rejoining-animation div:nth-child(1) {
    animation-delay: -0.32s;
}

.components-rejoining-animation div:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

#components-reconnect-modal p {
    margin: 1rem 0;
    display: none;
}

#components-reconnect-modal button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    display: none;
    margin: 1rem auto 0;
}

#components-reconnect-modal button:hover {
    background-color: #c82333;
}

/* Show/Hide states */
#components-reconnect-modal:not([open]) {
    display: none;
}

#components-reconnect-modal.components-reconnect-show[open] {
    display: block;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation {
    display: flex;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-repeated-attempt-visible {
    display: block;
}

#components-reconnect-modal.components-reconnect-hide {
    display: none;
}

#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible,
#components-reconnect-modal.components-reconnect-failed #components-reconnect-button {
    display: block;
}

#components-reconnect-modal.components-reconnect-rejected .components-reconnect-failed-visible {
    display: block;
}

#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-paused #components-resume-button {
    display: block;
}

.components-resume-failed-visible {
    display: none;
}

#components-reconnect-modal.components-reconnect-paused.components-resume-failed .components-resume-failed-visible {
    display: block;
}

.cookie-policy-banner {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 1300;
    max-width: 900px;
    margin-inline: auto;
}

/* Daily Medication Log table cells - the header/action-button layout that used to live here
   was replaced with a plain MudGrid xs/sm/md breakpoint structure directly in MedicationLog.razor
   (more reliable than custom flex classes applied via a MudBlazor component's Class parameter).
   These three still apply to per-row table cells inside MudTable's mobile card layout. */
@media (max-width: 960px) {
    .med-log-dose-input {
        width: 100%;
        min-width: 0 !important;
    }

    .med-log-actions-cell {
        text-align: left !important;
    }

    .med-log-row-action {
        width: 100%;
    }
}
/* Base */
.btnHeart {
   width: 295px;
}

/* Extra Small (<576px) */
@media (max-width: 575.98px) {
    .btnHeart {
        width: 100%;
        margin-bottom: 15px !important;
      
    }
}

/* Small (576px–767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .btnHeart {
        width: 100%;
        margin-bottom: 15px !important;

    }
}

/* Medium (768px–991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .btnHeart {
        width: 100%;
        margin-bottom: 15px !important;
      
    }
}

/* Large (992px–1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .btnHeart {
       
    }
}

/* Extra Large (1200px+) */
@media (min-width: 1200px) {
    .btnHeart {
    }
}