﻿/* =========================================================
    WebCashFlow top app bar & CTA Button - for html pages
    ========================================================= */

.cta-button {
    display: inline-block;
    padding: 12px 20px;
    background: #fbbf24;
    color: #1f2937;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

    .cta-button:hover {
        background: #f59e0b;
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15), 0 0 0 4px rgba(251, 191, 36, 0.25);
    }

    .cta-button:active {
        transform: translateY(0);
        box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    }

    /* image */
    .screenshot-img {
        display: block;
        max-width: 500px;
        width: 100%;
        height: auto;
        margin: 20px 0;
        border-radius: 12px;
        cursor: zoom-in;
    }

    /* Lightbox overlay */
    .lightbox {
        display: none;
        position: fixed;
        z-index: 9999;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.8);
        justify-content: center;
        align-items: center;
    }

        /* Full-size image */
        .lightbox img {
            max-width: 95%;
            max-height: 95%;
            border-radius: 12px;
            cursor: zoom-out;
        }


    .screenshot-img:hover {
        transform: scale(1.02);
    }


.html-pages-custom-appbar {
    background-color: #1b2a41;
    color: #d4b483;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

    .html-pages-custom-appbar,
    .html-pages-custom-appbar * {
        box-sizing: border-box;
    }

        /* Outer layout */
        .html-pages-custom-appbar .html-pages-appbar-inner {
            max-width: 1000px;
            margin: 0 auto;
            padding: 8px 20px;
            min-height: 48px;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
        }


        /* Brand area */
        .html-pages-custom-appbar .html-pages-app-brand {
            display: inline-flex;
            flex-direction: row;
            align-items: center;
            gap: 6px;
            text-decoration: none;
            flex-shrink: 0;
        }

        .html-pages-custom-appbar .html-pages-app-logo {
            width: 28px;
            height: 28px;
            display: block;
            flex-shrink: 0;
        }

        .html-pages-custom-appbar .html-pages-app-title {
            color: #d4b483;
            font-size: 1.1rem;
            font-weight: 600;
            line-height: 1;
            white-space: nowrap;
        }

        /* Navigation */
        .html-pages-custom-appbar .html-pages-top-nav {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: flex-end;
            gap: 20px;
            margin: 0;
            padding: 0;
            flex-wrap: nowrap;
            flex-shrink: 1;
        }

            .html-pages-custom-appbar .html-pages-top-nav a {
                display: inline-block;
                color: #d4b483;
                text-decoration: none;
                white-space: nowrap; /* keep "Beyond Excel" on one line */
                font-size: 1rem;
                line-height: 1.2;
            }

                .html-pages-custom-appbar .html-pages-top-nav a:hover,
                .html-pages-custom-appbar .html-pages-top-nav a:focus {
                    text-decoration: underline;
                }

/* Medium screens / tablets */
@media (max-width: 768px) {

    .html-pages-custom-appbar .html-pages-appbar-inner {
        padding: 8px 16px;
        min-height: 46px;
        gap: 12px;
    }

    .html-pages-custom-appbar .html-pages-top-nav {
        gap: 12px;
    }

        .html-pages-custom-appbar .html-pages-top-nav a {
            font-size: 0.9rem;
        }

    .html-pages-custom-appbar .html-pages-app-title {
        font-size: 0.95rem;
    }

    .screenshot-img {
        cursor: zoom-in;
    }

    .html-pages-app-title {
        display: none;
    }
}



/* Small phones */
@media (max-width: 480px) {
    .html-pages-custom-appbar .html-pages-appbar-inner {
        padding: 8px 10px;
        min-height: 44px;
        gap: 8px;
    }

    .html-pages-custom-appbar .html-pages-top-nav {
        gap: 8px;
    }

        .html-pages-custom-appbar .html-pages-top-nav a {
            font-size: 0.8rem;
            line-height: 1;
        }

    .html-pages-custom-appbar .html-pages-app-title {
        display: none;
    }
}


/* Very small phones */
@media (max-width: 380px) {
    .html-pages-custom-appbar .html-pages-appbar-inner {
        padding: 10px 8px;
        gap: 6px;
    }

    .html-pages-custom-appbar .html-pages-top-nav {
        gap: 6px;
    }

        .html-pages-custom-appbar .html-pages-top-nav a {
            font-size: 0.75rem;
        }
}
