body {
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.navbar-brand {
    font-weight: 900;
    letter-spacing: -1px;
}

.main-card {
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.08);
}

/* Ensure rounded card does not clip control borders at the inner edge */
.main-card .card-body {
    overflow: visible;
}

/* flow-root stops margin-bottom on .about-section collapsing with the card (mb-* was vanishing) */
.about-card .card-body {
    display: flow-root;
}

.about-section {
    margin-bottom: 3rem;
}

.ad-slot {
    background: #eaeff2;
    border: 2px dashed #ced4da;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    border-radius: 1rem;
    font-size: 0.8rem;
}

/* Live AdSense units (no dashed placeholder frame) */
.ad-slot--adsense {
    background: transparent;
    border: none;
    min-height: 0;
    display: block;
    color: inherit;
    font-size: inherit;
    border-radius: 0;
}

.site-footer {
    background: #fff;
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

.site-footer .footer-panel {
    padding: 2rem 0;
}

@media (max-width: 767.98px) {
    .site-footer .footer-panel {
        display: none;
        padding-top: 0;
        padding-bottom: 2rem;
        border-top: none;
    }

    .site-footer .footer-panel.footer-panel--open {
        display: block;
    }

    .footer-mobile-reveal {
        padding: 0.5rem 0 1rem;
        cursor: pointer;
    }

    .footer-mobile-reveal:hover {
        color: var(--bs-secondary-color) !important;
    }

    .footer-mobile-reveal .footer-reveal-chevron {
        transition: transform 0.2s ease;
    }

    .footer-mobile-reveal--open .footer-reveal-chevron {
        transform: rotate(180deg);
    }
}

@media (min-width: 768px) {
    .footer-mobile-reveal {
        display: none !important;
    }

    .site-footer .footer-panel {
        display: block !important;
    }
}

/* Extra-small footer copy; outer footer padding stays equal top/bottom */
footer .footer-inner {
    font-size: 0.75rem;
}

#pwdsndr-success-alert {
    transition: opacity 0.6s ease;
}

#pwdsndr-success-alert.pwdsndr-success-alert--fade-out {
    opacity: 0;
}

#pwdsndr-send-form .send-btn {
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/*
 * Real DOM layer (not ::before) — pseudo-elements on <button> sit behind the
 * painted button background in WebKit/Safari, so the fill was invisible.
 */
#pwdsndr-send-form .send-btn .send-btn-fill {
    position: absolute;
    inset: 0;
    background-color: #212529;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s ease;
    z-index: 1;
    border-radius: inherit;
    pointer-events: none;
}

#pwdsndr-send-form .send-btn.send-btn--submitting .send-btn-fill {
    transform: scaleX(1);
}

/* Drop the info-coloured border + shadow while the fill runs */
#pwdsndr-send-form .send-btn.send-btn--submitting {
    border: none;
    box-shadow: none;
}

#pwdsndr-send-form .send-btn .send-btn-content {
    position: relative;
    z-index: 2;
}

.reveal-input-group {
    max-width: 450px;
}

.reveal-box {
    font-family: "Courier New", monospace;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.input-group-text {
    cursor: pointer;
    background: #fff;
    border-left: none;
}

.password-action-btn {
    cursor: pointer;
    user-select: none;
}

/* Tighter copy + reveal addon buttons */
.password-addon-tight .password-action-btn {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

.password-addon-tight .password-action-btn + .password-action-btn {
    border-left: 0;
    padding-left: 0.3rem;
}

/* Avoid flex columns clipping full-width controls at column edges */
form .row > [class*="col-"] {
    min-width: 0;
}
