/*
 * Contentosapp Studio Admin — Studio skeleton styles (Hub/Production/Settings loaders).
 * Extracted from costudio-admin.css for studio-specific loading.
 */

/* ══════════════════════════════════════════════════════════════════════════
   STUDIO — Unified workspace page tabs (shared by hub/production/settings)
   ══════════════════════════════════════════════════════════════════════════ */

.fos-studio-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--fos-border);
    border-radius: 10px;
    margin-top: 12px;
}

.fos-studio-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--fos-text-sub);
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.fos-studio-tab-btn__icon {
    font-size: 14px;
    line-height: 1;
}

.fos-studio-tab-btn:hover {
    color: var(--fos-primary);
    background: var(--fos-primary-faint);
    text-decoration: none;
}

.fos-studio-tab-btn.is-active {
    color: var(--fos-primary);
    background: var(--fos-primary-light);
    border-color: rgba(108, 71, 255, 0.2);
    box-shadow: 0 1px 3px rgba(108, 71, 255, 0.1);
    text-decoration: none;
}

.fos-studio-content {
    animation: fos-studio-fade-in 0.15s ease;
}

.fos-studio-panel {
    display: none;
}

.fos-studio-panel.is-active {
    display: block;
    animation: fos-studio-fade-in 0.15s ease;
}

@keyframes fos-studio-fade-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ── Content Hub — unified skeleton (KPIs + card + table) ───────────────────── */

@keyframes fos-ch-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.fos-ch-sk-shimmer {
    background: linear-gradient(90deg, #e5e7eb 0%, #f8f8f9 42%, #e5e7eb 100%);
    background-size: 200% 100%;
    animation: fos-ch-shimmer 1.5s ease-in-out infinite;
}

.fos-content-hub-skeleton {
    margin-bottom: 0;
}

.fos-ch-sk-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.fos-ch-sk-kpi {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--fos-border);
    border-radius: 10px;
    padding: 18px 20px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    min-height: 118px;
}

.fos-ch-sk-kpi__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 10px 10px 0 0;
}

.fos-ch-sk-kpi__label {
    display: block;
    height: 10px;
    width: 58%;
    max-width: 140px;
    margin-bottom: 12px;
    border-radius: 4px;
}

.fos-ch-sk-kpi__value {
    display: block;
    height: 28px;
    width: 48%;
    max-width: 120px;
    margin-bottom: 12px;
    border-radius: 6px;
}

.fos-ch-sk-kpi__sub {
    display: block;
    height: 10px;
    width: 88%;
    border-radius: 4px;
}

.fos-ch-sk-card {
    background: #fff;
    border: 1px solid var(--fos-border);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.fos-ch-sk-card__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 14px 20px 0;
    border-bottom: 1px solid var(--fos-border);
}

.fos-ch-sk-tabs {
    display: flex;
    gap: 0;
}

.fos-ch-sk-tab {
    display: inline-block;
    width: 108px;
    height: 32px;
    border-radius: 6px;
    margin-bottom: -1px;
}

.fos-ch-sk-tab+.fos-ch-sk-tab {
    margin-left: 4px;
}

.fos-ch-sk-actions {
    display: flex;
    gap: 8px;
    padding-bottom: 12px;
}

.fos-ch-sk-btn {
    width: 76px;
    height: 30px;
    border-radius: 7px;
}

.fos-ch-sk-btn--primary {
    width: 108px;
}

.fos-ch-sk-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--fos-border);
}

.fos-ch-sk-search {
    flex: 1 1 auto;
    max-width: 240px;
    min-width: 140px;
    height: 30px;
    border-radius: 7px;
}

.fos-ch-sk-select {
    width: 136px;
    height: 30px;
    border-radius: 7px;
}

.fos-ch-sk-filter {
    width: 58px;
    height: 30px;
    border-radius: 7px;
}

.fos-ch-sk-toolbar__spacer {
    flex: 1 1 12px;
    min-width: 8px;
}

.fos-ch-sk-cta {
    width: 148px;
    height: 30px;
    border-radius: 7px;
}

.fos-ch-sk-table {
    padding: 0 0 8px;
}

.fos-ch-sk-table--inline {
    padding: 12px 0 0;
}

.fos-ch-sk-thead,
.fos-ch-sk-tr {
    display: grid;
    grid-template-columns: 40px minmax(100px, 1fr) 100px 88px 82px 92px 88px;
    gap: 10px;
    align-items: center;
    padding: 10px 20px;
}

.fos-ch-sk-thead {
    background: var(--fos-bg-soft);
    border-bottom: 1px solid var(--fos-border);
}

.fos-ch-sk-th {
    height: 10px;
    border-radius: 4px;
}

.fos-ch-sk-th--grow {
    min-width: 0;
}

.fos-ch-sk-th--priority {
    width: 100%;
    max-width: 72px;
}

.fos-ch-sk-th--actions {
    justify-self: end;
    width: 72px;
}

.fos-ch-sk-tr {
    border-bottom: 1px solid var(--fos-border);
}

.fos-ch-sk-tr:last-child {
    border-bottom: none;
}

.fos-ch-sk-td {
    height: 12px;
    border-radius: 4px;
}

.fos-ch-sk-td--grow {
    min-width: 0;
}

.fos-ch-sk-td--priority {
    width: 100%;
    max-width: 72px;
}

.fos-ch-sk-td--badge {
    width: 100%;
    max-width: 80px;
}

.fos-ch-sk-td--actions {
    justify-self: end;
    width: 72px;
}

@media (max-width: 1100px) {
    .fos-ch-sk-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .fos-ch-sk-thead,
    .fos-ch-sk-tr {
        grid-template-columns: 32px minmax(80px, 1fr) 72px 72px 64px 72px 64px;
        gap: 6px;
        padding: 10px 12px;
    }
}

@media (max-width: 782px) {
    .fos-ch-sk-kpis {
        grid-template-columns: 1fr;
    }

    .fos-ch-sk-card__head {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .fos-ch-sk-actions {
        justify-content: flex-end;
    }
}

