@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");
a.navbar-brand {
    margin-bottom: -30px;
}
.navbar-brand svg {
    filter: drop-shadow(1px 1px 5px rgba(0, 0, 0, 0.9));
    transition: filter 1s ease-in-out;
}

a:hover.navbar-brand svg {
    filter: drop-shadow(1px 1px 5px rgba(200, 30, 30, 0.9));
}

.navbar-brand svg path {
    fill: #fff; /* Make all text white */
}
#dot {
    fill: #e44f40 !important;
    stroke: #fff; /* White outline */
    stroke-width: 3px;
    animation: pulse 5s infinite ease-in-out;
    transform-origin: center;
}
.eml {
    max-width: 715px;
}
.eml-rbn {
    max-width: 680px;
}

#gpstPreviewPanel,
#eventPreviewPanel,
#responseDetailPanel,
.widerPanel {
    width: 675px !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0;
    }
    30% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.btn {
    border-width: 2px;
}

#bc-hm-ico {
    margin-right: -5px;
}

#userMenu:hover img {
    border-color: #aaa !important;
}
/* Default chevron direction */
.chevron-icon {
    transition: transform 0.3s ease-in-out;
    display: inline-block;
}

/* Rotate chevron when dropdown is open */
#userMenu[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}

#ue {
    max-width: 275px;
}
.is {
    -moz-box-shadow: inset 0 -5em 5em -5em #aaa;
    -webkit-box-shadow: inset 0 -5em 5em -5em #aaa;
    box-shadow: inset 0 -5em 5em -5em #aaa;
    clip-path: ellipse(98% 95% at 19% 0%);
}

/* Toast slide-up and fade out animation */
@keyframes slideUpAndDown {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(40px);
    }
}

.toast.slide-animation {
    animation: slideUpAndDown 4s ease forwards;
}

.slide-toggle {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.slide-toggle.showing {
    max-height: 100px; /* must be more than the input + label height */
}

#recipients {
    min-height: 200px;
    resize: vertical;
}

/* Add alternating background for even/odd rows */
.item-row:nth-of-type(even) {
    background-color: #f8f9fa; /* light gray */
}

/* Hover effect for all rows */
.item-row:hover {
    background-color: #eef3f7;
    transition: background-color 0.15s ease-in-out;
    cursor: pointer;
}
.ribbon {
    color: #fff;
    letter-spacing: 0.03em;
    --f: .5em; /* control the folded part*/
    --r: .8em; /* control the ribbon shape */

    position: absolute;
    top: -15px;
    left: calc(-1*var(--f));
    padding-inline: .5em;

    line-height: 1.8;
    background: #987F69;
    border-bottom: var(--f) solid #0005;
    border-right: var(--r) solid #0000;
    clip-path:
            polygon(0 0,0 calc(100% - var(--f)),var(--f) 100%,
            var(--f) calc(100% - var(--f)),100% calc(100% - var(--f)),
            calc(100% - var(--r)) calc(50% - var(--f)/2),100% 0);
}

.flatpickr-day.nextMonthDay {
    opacity: .6 !important;
    color: inherit !important;
    cursor: pointer !important;
}

.option-card:not(.border-primary):hover {
    cursor: pointer;
    background-color: #f8f9fa; /* or use a Bootstrap utility class like bg-light */
}

#splash {
    position: relative;
    overflow: hidden;
    z-index: 0;
    background-color: transparent; /* override .bg-light if you want full gradient */
}

#splash::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(115deg,
    #ced4da,
    #ced4da,
    #dab682,
    #df9995,
    #84d0ec,
    #87e8d1,
    #f7b7a3,
    #d1c0f9,
    #b7b4fb,
    #dffd57
    );
    background-size: 800% 800%;
    animation: gradientFlow 40s ease-in-out infinite, drift 180s ease-in-out infinite;
}

@keyframes gradientFlow {
    0%   { background-position: 0% 50%; }
    15%  { background-position: 70% 30%; }
    30%  { background-position: 30% 80%; }
    45%  { background-position: 100% 20%; }
    60%  { background-position: 20% 100%; }
    75%  { background-position: 80% 60%; }
    90%  { background-position: 10% 90%; }
    100% { background-position: 0% 50%; }
}

@keyframes drift {
    0%, 100% { transform: scale(1); }
    25%      { transform: scale(1.015); }
    50%      { transform: scale(1.02); }
    75%      { transform: scale(1.01); }
}

.collapse {
    transition-duration: 0.5s; /* 0.5 seconds for slower, or 0.2s for faster */
}
.ql-toolbar.ql-snow {
    background-color: #e9ecef !important;
}

@keyframes outlinePulseFade {
    0%   { box-shadow: 0 0 0 0px rgba(187,209,240,0), 0 0 0 0px rgba(177,197,241,0); }
    20%  { box-shadow: 0 0 0 3px rgba(187,209,240,1), 0 0 8px 6px rgba(177,197,241,0.6); }
    80%  { box-shadow: 0 0 0 3px rgba(187,209,240,1), 0 0 8px 6px rgba(177,197,241,0.6); }
    100% { box-shadow: 0 0 0 0px rgba(187,209,240,0), 0 0 0 0px rgba(177,197,241,0); }
}

.pulsate-outline {
    animation: outlinePulseFade 3s cubic-bezier(.62,.02,.4,.98) both;
}

/* Email/webview: prevent overflow in 640px container */
.eml .card-body img,
.eml .card-body figure img {
    max-width: 100% !important;
    height: auto !important;
    display: block; /* avoid inline gaps that can nudge width */
}

.eml .card-body :is(video, iframe, embed) {
    max-width: 100% !important;
    height: auto;
}

.eml .card-body table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed;
}

.eml .card-body {
    overflow-wrap: anywhere; /* long URLs / unbroken text */
    word-break: break-word;
}

/* make the row flex and keep the progress full-width */
#metricsPanel .opens-row-flex,
#statsBar.opens-row-flex {
    display: flex;
    align-items: center;
}

#metricsPanel .opens-row-flex .progress,
#statsBar.opens-row-flex .progress {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

/* chart layout */
#metricsPanel .opens-chart {
    display: grid;
    align-items: end;
    gap: 2px;
    border-bottom: 1px solid var(--bs-border-color);
    margin: 0 0 .25rem 0;
    height: 100px; /* fixed height for bars */
}
#metricsPanel .opens-chart .bar {
    width: 30px;
    justify-self: center;
    border-radius: 2px 2px 0 0;
}

/* axis days + months */
#metricsPanel .opens-axis-days {
    display: grid;
    font-size: .75rem;
    line-height: 1;
    color: var(--bs-secondary-color);
    margin-top: .25rem;
}
#metricsPanel .opens-axis-days .tick {
    justify-self: center;
}
#metricsPanel .opens-axis-months {
    display: grid;
    font-size: .75rem;
    line-height: 1;
    color: var(--bs-secondary-color);
    margin-top: .15rem;
}
#metricsPanel .opens-axis-months .month {
    justify-self: center;
    font-weight: 500;
}
.os-lbl {
    width:68px;
}

.pct-lbl {
    width:48px;
}

.chart-column {
    transition: background-color 0.15s ease-in-out;
    cursor: pointer;
}
.chart-column:hover {
    background-color: var(--bs-light);
}
#editor-container {
    min-height:300px;
    resize:vertical;
}
#editor-container:focus {
    outline: none;
    box-shadow: none;
}

.tool-share .btn {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.tool-share .btn svg {
    width: 18px;
    height: 18px;
    position: relative;
    top: 0; /* fine-tuned per icon below */
}

.clickable-row { cursor: pointer; }

.icon-24{width:24px;height:24px;display:inline-block;vertical-align:middle}
.social-link{padding:6px;border-radius:.5rem;transition:color .15s ease-in-out}
.social-link:focus-visible{outline:2px solid currentColor;outline-offset:2px}

/* brand hover colors */
.social-facebook:hover{color:#1877F2}
.social-instagram:hover{color:#E4405F}
.social-twitter:hover{color:#000}     /* X */
.social-linkedin:hover{color:#0A66C2}
.social-youtube:hover{color:#FF0000}
.social-threads:hover{color:#000}
.social-tiktok:hover{color:#000}
.social-bluesky:hover{color:#0285FF}  /* bluesky.svg should use fill="currentColor" */

ul.dropdown-menu.dropdown-menu-end {
    z-index: 1105 !important;
}

.ft-social-public a:hover .opacity-50 {
    opacity: 1 !important;
}

.dropdown-menu {
    z-index: 1080 !important;
}

/* Keep pagination below dropdowns */
.pagination {
    z-index: 1 !important;
}

/* Prevent pagination hover/active states from creating new stacking contexts */
.pagination .page-link {
    z-index: auto !important;
}