/* ==== EXISTING BLAZOR STYLES ==== */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0;
}
#app {
    min-height: 100vh; /* at least full screen */
    height: 100%; /* stretch with body if body grows */
    /*background-image: url('../img/background2.2.png');*/
}
h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

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

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

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

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

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #c02d76;
}
/* HOME */
.home-banner {
    /*background-image: url('../img/home-bg.png');*/
    background-image: url('../img/snack-dog-nobg.png');
    min-height: 450px;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    padding: 120px 0 180px;
    /*margin-top: 60px;*/
}

.banner-wrapper {
    align-items: center;
}

    .banner-wrapper .banner-header {
        margin-bottom: 30px;
        height: 100%;
    }

        .banner-wrapper .banner-header h1 {
            margin-bottom: 10px;
            font-size: 56px;
            font-weight: 600;
            color: #019b87;
            text-transform: uppercase;
            line-height: 55px;
        }

            .banner-wrapper .banner-header h1 > span {
                font-weight: 800;
                color: #f79a6f;
            }

        .banner-wrapper .banner-header p {
            color: #363636;
            font-size: 16px;
            margin-bottom: 0;
        }

.banner-bottom {
    position: relative;
     /*transform: translateY(-60px);*/
    top: -60px;
    margin-bottom: -60px;
}

    .banner-bottom .card {
        padding: 30px 20px;
        border-radius: 5px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0px 0px 16px 0px rgb(0 0 0 / 0.1);
    }

        .banner-bottom .card img {
            width: 80px;
        }

        .banner-bottom .card h2 {
            color: #019b87;
            font-size: 20px;
            text-transform: uppercase;
            font-weight: 900 !important;
        }

        .banner-bottom .card p {
            margin: 0px;
            line-height: 20px;
        }


/* CARD RIBBON */
.box {
    /*height: 300px;*/
    position: relative;
    border: 1px solid #bbb;
    background: #eee;
    float: left;
    margin: 20px;
}

.ribbon {
    position: absolute;
    right: -5px;
    top: -5px;
    z-index: 1;
    overflow: hidden;
    width: 93px;
    height: 93px;
    text-align: right;
}

    .ribbon span {
        font-size: 0.8rem;
        color: #fff;
        text-transform: uppercase;
        text-align: center;
        font-weight: bold;
        line-height: 32px;
        transform: rotate(45deg);
        width: 125px;
        display: block;
        background: #79a70a;
        background: linear-gradient(#9bc90d 0%, #79a70a 100%);
        box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
        position: absolute;
        top: 17px;
        // change this, if no border right: -29px;
        // change this, if no border
    }

        .ribbon span::before {
            content: '';
            position: absolute;
            left: 0px;
            top: 100%;
            z-index: -1;
            border-left: 3px solid #79A70A;
            border-right: 3px solid transparent;
            border-bottom: 3px solid transparent;
            border-top: 3px solid #79A70A;
        }

        .ribbon span::after {
            content: '';
            position: absolute;
            right: 0%;
            top: 100%;
            z-index: -1;
            border-right: 3px solid #79A70A;
            border-left: 3px solid transparent;
            border-bottom: 3px solid transparent;
            border-top: 3px solid #79A70A;
        }

.red span {
    background: linear-gradient(#f70505 0%, #8f0808 100%);
}

    .red span::before {
        border-left-color: #8f0808;
        border-top-color: #8f0808;
    }

    .red span::after {
        border-right-color: #8f0808;
        border-top-color: #8f0808;
    }

.blue span {
    background: linear-gradient(#2989d8 0%, #1e5799 100%);
}

    .blue span::before {
        border-left-color: #1e5799;
        border-top-color: #1e5799;
    }

    .blue span::after {
        border-right-color: #1e5799;
        border-top-color: #1e5799;
    }
.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;
}

/* ==== NEW PWA STYLES ==== */
/* Show elements only when app is installed */
.show-when-installed {
    display: none;
}

/* PWA Update Banner Styles */
.pwa-update-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #03173d, #1e3a8a);
    color: white;
    padding: 12px 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease-out;
}
    .pwa-update-banner .btn,
.pwa-install-banner {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        padding: 12px 0;
        z-index: 9999;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
        animation: slideUp 0.3s ease-out;
    }
    .pwa-install-banner .btn {
            border-radius: 20px;
            font-size: 0.875rem;
            padding: 6px 16px;
        }    
/* Offline indicator */
.offline-indicator {
    position: fixed;
    top: 17px;
    right: 5px;
    /*background: #dc3545;*/
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    z-index: 1000;
    animation: pulse 2s infinite;
}
    /* Auto-hide "All synced" badge after 3 seconds */
    /*.offline-indicator .badge.bg-success:last-of-type {
        animation: fadeOutAfter3s 4s ease-out forwards;
    }*/
.all-synced-badge {
    animation: fadeOutAfter3s 4s ease-out forwards;
}
.online-indicator {
    background: #28a745;
    animation: fadeIn 0.3s ease-in;
}
/* Install button styles */
.install-pwa-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.install-pwa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Loading states for PWA */
.pwa-loading {
    position: relative;
    overflow: hidden;
}
    .pwa-loading::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        animation: shimmer 2s infinite;
    }
.w-50pct{
    width: 50% !important;
}
.w-70pct{
    width: 70% !important;
}
.wifi-offline {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .wifi-offline .fa-wifi {
        font-size: 1em;
    }

    .wifi-offline .fa-slash {
        position: absolute;
        left: 0.2em;
        top: 0;
        font-size: 1.2em;
        color: white; /* make the slash red */
        pointer-events: none;
    }
/* Update notification banner override for better z-index management */
#update-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #03173d;
    color: white;
    padding: 10px;
    text-align: center;
    z-index: 10000;
    display: none;
}
    #update-banner button {
        margin-left: 10px;
        padding: 5px 10px;
        border-radius: 3px;
        cursor: pointer;
    }
    #update-banner .update-btn {
        background: white;
        color: #03173d;
        border: none;
    }
    #update-banner .dismiss-btn {
        background: transparent;
        color: white;
        border: 1px solid white;
    }

/* Floating Label Styles */
.floating-input {
    position: relative;
    margin-bottom: 20px;
}

    .floating-input input,
    .floating-input select,
    .floating-input textarea {
        width: 100%;
        padding: 16px 12px 8px 12px;
        font-size: 14px;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        /*background: transparent;*/
        outline: none;
        transition: all 0.3s ease;
        box-sizing: border-box;
    }

        .floating-input input:focus,
        .floating-input select:focus,
        .floating-input textarea:focus {
            border-color: #2196f3;
            box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
        }

    .floating-input label {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 12px;
        font-size: 14px;
        color: #6b7280;
        pointer-events: none;
        transition: all 0.3s ease;
        background: white;
        padding: 0 4px;
        transform-origin: left;
    }

    /* Label moves up when input is focused or has content */
    .floating-input input:focus + label,
    .floating-input input:not(:placeholder-shown) + label,
    .floating-input select:focus + label,
    .floating-input textarea:focus + label,
    .floating-input textarea:not(:placeholder-shown) + label,
    .floating-input.has-value label {
        top: -8px;
        transform: translateY(0);
        left: 8px;
        font-size: 12px;
        color: #2196f3;
        font-weight: 600;
    }

    .floating-input label.required::after {
        content: " *";
        color: #dc3545;
    }

    .floating-input select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 12px center;
        background-repeat: no-repeat;
        background-size: 16px;
        padding-right: 40px;
    }

        .floating-input select:focus {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%232196f3' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
        }

    .floating-input textarea {
        resize: vertical;
        min-height: 80px;
    }

    .floating-input input[type="date"]:not(:focus):not(:valid) {
        color: transparent;
    }
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}
@keyframes fadeOutAfter3s {
    0%, 75% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}
@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}
/* Status bar adjustments for iOS */
@supports (padding-top: env(safe-area-inset-top)) {
    .ios-safe-area {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}
/* Adjust content padding when PWA banners are visible */
.content.pwa-banner-active {
    padding-top: calc(1.1rem + 60px);
}
@media (display-mode: standalone) {
    .show-when-installed {
        display: block;
    }
}
/* Hide elements when app is installed */
@media (display-mode: standalone) {
    .hide-when-installed {
        display: none !important;
    }
}
/* PWA-specific overrides for existing Blazor styles */
@media (display-mode: standalone) {
    .content {
        padding-top: 0.5rem;
    }
    
    /* Adjust error UI z-index to be below PWA banners */
    #blazor-error-ui {
        z-index: 999;
    }
}
/* Responsive adjustments for PWA */
@media (max-width: 576px) {
    .navbar .container-fluid {
        justify-content: center !important;
    }

    .navbar-brand {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
@media (max-width: 768px) {
    .pwa-update-banner .container-fluid,
    .pwa-install-banner .container-fluid {
        padding: 0 15px;
    }

    .pwa-update-banner .row,
    .pwa-install-banner .row {
        margin: 0;
    }

    .pwa-update-banner .col,
    .pwa-install-banner .col {
        padding: 0;
        margin-bottom: 8px;
    }

    .pwa-update-banner .col-auto,
    .pwa-install-banner .col-auto {
        padding: 0;
        width: 100%;
        text-align: center;
    }
    /*.nav-right {
        position: relative;
        margin-right: 75px;*/ /* Increased from 55px to 75px for more space */
    /*max-width: calc(100vw - 220px);*/ /* Increased from 200px to 220px */
    /*}*/
    .nav-right .offline-indicator {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: 2px !important;
        margin-right: 40px;
        margin-top: -15px;
    }
}
@media (display-mode: fullscreen) {
    .main-content {
        padding-top: 20px;
    }
}

