/* ----- NBN brand: primary purple + default body text ----- */
:root {
    --bs-primary: #593196;
    --bs-primary-rgb: 89, 49, 150;
    --bs-body-color: #593196;
    --bs-link-color: #593196;
    --bs-link-hover-color: #432371;
}

body {
    color: #593196;
}

.main {
    color: #593196;
}

/* Top navigation: purple bar, white menu text */
nav.navbar.navbar-dark.bg-primary,
.navbar.navbar-dark.bg-primary {
    background-color: #593196 !important;
}

.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-text {
    color: #fff !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #fff !important;
    opacity: 0.92;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #fff !important;
}

.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
}

.navbar-dark .navbar-toggler-icon {
    filter: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media print {
    * {
        -webkit-print-color-adjust: exact;
    }
}


@media print {
    .visible-print-inline {
        display: inline !important;
    }
}

.visible-print-inline-block {
    display: none !important;
}

@media print {
    .visible-print-inline-block {
        display: inline-block !important;
    }
}

@media print {
    .hidden-print {
        display: none !important;
    }
}
.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.content {
    padding-top: 1.1rem;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.nbnsecondarycolor {
    color: #8d395f;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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;
}
/*
 * Loading Dots
 * Can we use pseudo elements here instead :after?
 */
.loading span {
    display: inline-block;
    vertical-align: middle;
    width: .6em;
    height: .6em;
    margin: .19em;
    background: #007DB6;
    border-radius: .6em;
    animation: loading 1s infinite alternate;
}

    /*
 * Dots Colors
 * Smarter targeting vs nth-of-type?
 */
    .loading span:nth-of-type(2) {
        background: #008FB2;
        animation-delay: 0.2s;
    }

    .loading span:nth-of-type(3) {
        background: #009B9E;
        animation-delay: 0.4s;
    }

    .loading span:nth-of-type(4) {
        background: #00A77D;
        animation-delay: 0.6s;
    }

    .loading span:nth-of-type(5) {
        background: #00B247;
        animation-delay: 0.8s;
    }

    .loading span:nth-of-type(6) {
        background: #5AB027;
        animation-delay: 1.0s;
    }

    .loading span:nth-of-type(7) {
        background: #A0B61E;
        animation-delay: 1.2s;
    }

/*
 * Animation keyframes
 * Use transition opacity instead of keyframes?
 */
@keyframes loading {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.ulcols2 {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
}
.ulcols3 {
    columns: 3;
    -webkit-columns: 3;
    -moz-columns: 3;
}
.ulcols4 {
    columns: 4;
    -webkit-columns: 4;
    -moz-columns: 4;
}

/* ----- Deals page: compact search; deals grid is the focus ----- */
.deals-page-search-region {
    margin-bottom: 0.25rem;
}

.deals-page-search {
    padding: 0.65rem 0.85rem;
    margin-bottom: 0;
    background-color: #f9f8fc;
    border: 1px solid rgba(95, 54, 141, 0.12);
    border-radius: 0.5rem;
}

.deals-page-search-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.deals-page-search-logo {
    max-height: 44px;
    width: auto;
}

.deals-page-search-tagline {
    font-size: 0.9rem;
    color: #593196;
    line-height: 1.25;
}

.deals-page-search-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bs-primary, #5f368d);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.deals-page-search-fields {
    margin-bottom: 0.35rem;
}

/* DealCategorys still uses form-control-lg — shrink inside deals search */
.deals-page-search .form-control-lg {
    font-size: 0.95rem;
    padding: 0.3rem 0.55rem;
    min-height: calc(1.4em + 0.5rem + 2px);
    line-height: 1.4;
}

.deals-search-footer {
    padding-top: 0.15rem;
}

.deals-search-footer-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.deals-search-footer--split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.deals-search-footer-aside {
    flex: 1 1 auto;
    min-width: 0;
}

.deals-search-footer-aside .filters {
    margin-bottom: 0;
    justify-content: flex-end;
    align-items: center;
    gap: 0.35rem;
}

.deals-search-footer-aside .filters label {
    font-size: 0.72rem;
    margin-right: 0;
    margin-bottom: 0;
}

.deals-search-footer-aside .filters input[type="number"] {
    width: 4.25rem;
    padding: 0.2rem 0.35rem;
    font-size: 0.875rem;
    margin-right: 0;
}

.deals-search-footer-aside .filters .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.deals-page-deals-grid {
    margin-top: 0.25rem;
}

.filters {
    display: flex;
    margin-bottom: 20px;
    align-items: baseline;
    justify-content: flex-end;
}

    .filters label {
        text-transform: uppercase;
        margin-right: 10px;
    }

    .filters input {
        margin-right: 20px;
        width: 100px;
    }

    .filters button:first-of-type {
        margin-right: 10px;
    }



.hidden {
    display: none;
}

svg {
    width: 20px;
    height: 20px;
    margin-right: 7px;
}

.socialbutton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    color: #777;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 2px;
    text-transform: capitalize;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 4px;
    border: 1px solid #ddd;
    cursor: pointer;
}

  

.share-button, .copy-link {
    padding-left: 30px;
    padding-right: 30px;
}

.share-button, .share-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.share-dialog {
    display: none;
    width: 95%;
    max-width: 500px;
    box-shadow: 0 8px 16px rgba(0,0,0,.15);
    z-index: -1;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 4px;
    background-color: #fff;
}

    .share-dialog.is-open {
        display: block;
        z-index: 2;
    }

.header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.targets {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    margin-bottom: 20px;
}

.close-button {
    background-color: transparent;
    border: none;
    padding: 0;
}

    .close-button svg {
        margin-right: 0;
    }

.sociallink {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
    background-color: #eee;
}

.pen-url {
    margin-right: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.MyRowHover:hover {
    background-color: #CBC3E3;
}

/* ------------------------------------------------------------------
   Dashboard — Manage quick links (avoid mixing .nav-link + .btn in BS5)
   Force column stack; avoid <nav class="nav"> (BS horizontal flex). Generous gap/padding.
   ------------------------------------------------------------------ */
.dashboard-manage-links {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 1rem !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

.dashboard-manage-link {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0.9rem 1.25rem;
    border: 1px solid color-mix(in srgb, var(--bs-primary, #0d6efd) 35%, transparent);
    border-radius: 0.6rem;
    color: var(--bs-primary, #0d6efd) !important;
    text-decoration: none !important;
    font-weight: 500;
    line-height: 1.35;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-manage-link:hover,
.dashboard-manage-link:focus {
    text-decoration: none !important;
    background-color: color-mix(in srgb, var(--bs-primary, #0d6efd) 10%, white);
    border-color: color-mix(in srgb, var(--bs-primary, #0d6efd) 55%, transparent);
    color: var(--bs-primary, #0d6efd) !important;
}

.dashboard-manage-link:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--bs-primary, #0d6efd) 35%, transparent);
}

.dashboard-manage-link i.fa {
    flex-shrink: 0;
    width: 1.5rem;
    text-align: center;
    opacity: 0.92;
}

.dashboard-manage-link span {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

/* Fallback when color-mix() is not supported (older browsers) */
@supports not (background: color-mix(in srgb, red, blue)) {
    .dashboard-manage-link {
        border-color: rgba(13, 110, 253, 0.35);
        color: #0d6efd !important;
    }
    .dashboard-manage-link:hover,
    .dashboard-manage-link:focus {
        background-color: rgba(13, 110, 253, 0.08);
        border-color: rgba(13, 110, 253, 0.45);
        color: #0d6efd !important;
    }
    .dashboard-manage-link:focus-visible {
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.35);
    }
}

/* DealsAdmin grid: photo column thumbnails */
.deals-admin-grid .deal-admin-photo-thumb {
    box-sizing: border-box;
    min-width: 40px;
    min-height: 40px;
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    vertical-align: middle;
    display: inline-block;
}