/* ═══════════════════════════════════════════════════════════════
   Skeleton shimmer placeholders — used by <Skeleton /> component
   ═══════════════════════════════════════════════════════════════ */

.skel {
    display: block;
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        var(--gray-100) 0%,
        var(--gray-200) 50%,
        var(--gray-100) 100%
    );
    background-size: 200% 100%;
    animation: skel-shimmer 1.4s ease-in-out infinite;
}

.skel-line  { height: 12px; margin: 4px 0; }
.skel-title { height: 22px; margin: 4px 0 10px; border-radius: 8px; }
.skel-circle { border-radius: 50%; }

.skel-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.skel-table {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    overflow: hidden;
}
.skel-table__head {
    background: var(--gray-50);
    padding: 12px 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
    border-bottom: 1px solid var(--gray-100);
}
.skel-table__row {
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
    border-bottom: 1px solid var(--gray-100);
}
.skel-table__row:last-child { border-bottom: none; }

/* Initial app boot splash — used by the static HTML before Blazor renders */
.flowtavia-boot {
    position: fixed; inset: 0;
    background: var(--gray-50);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--gray-500);
    z-index: 9998;
}
.flowtavia-boot__logo {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--blue-500);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px; font-weight: 700;
    box-shadow: 0 8px 24px rgba(13,53,133,.2);
}
.flowtavia-boot__text { font-size: .9rem; color: var(--gray-600); }

@keyframes skel-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════════
   CrmSpinner overlay — used by <CrmSpinner /> component
   ═══════════════════════════════════════════════════════════════ */
.crm-spinner-target { position: relative; }
.crm-spinner-overlay {
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.6);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 12px; z-index: 50;
    border-radius: inherit;
}
.crm-spinner-circle {
    width: 36px; height: 36px;
    border: 3px solid var(--gray-200, #e2e8f0);
    border-top-color: var(--primary, var(--blue-500));
    border-radius: 50%;
    animation: crm-spin 0.9s linear infinite;
}
.crm-spinner-label {
    font-size: .85rem; color: var(--gray-600, #475569);
    font-weight: 500;
}
@keyframes crm-spin {
    to { transform: rotate(360deg); }
}
