/* AdminPageShell — visual baseline shared with /admin/bot-settings */

.pcw-admin-shell {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 1760px;
    margin: 0 auto;
    padding: 26px 22px 46px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 200, 255, 0.08), transparent 28%),
        radial-gradient(circle at 82% 4%, rgba(102, 0, 187, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(8, 13, 23, 0.98), rgba(5, 9, 15, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 64px rgba(0, 0, 0, 0.32);
}

.pcw-admin-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    border: 1px solid rgba(0, 200, 255, 0.16);
    border-radius: 16px;
    background: linear-gradient(135deg, #12172e 0%, #1c2170 35%, #4b0082 70%, #6600bb 100%);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.pcw-admin-hero-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pcw-admin-eyebrow {
    color: #00c8ff;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.pcw-admin-title {
    color: #fff;
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.pcw-admin-subtitle {
    color: rgba(255, 255, 255, 0.75);
}

.pcw-admin-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pcw-admin-custom-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(0, 200, 255, 0.14);
    border-radius: 16px;
    background: rgba(9, 14, 24, 0.92);
}

.pcw-admin-tab-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #fff;
    background: transparent;
    font: inherit;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.pcw-admin-tab-button:hover {
    color: #00c8ff;
    border-color: rgba(0, 200, 255, 0.42);
    background: rgba(0, 200, 255, 0.08);
}

.pcw-admin-tab-button--active {
    color: #00c8ff;
    border-color: rgba(0, 200, 255, 0.6);
    background: rgba(0, 200, 255, 0.14);
    box-shadow: 0 0 0 1px rgba(0, 200, 255, 0.25), 0 4px 14px rgba(0, 200, 255, 0.18);
}

.pcw-admin-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    margin-left: 4px;
    border-radius: 999px;
    background: rgba(0, 200, 255, 0.2);
    color: #00c8ff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
}

.pcw-admin-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Cards / tables inside an admin shell get the bot-settings card treatment */
.pcw-admin-shell .pcw-card {
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.075) !important;
    background: linear-gradient(180deg, rgba(18, 24, 34, 0.98), rgba(13, 18, 26, 0.98)) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22) !important;
}

.pcw-admin-shell .mud-table {
    background: transparent !important;
}

.pcw-admin-empty {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--pcw-text-muted);
    border: 1px dashed rgba(0, 200, 255, 0.22);
    border-radius: 14px;
    background: rgba(0, 200, 255, 0.035);
    padding: 28px;
}

.pcw-admin-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(18, 24, 34, 0.85), rgba(13, 18, 26, 0.85));
}

@media (max-width: 960px) {
    .pcw-admin-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .pcw-admin-hero-actions {
        justify-content: stretch;
        width: 100%;
    }
}
