﻿/**********************************************************************************************
 * OntarioTECK VBA Developers
 * Developed by Gustavo Miller
 * Date created : 2026-01-17 6:36:44 AM
 * Filename: htmlpopover.css
 *
 *********************************************************************************************/

/* Base custom popover container */
.custompopover {
    display: none; /* Hidden by default; show via .is-open */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 550px; /* Adjust as needed */
    max-width: 600px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 0; /* Header/body control spacing */
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: #222;
}

    /* Toggle: add this class in JS to show */
    .custompopover.is-open {
        display: block;
        animation: custompopover-fade 160ms ease-out;
    }

/* Header: title left, close icon right */
.custompopover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.custompopover-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

/* Close icon styled as an interactive control */
.custompopover-close-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #666;
    width: 28px;
    height: 28px;
    border-radius: 6px; /* Subtle rounding to feel clickable */
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .custompopover-close-btn:hover {
        background-color: #f2f2f2;
        color: #111;
    }

    .custompopover-close-btn:focus {
        outline: 2px solid #4c9ffe; /* High-contrast focus indicator */
        outline-offset: 2px;
    }

/* Body */
.custompopover-body {
    padding: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Optional: subtle fade-in animation when opening */
@keyframes custompopover-fade {
    from {
        opacity: 0;
        transform: translateY(-2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* If you prefer aria-hidden to control visibility via CSS as well */
.custompopover[aria-hidden="true"] {
    display: none;
}
