/* jch-core.css — domain-agnostic shared UI for all JCH plugins */

/* -----------------------------------------------------------------------
   Loading Spinner
   Show by adding class "active" to #loading-spinner via JS.
   ----------------------------------------------------------------------- */

#loading-spinner {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 2rem;
    color: #333;
    font-weight: 600;
}

#loading-spinner.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* -----------------------------------------------------------------------
   Print Button
   ----------------------------------------------------------------------- */

.jch-print-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1.2em;
    padding: 2px 6px;
    line-height: 1;
    color: #555;
    flex-shrink: 0;
}

.jch-print-btn:hover {
    background: #f0f0f0;
    color: #000;
}

@media print {
    .jch-print-btn { display: none; }
}
